WIP
This commit is contained in:
parent
cf0e17662e
commit
40e2e75a09
|
@ -41,7 +41,7 @@ abstract class FlutterFlowTheme {
|
||||||
static void saveThemeMode(ThemeMode mode) =>
|
static void saveThemeMode(ThemeMode mode) =>
|
||||||
mode == ThemeMode.system ? _prefs?.remove(kThemeModeKey) : _prefs?.setBool(kThemeModeKey, mode == ThemeMode.dark);
|
mode == ThemeMode.system ? _prefs?.remove(kThemeModeKey) : _prefs?.setBool(kThemeModeKey, mode == ThemeMode.dark);
|
||||||
static FlutterFlowTheme of(BuildContext context) {
|
static FlutterFlowTheme of(BuildContext context) {
|
||||||
deviceSize = getDeviceSize(context);
|
// deviceSize = getDeviceSize(context);
|
||||||
return Theme.of(context).brightness == Brightness.dark ? DarkModeTheme() : LightModeTheme();
|
return Theme.of(context).brightness == Brightness.dark ? DarkModeTheme() : LightModeTheme();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue