mirror of
https://github.com/salvadordeveloper/flutter-crypto-app.git
synced 2025-05-20 11:46:17 +08:00
Fix theme colors
This commit is contained in:
@ -10,6 +10,7 @@ class AppTheme {
|
|||||||
appBarTheme: AppBarTheme(
|
appBarTheme: AppBarTheme(
|
||||||
color: Colors.blueGrey,
|
color: Colors.blueGrey,
|
||||||
),
|
),
|
||||||
|
brightness: Brightness.light,
|
||||||
scaffoldBackgroundColor: Colors.white,
|
scaffoldBackgroundColor: Colors.white,
|
||||||
cardColor: Colors.grey[500],
|
cardColor: Colors.grey[500],
|
||||||
unselectedWidgetColor: Colors.black45,
|
unselectedWidgetColor: Colors.black45,
|
||||||
@ -32,8 +33,6 @@ class AppTheme {
|
|||||||
subtitle2: TextStyle(
|
subtitle2: TextStyle(
|
||||||
color: Colors.black, fontSize: 16, fontWeight: FontWeight.bold),
|
color: Colors.black, fontSize: 16, fontWeight: FontWeight.bold),
|
||||||
),
|
),
|
||||||
colorScheme: ColorScheme.fromSwatch(primarySwatch: Colors.blueGrey)
|
|
||||||
.copyWith(secondary: Colors.black54),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
static final ThemeData dark = ThemeData(
|
static final ThemeData dark = ThemeData(
|
||||||
@ -45,6 +44,7 @@ class AppTheme {
|
|||||||
appBarTheme: AppBarTheme(
|
appBarTheme: AppBarTheme(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
),
|
),
|
||||||
|
brightness: Brightness.dark,
|
||||||
scaffoldBackgroundColor: Colors.black,
|
scaffoldBackgroundColor: Colors.black,
|
||||||
focusColor: Colors.white,
|
focusColor: Colors.white,
|
||||||
textTheme: TextTheme(
|
textTheme: TextTheme(
|
||||||
@ -64,7 +64,5 @@ class AppTheme {
|
|||||||
color: Colors.white70, fontSize: 14, fontWeight: FontWeight.normal),
|
color: Colors.white70, fontSize: 14, fontWeight: FontWeight.normal),
|
||||||
subtitle2: TextStyle(
|
subtitle2: TextStyle(
|
||||||
color: Colors.white, fontSize: 16, fontWeight: FontWeight.bold)),
|
color: Colors.white, fontSize: 16, fontWeight: FontWeight.bold)),
|
||||||
colorScheme: ColorScheme.fromSwatch(primarySwatch: Colors.blueGrey)
|
|
||||||
.copyWith(secondary: Colors.white54),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user