IMPS implementation
This commit is contained in:
@@ -16,17 +16,17 @@ class AppThemes {
|
||||
}
|
||||
}
|
||||
|
||||
static ThemeData getDarkTheme(ThemeType type) {
|
||||
switch (type) {
|
||||
case ThemeType.green:
|
||||
return ThemeData.dark().copyWith(primaryColor: Colors.green);
|
||||
case ThemeType.orange:
|
||||
return ThemeData.dark().copyWith(primaryColor: Colors.orange);
|
||||
case ThemeType.blue:
|
||||
return ThemeData.dark().copyWith(primaryColor: Colors.blue);
|
||||
case ThemeType.violet:
|
||||
default:
|
||||
return ThemeData.dark().copyWith(primaryColor: Colors.deepPurple);
|
||||
}
|
||||
}
|
||||
// static ThemeData getDarkTheme(ThemeType type) {
|
||||
// switch (type) {
|
||||
// case ThemeType.green:
|
||||
// return ThemeData.dark().copyWith(primaryColor: Colors.green);
|
||||
// case ThemeType.orange:
|
||||
// return ThemeData.dark().copyWith(primaryColor: Colors.orange);
|
||||
// case ThemeType.blue:
|
||||
// return ThemeData.dark().copyWith(primaryColor: Colors.blue);
|
||||
// case ThemeType.violet:
|
||||
// default:
|
||||
// return ThemeData.dark().copyWith(primaryColor: Colors.deepPurple);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
Reference in New Issue
Block a user