Login i18n and color changes
This commit is contained in:
@@ -15,7 +15,7 @@ class ThemeState with ChangeNotifier {
|
||||
),
|
||||
toggleableActiveColor: Colors.red,
|
||||
)
|
||||
: ThemeData.light();
|
||||
: _getThemeLight();
|
||||
|
||||
bool get isDarkModeEnabled => _isDarkModeEnabled;
|
||||
|
||||
@@ -23,4 +23,12 @@ class ThemeState with ChangeNotifier {
|
||||
_isDarkModeEnabled = b;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
ThemeData _getThemeLight() {
|
||||
final theme = ThemeData(
|
||||
primarySwatch: Colors.deepPurple,
|
||||
);
|
||||
|
||||
return theme;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user