ThemeController class
The ThemeController is used by many Widgets that users can interact with.
Widgets can read user theme settings, set user theme settings and listen to user's theme changes.
The controller glues data Services to Flutter Widgets. The ThemeController uses the ThemeService to save and load theme settings.
This setup on purpose demonstrates persisting each theme setting value as its own string key and value pair. With this amount of values, bundling them all up in a data class and persisting them all as one big serialized JSON string, with just one settings key, would be more convenient. On the other hand, this is probably more file resource efficient and gives us faster saves of persisted slider values, that can be dragged quickly in the UI. Writing this setup for this many properties is a bit tedious, even if it is simple and very mechanical.
Normally you would probably not have this many settings properties you want to persist locally (or remotely), in that case this approach is also the simpler and more convenient one. In this particular case though, well maybe not with this amount of props.
- Mixed-in types
Constructors
- ThemeController(ThemeService _themeService)
Properties
- adaptiveAppBarScrollUnderOffDark → AdaptiveTheme?
-
no setter
- adaptiveAppBarScrollUnderOffLight → AdaptiveTheme?
-
no setter
- adaptiveDialogRadius → AdaptiveTheme?
-
no setter
- adaptiveElevationShadowsBackDark → AdaptiveTheme?
-
no setter
- adaptiveElevationShadowsBackLight → AdaptiveTheme?
-
no setter
- adaptiveRadius → AdaptiveTheme?
-
no setter
- adaptiveRemoveElevationTintDark → AdaptiveTheme?
-
no setter
- adaptiveRemoveElevationTintLight → AdaptiveTheme?
-
no setter
-
no setter
-
no setter
- adaptiveSplash → AdaptiveTheme?
-
no setter
- alignedDropdown → bool
-
no setter
- appBarBackgroundSchemeColorDark → SchemeColor?
-
no setter
- appBarBackgroundSchemeColorLight → SchemeColor?
-
no setter
- appBarElevationDark → double?
-
no setter
- appBarElevationLight → double?
-
no setter
- appBarOpacityDark → double
-
no setter
- appBarOpacityLight → double
-
no setter
- appBarScrolledUnderElevationDark → double?
-
no setter
- appBarScrolledUnderElevationLight → double?
-
no setter
- appBarStyleDark → FlexAppBarStyle?
-
no setter
- appBarStyleLight → FlexAppBarStyle?
-
no setter
- blendDarkOnColors → bool
-
no setter
- blendDarkTextTheme → bool
-
no setter
- blendLevel → int
-
no setter
- blendLevelDark → int
-
no setter
- blendLightOnColors → bool
-
no setter
- blendLightTextTheme → bool
-
no setter
- blendOnLevel → int
-
no setter
- blendOnLevelDark → int
-
no setter
- bottomAppBarElevationDark → double?
-
no setter
- bottomAppBarElevationLight → double?
-
no setter
- bottomAppBarSchemeColor → SchemeColor?
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
- bottomSheetBorderRadius → double?
-
no setter
- bottomSheetElevation → double?
-
no setter
- bottomSheetModalElevation → double?
-
no setter
- bottomSheetModalSchemeColor → SchemeColor?
-
no setter
- bottomSheetSchemeColor → SchemeColor?
-
no setter
- cardBorderRadius → double?
-
no setter
- checkboxSchemeColor → SchemeColor?
-
no setter
- chipBorderRadius → double?
-
no setter
- chipDeleteIconSchemeColor → SchemeColor?
-
no setter
- chipSchemeColor → SchemeColor?
-
no setter
- chipSelectedSchemeColor → SchemeColor?
-
no setter
- compactMode → bool
-
no setter
- confirmPremade → bool
-
no setter
- customScheme → FlexSchemeData
-
no setter
- darkIsTrueBlack → bool
-
no setter
- darkMethodLevel → int
-
no setter
- datePickerDialogBorderRadius → double?
-
no setter
- datePickerHeaderBackgroundSchemeColor → SchemeColor?
-
no setter
- defaultRadius → double?
-
no setter
- defaultRadiusAdaptive → double?
-
no setter
- deviceSize → double
-
no setter
- dialogBackgroundSchemeColor → SchemeColor?
-
no setter
- dialogBorderRadius → double?
-
no setter
- dialogBorderRadiusAdaptive → double?
-
no setter
- dialogElevation → double?
-
no setter
- drawerBackgroundSchemeColor → SchemeColor?
-
no setter
- drawerBorderRadius → double?
-
no setter
- drawerElevation → double?
-
no setter
- drawerIndicatorBorderRadius → double?
-
no setter
- drawerIndicatorOpacity → double?
-
no setter
- drawerIndicatorSchemeColor → SchemeColor?
-
no setter
- drawerIndicatorWidth → double?
-
no setter
- drawerSelectedItemSchemeColor → SchemeColor?
-
no setter
- drawerUnselectedItemSchemeColor → SchemeColor?
-
no setter
- drawerWidth → double?
-
no setter
- elevatedButtonBorderRadius → double?
-
no setter
- elevatedButtonSchemeColor → SchemeColor?
-
no setter
- elevatedButtonSecondarySchemeColor → SchemeColor?
-
no setter
- fabAlwaysCircular → bool
-
no setter
- fabBorderRadius → double?
-
no setter
- fabSchemeColor → SchemeColor?
-
no setter
- fabUseShape → bool
-
no setter
- fakeIsWeb → bool?
-
no setter
- filledButtonBorderRadius → double?
-
no setter
- filledButtonSchemeColor → SchemeColor?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- inputCursorDarkSchemeColor → SchemeColor?
-
no setter
- inputCursorLightSchemeColor → SchemeColor?
-
no setter
- inputDecoratorBackgroundAlphaDark → int?
-
no setter
- inputDecoratorBackgroundAlphaLight → int?
-
no setter
- inputDecoratorBorderRadius → double?
-
no setter
- inputDecoratorBorderSchemeColorDark → SchemeColor?
-
no setter
- inputDecoratorBorderSchemeColorLight → SchemeColor?
-
no setter
- inputDecoratorBorderType → FlexInputBorderType
-
no setter
- inputDecoratorBorderWidth → double?
-
no setter
- inputDecoratorFocusedBorderWidth → double?
-
no setter
- inputDecoratorFocusedHasBorder → bool
-
no setter
- inputDecoratorIsFilled → bool
-
no setter
- inputDecoratorPrefixIconDarkSchemeColor → SchemeColor?
-
no setter
- inputDecoratorPrefixIconSchemeColor → SchemeColor?
-
no setter
- inputDecoratorSchemeColorDark → SchemeColor?
-
no setter
- inputDecoratorSchemeColorLight → SchemeColor?
-
no setter
- inputDecoratorUnfocusedBorderIsColored → bool
-
no setter
- inputDecoratorUnfocusedHasBorder → bool
-
no setter
- inputSelectionDarkOpacity → double?
-
no setter
- inputSelectionDarkSchemeColor → SchemeColor?
-
no setter
- inputSelectionHandleDarkSchemeColor → SchemeColor?
-
no setter
- inputSelectionHandleLightSchemeColor → SchemeColor?
-
no setter
- inputSelectionLightOpacity → double?
-
no setter
- inputSelectionLightSchemeColor → SchemeColor?
-
no setter
- interactionEffects → bool
-
no setter
- isLargeGridView → bool
-
no setter
- keepDarkPrimary → bool
-
no setter
- keepDarkPrimaryContainer → bool
-
no setter
- keepDarkSecondary → bool
-
no setter
- keepDarkSecondaryContainer → bool
-
no setter
- keepDarkTertiary → bool
-
no setter
- keepDarkTertiaryContainer → bool
-
no setter
- keepPrimary → bool
-
no setter
- keepPrimaryContainer → bool
-
no setter
- keepSecondary → bool
-
no setter
- keepSecondaryContainer → bool
-
no setter
- keepTertiary → bool
-
no setter
- keepTertiaryContainer → bool
-
no setter
- lightIsWhite → bool
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
-
no setter
- onMainsUseBWDark → bool
-
no setter
- onMainsUseBWLight → bool
-
no setter
- onSurfacesUseBWDark → bool
-
no setter
- onSurfacesUseBWLight → bool
-
no setter
- outlinedButtonBorderRadius → double?
-
no setter
- outlinedButtonBorderWidth → double?
-
no setter
- outlinedButtonOutlineSchemeColor → SchemeColor?
-
no setter
- outlinedButtonPressedBorderWidth → double?
-
no setter
- outlinedButtonSchemeColor → SchemeColor?
-
no setter
- paletteType → FlexPaletteType
-
no setter
- platform → TargetPlatform?
-
no setter
- popupMenuBorderRadius → double?
-
no setter
- popupMenuElevation → double?
-
no setter
- popupMenuOpacity → double
-
no setter
- popupMenuSchemeColor → SchemeColor?
-
no setter
- primaryContainerDark → Color
-
no setter
- primaryContainerLight → Color
-
no setter
- primaryDark → Color
-
no setter
- primaryLight → Color
-
no setter
- radioSchemeColor → SchemeColor?
-
no setter
-
recentColors
→ List<
Color> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schemeIndex → int
-
no setter
- secondaryContainerDark → Color
-
no setter
- secondaryContainerLight → Color
-
no setter
- secondaryDark → Color
-
no setter
- secondaryLight → Color
-
no setter
- segmentedButtonBorderRadius → double?
-
no setter
- segmentedButtonBorderSchemeColor → SchemeColor?
-
no setter
- segmentedButtonBorderWidth → double?
-
no setter
- segmentedButtonSchemeColor → SchemeColor?
-
no setter
- segmentedButtonUnselectedForegroundSchemeColor → SchemeColor?
-
no setter
- segmentedButtonUnselectedSchemeColor → SchemeColor?
-
no setter
- showSchemeInput → bool
-
no setter
- sideViewIndex → int
-
no setter
- simulatorAppIndex → int
-
no setter
- simulatorComponentsIndex → int
-
no setter
- simulatorDeviceIndex → int
-
no setter
- sliderBaseSchemeColor → SchemeColor?
-
no setter
- sliderIndicatorSchemeColor → SchemeColor?
-
no setter
- sliderShowValueIndicator → ShowValueIndicator?
-
no setter
- sliderTrackHeight → double?
-
no setter
- sliderValueIndicatorType → FlexSliderIndicatorType?
-
no setter
- sliderValueTinted → bool
-
no setter
- snackBarActionSchemeColor → SchemeColor?
-
no setter
- snackBarBorderRadius → double?
-
no setter
- snackBarElevation → double?
-
no setter
- snackBarSchemeColor → SchemeColor?
-
no setter
- splashType → SplashTypeEnum?
-
no setter
- splashTypeAdaptive → SplashTypeEnum?
-
no setter
- surfaceModeDark → FlexSurfaceMode
-
no setter
- surfaceModeLight → FlexSurfaceMode
-
no setter
- surfacesUseBWDark → bool
-
no setter
- surfacesUseBWLight → bool
-
no setter
- surfaceTintDark → Color?
-
no setter
- surfaceTintLight → Color?
-
no setter
- swapDarkColors → bool
-
no setter
- swapLegacyColors → bool
-
no setter
- swapLightColors → bool
-
no setter
- switchSchemeColor → SchemeColor?
-
no setter
- switchThumbFixedSize → bool
-
no setter
- switchThumbSchemeColor → SchemeColor?
-
no setter
-
no setter
-
no setter
- tabBarDividerColor → Color?
-
no setter
- tabBarIndicatorDark → SchemeColor?
-
no setter
- tabBarIndicatorLight → SchemeColor?
-
no setter
- tabBarIndicatorSize → TabBarIndicatorSize?
-
no setter
- tabBarIndicatorTopRadius → double?
-
no setter
- tabBarIndicatorWeight → double?
-
no setter
- tabBarItemSchemeColorDark → SchemeColor?
-
no setter
- tabBarItemSchemeColorLight → SchemeColor?
-
no setter
- tabBarStyle → FlexTabBarStyle?
-
no setter
- tabBarUnselectedItemOpacityDark → double?
-
no setter
- tabBarUnselectedItemOpacityLight → double?
-
no setter
- tabBarUnselectedItemSchemeColorDark → SchemeColor?
-
no setter
- tabBarUnselectedItemSchemeColorLight → SchemeColor?
-
no setter
- tertiaryContainerDark → Color
-
no setter
- tertiaryContainerLight → Color
-
no setter
- tertiaryDark → Color
-
no setter
- tertiaryLight → Color
-
no setter
- textButtonBorderRadius → double?
-
no setter
- textButtonSchemeColor → SchemeColor?
-
no setter
- themeMode → ThemeMode
-
no setter
- thickBorderWidth → double?
-
no setter
- thinBorderWidth → double?
-
no setter
- timePickerDialogBorderRadius → double?
-
no setter
- timePickerElementRadius → double?
-
no setter
- tintedDisabledControls → bool
-
no setter
- toDarkSwapPrimaryAndContainer → bool
-
no setter
- toggleButtonsBorderRadius → double?
-
no setter
- toggleButtonsBorderSchemeColor → SchemeColor?
-
no setter
- toggleButtonsBorderWidth → double?
-
no setter
- toggleButtonsSchemeColor → SchemeColor?
-
no setter
- toggleButtonsUnselectedSchemeColor → SchemeColor?
-
no setter
- tooltipOpacity → double
-
no setter
- tooltipRadius → double?
-
no setter
- tooltipSchemeColor → SchemeColor?
-
no setter
- tooltipShowDuration → int?
-
no setter
- tooltipsMatchBackground → bool
-
no setter
- tooltipWaitDuration → int?
-
no setter
- transparentStatusBar → bool
-
no setter
- unselectedToggleIsColored → bool
-
no setter
- useAppFont → bool
-
no setter
- usedColors → int
-
no setter
- usedFlexToneSetup → int
-
no setter
- usedScheme → FlexScheme
-
no setter
- usedVisualDensity → VisualDensityEnum?
-
no setter
- useFlexColorScheme → bool
-
no setter
- useFlutterDefaults → bool
-
no setter
- useInputDecoratorThemeInDialogs → bool
-
no setter
- useKeyColors → bool
-
no setter
- useM2StyleDividerInM3 → bool
-
no setter
- useM3ErrorColors → bool
-
no setter
- useMaterial3 → bool
-
no setter
- useSecondary → bool
-
no setter
- useSubThemes → bool
-
no setter
-
no setter
- useTertiary → bool
-
no setter
- useTextTheme → bool?
-
no setter
- useToDarkMethod → bool
-
no setter
- verticalMode → bool
-
no setter
- viewIndex → int
-
no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
loadAll(
) → Future< void> - Load all ThemeController settings from the ThemeService. It may load from app coded defaults, a local database or the internet. The controller only knows it can load all the setting default values from the service.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
resetAllToDefaults(
{bool resetMode = true, bool doNotify = true}) → Future< void> - Reset all values to default values and save as current settings.
-
resetCustomColorsToDefaults(
) → Future< void> - Reset the custom color values to their default values.
-
resetFakePlatform(
) → void -
setAdaptiveAppBarScrollUnderOffDark(
AdaptiveTheme? value, [bool notify = true]) → void -
setAdaptiveAppBarScrollUnderOffLight(
AdaptiveTheme? value, [bool notify = true]) → void -
setAdaptiveDialogRadius(
AdaptiveTheme? value, [bool notify = true]) → void -
setAdaptiveElevationShadowsBackDark(
AdaptiveTheme? value, [bool notify = true]) → void -
setAdaptiveElevationShadowsBackLight(
AdaptiveTheme? value, [bool notify = true]) → void -
setAdaptiveRadius(
AdaptiveTheme? value, [bool notify = true]) → void -
setAdaptiveRemoveElevationTintDark(
AdaptiveTheme? value, [bool notify = true]) → void -
setAdaptiveRemoveElevationTintLight(
AdaptiveTheme? value, [bool notify = true]) → void -
setAdaptiveSplash(
AdaptiveTheme? value, [bool notify = true]) → void -
setAlignedDropdown(
bool? value, [bool notify = true]) → void -
setAppBarBackgroundSchemeColorDark(
SchemeColor? value, [bool notify = true]) → void -
setAppBarBackgroundSchemeColorLight(
SchemeColor? value, [bool notify = true]) → void -
setAppBarElevationDark(
double? value, [bool notify = true]) → void -
setAppBarElevationLight(
double? value, [bool notify = true]) → void -
setAppBarOpacityDark(
double? value, [bool notify = true]) → void -
setAppBarOpacityLight(
double? value, [bool notify = true]) → void -
setAppBarScrolledUnderElevationDark(
double? value, [bool notify = true]) → void -
setAppBarScrolledUnderElevationLight(
double? value, [bool notify = true]) → void -
setAppBarStyleDark(
FlexAppBarStyle? value, [bool notify = true]) → void -
setAppBarStyleLight(
FlexAppBarStyle? value, [bool notify = true]) → void -
setBlendDarkOnColors(
bool? value, [bool notify = true]) → void -
setBlendDarkTextTheme(
bool? value, [bool notify = true]) → void -
setBlendLevel(
int? value, [bool notify = true]) → void -
setBlendLevelDark(
int? value, [bool notify = true]) → void -
setBlendLightOnColors(
bool? value, [bool notify = true]) → void -
setBlendLightTextTheme(
bool? value, [bool notify = true]) → void -
setBlendOnLevel(
int? value, [bool notify = true]) → void -
setBlendOnLevelDark(
int? value, [bool notify = true]) → void -
setBottomAppBarElevationDark(
double? value, [bool notify = true]) → void -
setBottomAppBarElevationLight(
double? value, [bool notify = true]) → void -
setBottomAppBarSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setBottomSheetBorderRadius(
double? value, [bool notify = true]) → void -
setBottomSheetElevation(
double? value, [bool notify = true]) → void -
setBottomSheetModalElevation(
double? value, [bool notify = true]) → void -
setBottomSheetModalSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setBottomSheetSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setCardBorderRadius(
double? value, [bool notify = true]) → void -
setCheckboxSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setChipBorderRadius(
double? value, [bool notify = true]) → void -
setChipDeleteIconSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setChipSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setChipSelectedSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setCompactMode(
bool? value, [bool notify = true]) → void -
setConfirmPremade(
bool? value, [bool notify = true]) → void -
setCustomScheme(
FlexSchemeData scheme) → void -
setDarkIsTrueBlack(
bool? value, [bool notify = true]) → void -
setDarkMethodLevel(
int? value, [bool notify = true]) → void -
setDatePickerDialogBorderRadius(
double? value, [bool notify = true]) → void -
setDatePickerHeaderBackgroundSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setDefaultRadius(
double? value, [bool notify = true]) → void -
setDefaultRadiusAdaptive(
double? value, [bool notify = true]) → void -
setDeviceSize(
double? value, [bool notify = true]) → void -
setDialogBackgroundSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setDialogBorderRadius(
double? value, [bool notify = true]) → void -
setDialogBorderRadiusAdaptive(
double? value, [bool notify = true]) → void -
setDialogElevation(
double? value, [bool notify = true]) → void -
setDrawerBackgroundSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setDrawerBorderRadius(
double? value, [bool notify = true]) → void -
setDrawerElevation(
double? value, [bool notify = true]) → void -
setDrawerIndicatorBorderRadius(
double? value, [bool notify = true]) → void -
setDrawerIndicatorOpacity(
double? value, [bool notify = true]) → void -
setDrawerIndicatorSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setDrawerIndicatorWidth(
double? value, [bool notify = true]) → void -
setDrawerSelectedItemSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setDrawerUnselectedItemSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setDrawerWidth(
double? value, [bool notify = true]) → void -
setElevatedButtonBorderRadius(
double? value, [bool notify = true]) → void -
setElevatedButtonSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setElevatedButtonSecondarySchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setFabAlwaysCircular(
bool? value, [bool notify = true]) → void -
setFabBorderRadius(
double? value, [bool notify = true]) → void -
setFabSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setFabUseShape(
bool? value, [bool notify = true]) → void -
setFakeIsWeb(
bool? value, [bool notify = true]) → void -
setFilledButtonBorderRadius(
double? value, [bool notify = true]) → void -
setFilledButtonSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setInputCursorDarkSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setInputCursorLightSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setInputDecoratorBackgroundAlphaDark(
int? value, [bool notify = true]) → void -
setInputDecoratorBackgroundAlphaLight(
int? value, [bool notify = true]) → void -
setInputDecoratorBorderRadius(
double? value, [bool notify = true]) → void -
setInputDecoratorBorderSchemeColorDark(
SchemeColor? value, [bool notify = true]) → void -
setInputDecoratorBorderSchemeColorLight(
SchemeColor? value, [bool notify = true]) → void -
setInputDecoratorBorderType(
FlexInputBorderType? value, [bool notify = true]) → void -
setInputDecoratorBorderWidth(
double? value, [bool notify = true]) → void -
setInputDecoratorFocusedBorderWidth(
double? value, [bool notify = true]) → void -
setInputDecoratorFocusedHasBorder(
bool? value, [bool notify = true]) → void -
setInputDecoratorIsFilled(
bool? value, [bool notify = true]) → void -
setInputDecoratorPrefixIconDarkSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setInputDecoratorPrefixIconSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setInputDecoratorSchemeColorDark(
SchemeColor? value, [bool notify = true]) → void -
setInputDecoratorSchemeColorLight(
SchemeColor? value, [bool notify = true]) → void -
setInputDecoratorUnfocusedBorderIsColored(
bool? value, [bool notify = true]) → void -
setInputDecoratorUnfocusedHasBorder(
bool? value, [bool notify = true]) → void -
setInputSelectionDarkOpacity(
double? value, [bool notify = true]) → void -
setInputSelectionDarkSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setInputSelectionHandleDarkSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setInputSelectionHandleLightSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setInputSelectionLightOpacity(
double? value, [bool notify = true]) → void -
setInputSelectionLightSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setInteractionEffects(
bool? value, [bool notify = true]) → void -
setKeepDarkPrimary(
bool? value, [bool notify = true]) → void -
setKeepDarkPrimaryContainer(
bool? value, [bool notify = true]) → void -
setKeepDarkSecondary(
bool? value, [bool notify = true]) → void -
setKeepDarkSecondaryContainer(
bool? value, [bool notify = true]) → void -
setKeepDarkTertiary(
bool? value, [bool notify = true]) → void -
setKeepDarkTertiaryContainer(
bool? value, [bool notify = true]) → void -
setKeepPrimary(
bool? value, [bool notify = true]) → void -
setKeepPrimaryContainer(
bool? value, [bool notify = true]) → void -
setKeepSecondary(
bool? value, [bool notify = true]) → void -
setKeepSecondaryContainer(
bool? value, [bool notify = true]) → void -
setKeepTertiary(
bool? value, [bool notify = true]) → void -
setKeepTertiaryContainer(
bool? value, [bool notify = true]) → void -
setLargeGridView(
bool? value, [bool notify = true]) → void -
setLightIsWhite(
bool? value, [bool notify = true]) → void -
setMenuBarBackgroundSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setMenuBarElevation(
double? value, [bool notify = true]) → void -
setMenuBarRadius(
double? value, [bool notify = true]) → void -
setMenuBarShadowColor(
Color? value, [bool notify = true]) → void -
setMenuElevation(
double? value, [bool notify = true]) → void -
setMenuIndicatorBackgroundSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setMenuIndicatorForegroundSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setMenuIndicatorRadius(
double? value, [bool notify = true]) → void -
setMenuItemBackgroundSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setMenuItemForegroundSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setMenuOpacity(
double? value, [bool notify = true]) → void -
setMenuPaddingBottom(
double? value, [bool notify = true]) → void -
setMenuPaddingEnd(
double? value, [bool notify = true]) → void -
setMenuPaddingStart(
double? value, [bool notify = true]) → void -
setMenuPaddingTop(
double? value, [bool notify = true]) → void -
setMenuRadius(
double? value, [bool notify = true]) → void -
setMenuSchemeColor(
SchemeColor? value, [bool notify = true]) → void - Set NavigationBar values to Flutter M3 defaults.
- Set NavigationRail values to Flutter M3 defaults.
-
setOnMainsUseBWDark(
bool? value, [bool notify = true]) → void -
setOnMainsUseBWLight(
bool? value, [bool notify = true]) → void -
setOnSurfacesUseBWDark(
bool? value, [bool notify = true]) → void -
setOnSurfacesUseBWLight(
bool? value, [bool notify = true]) → void -
setOutlinedButtonBorderRadius(
double? value, [bool notify = true]) → void -
setOutlinedButtonBorderWidth(
double? value, [bool notify = true]) → void -
setOutlinedButtonOutlineSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setOutlinedButtonPressedBorderWidth(
double? value, [bool notify = true]) → void -
setOutlinedButtonSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setPaletteType(
FlexPaletteType? value, [bool notify = true]) → void -
setPlatform(
TargetPlatform? value, [bool notify = true]) → void -
setPopupMenuBorderRadius(
double? value, [bool notify = true]) → void -
setPopupMenuElevation(
double? value, [bool notify = true]) → void -
setPopupMenuOpacity(
double? value, [bool notify = true]) → void -
setPopupMenuSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setPrimaryContainerDark(
Color? value, [bool notify = true]) → void -
setPrimaryContainerLight(
Color? value, [bool notify = true]) → void -
setPrimaryDark(
Color? value, [bool notify = true]) → void -
setPrimaryLight(
Color? value, [bool notify = true]) → void -
setRadioSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setRecentColors(
List< Color> colors) → void -
setSchemeIndex(
int? value, [bool notify = true]) → void -
setSecondaryContainerDark(
Color? value, [bool notify = true]) → void -
setSecondaryContainerLight(
Color? value, [bool notify = true]) → void -
setSecondaryDark(
Color? value, [bool notify = true]) → void -
setSecondaryLight(
Color? value, [bool notify = true]) → void -
setSegmentedButtonBorderRadius(
double? value, [bool notify = true]) → void -
setSegmentedButtonBorderSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setSegmentedButtonBorderWidth(
double? value, [bool notify = true]) → void -
setSegmentedButtonSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setSegmentedButtonUnselectedForegroundSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setSegmentedButtonUnselectedSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setShowSchemeInput(
bool? value, [bool notify = true]) → void -
setSideViewIndex(
int? value, [bool notify = true]) → void -
setSimulatorAppIndex(
int? value, [bool notify = true]) → void -
setSimulatorComponentsIndex(
int? value, [bool notify = true]) → void -
setSimulatorDeviceIndex(
int? value, [bool notify = true]) → void -
setSliderBaseSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setSliderIndicatorSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setSliderShowValueIndicator(
ShowValueIndicator? value, [bool notify = true]) → void -
setSliderTrackHeight(
double? value, [bool notify = true]) → void -
setSliderValueIndicatorType(
FlexSliderIndicatorType? value, [bool notify = true]) → void -
setSliderValueTinted(
bool? value, [bool notify = true]) → void -
setSnackBarActionSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setSnackBarBorderRadius(
double? value, [bool notify = true]) → void -
setSnackBarElevation(
double? value, [bool notify = true]) → void -
setSnackBarSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setSplashType(
SplashTypeEnum? value, [bool notify = true]) → void -
setSplashTypeAdaptive(
SplashTypeEnum? value, [bool notify = true]) → void -
setSurfaceModeDark(
FlexSurfaceMode? value, [bool notify = true]) → void -
setSurfaceModeLight(
FlexSurfaceMode? value, [bool notify = true]) → void -
setSurfacesUseBWDark(
bool? value, [bool notify = true]) → void -
setSurfacesUseBWLight(
bool? value, [bool notify = true]) → void -
setSurfaceTintDark(
Color? value, [bool notify = true]) → void -
setSurfaceTintLight(
Color? value, [bool notify = true]) → void -
setSwapDarkColors(
bool? value, [bool notify = true]) → void -
setSwapLegacyColors(
bool? value, [bool notify = true]) → void -
setSwapLightColors(
bool? value, [bool notify = true]) → void -
setSwitchSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setSwitchThumbFixedSize(
bool? value, [bool notify = true]) → void -
setSwitchThumbSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setSysBarOpacity(
double? value, [bool notify = true]) → void -
setTabBarDividerColor(
Color? value, [bool notify = true]) → void -
setTabBarIndicatorDark(
SchemeColor? value, [bool notify = true]) → void -
setTabBarIndicatorLight(
SchemeColor? value, [bool notify = true]) → void -
setTabBarIndicatorSize(
TabBarIndicatorSize? value, [bool notify = true]) → void -
setTabBarIndicatorTopRadius(
double? value, [bool notify = true]) → void -
setTabBarIndicatorWeight(
double? value, [bool notify = true]) → void -
setTabBarItemSchemeColorDark(
SchemeColor? value, [bool notify = true]) → void -
setTabBarItemSchemeColorLight(
SchemeColor? value, [bool notify = true]) → void -
setTabBarStyle(
FlexTabBarStyle? value, [bool notify = true]) → void -
setTabBarUnselectedItemOpacityDark(
double? value, [bool notify = true]) → void -
setTabBarUnselectedItemOpacityLight(
double? value, [bool notify = true]) → void -
setTabBarUnselectedItemSchemeColorDark(
SchemeColor? value, [bool notify = true]) → void -
setTabBarUnselectedItemSchemeColorLight(
SchemeColor? value, [bool notify = true]) → void -
setTertiaryContainerDark(
Color? value, [bool notify = true]) → void -
setTertiaryContainerLight(
Color? value, [bool notify = true]) → void -
setTertiaryDark(
Color? value, [bool notify = true]) → void -
setTertiaryLight(
Color? value, [bool notify = true]) → void -
setTextButtonBorderRadius(
double? value, [bool notify = true]) → void -
setTextButtonSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setTextFieldToDefaults(
[bool doNotify = true]) → Future< void> - Set TextField values to FlexColorScheme defaults.
-
setTextFieldToM3(
[bool doNotify = true]) → Future< void> - Set TextField values to Flutter M3 defaults.
-
setThemeMode(
ThemeMode? value, [bool notify = true]) → void -
setThickBorderWidth(
double? value, [bool notify = true]) → void -
setThinBorderWidth(
double? value, [bool notify = true]) → void -
setTimePickerDialogBorderRadius(
double? value, [bool notify = true]) → void -
setTimePickerElementRadius(
double? value, [bool notify = true]) → void -
setTintedDisabledControls(
bool? value, [bool notify = true]) → void -
setToDarkSwapPrimaryAndContainer(
bool? value, [bool notify = true]) → void -
setToggleButtonsBorderRadius(
double? value, [bool notify = true]) → void -
setToggleButtonsBorderSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setToggleButtonsBorderWidth(
double? value, [bool notify = true]) → void -
setToggleButtonsSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setToggleButtonsUnselectedSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setTooltipOpacity(
double? value, [bool notify = true]) → void -
setTooltipRadius(
double? value, [bool notify = true]) → void -
setTooltipSchemeColor(
SchemeColor? value, [bool notify = true]) → void -
setTooltipShowDuration(
int? value, [bool notify = true]) → void -
setTooltipsMatchBackground(
bool? value, [bool notify = true]) → void -
setTooltipWaitDuration(
int? value, [bool notify = true]) → void -
setToPremade(
{int settingsId = 0}) → Future< void> - Set Playground settings and FCS theme to selected premade config.
-
setTransparentStatusBar(
bool? value, [bool notify = true]) → void -
setUnselectedToggleIsColored(
bool? value, [bool notify = true]) → void -
setUseAppFont(
bool? value, [bool notify = true]) → void -
setUsedColors(
int? value, [bool notify = true]) → void -
setUsedFlexToneSetup(
int? value, [bool notify = true]) → void -
setUsedScheme(
FlexScheme? value, [bool notify = true]) → void -
setUsedVisualDensity(
VisualDensityEnum? value, [bool notify = true]) → void -
setUseFlexColorScheme(
bool? value, [bool notify = true]) → void -
setUseFlutterDefaults(
bool? value, [bool notify = true]) → void -
setUseInputDecoratorThemeInDialogs(
bool? value, [bool notify = true]) → void -
setUseKeyColors(
bool? value, [bool notify = true]) → void -
setUseM2StyleDividerInM3(
bool? value, [bool notify = true]) → void -
setUseM3ErrorColors(
bool? value, [bool notify = true]) → void -
setUseMaterial3(
bool? value, [bool notify = true]) → void -
setUseSecondary(
bool? value, [bool notify = true]) → void -
setUseSubThemes(
bool? value, [bool notify = true]) → void -
setUseTertiary(
bool? value, [bool notify = true]) → void -
setUseTextTheme(
bool? value, [bool notify = true]) → void -
setUseToDarkMethod(
bool? value, [bool notify = true]) → void -
setVerticalMode(
bool? value, [bool notify = true]) → void -
setViewIndex(
int? value, [bool notify = true]) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited