💄 Optimize styles

This commit is contained in:
LittleSheep 2024-02-10 21:09:15 +08:00
parent 8e04230388
commit 4caca49baf
2 changed files with 9 additions and 9 deletions

View File

@ -36,7 +36,8 @@ class GoatAgent extends StatelessWidget {
primarySwatch: Colors.indigo,
accentColor: Colors.indigoAccent,
backgroundColor: Colors.white,
brightness: Brightness.light),
brightness: Brightness.light,
),
useMaterial3: true,
),
darkTheme: ThemeData(
@ -44,8 +45,9 @@ class GoatAgent extends StatelessWidget {
colorScheme: ColorScheme.fromSwatch(
primarySwatch: Colors.indigo,
accentColor: Colors.indigoAccent,
backgroundColor: Colors.black12,
brightness: Brightness.dark),
backgroundColor: Colors.black,
brightness: Brightness.dark,
),
useMaterial3: true,
),
home: const AgentNavigation(),

View File

@ -9,13 +9,11 @@ class ApplicationScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
ScaffoldMessenger.of(context).showSnackBar(const SnackBar(
content: Text("Swipe from left to back to dashboard."),
));
return Scaffold(
appBar: PreferredSize(
preferredSize: const Size.fromHeight(32.0),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 18),
child: AppBar(),
)),
body: SafeArea(
child: Stack(
children: [