1
0
mirror of https://github.com/git-touch/git-touch synced 2025-01-31 08:04:51 +01:00

fix: material style

This commit is contained in:
Rongjian Zhang 2020-01-16 21:14:25 +08:00
parent 19faf20fb1
commit 91d7a93575
2 changed files with 8 additions and 2 deletions

View File

@ -16,7 +16,13 @@ class MyApp extends StatelessWidget {
);
default:
return MaterialApp(
theme: ThemeData(brightness: theme.brightness),
theme: ThemeData(
brightness: theme.brightness,
primaryColor:
theme.brightness == Brightness.dark ? null : Colors.white,
accentColor: theme.paletteOf(context).primary,
scaffoldBackgroundColor: theme.paletteOf(context).background,
),
home: Home(),
);
}

View File

@ -141,7 +141,7 @@ class _HomeState extends State<Home> {
return Scaffold(
body: _buildScreen(active),
bottomNavigationBar: BottomNavigationBar(
// selectedItemColor: theme.paletteOf(context).primary,
selectedItemColor: theme.paletteOf(context).primary,
items: _navigationItems,
currentIndex: active,
type: BottomNavigationBarType.fixed,