This commit is contained in:
J. A. Messias 2024-11-18 17:20:15 -03:00
parent cf0e17662e
commit 40e2e75a09
1 changed files with 1 additions and 1 deletions

View File

@ -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();
} }