FastSettingsThemePage class

The FastSettingsThemePage class is a FastSettingPageLayout that displays the current theme of the application. It allows the user to change the theme of the application. The theme can be changed to light, dark or system.

Inheritance

Constructors

FastSettingsThemePage({Key? key, EdgeInsets? contentPadding, double iconHeight = kFastSettingIconHeight, Widget? headerIcon, List<Widget>? actions, String lightIconPath = FastImageMobile.light, String darkIconPath = FastImageMobile.dark, ThemeModeFormatter? themeModeFormatter, FastListItemDescriptor? listItemDescriptor, String? headerDescriptionText, String? titleText, String? subtitleText})
const

Properties

actions List<Widget>?
The actions to display in the page's app bar.
finalinherited
contentPadding EdgeInsets?
The content padding of the page.
finalinherited
darkIconPath String
The path of the dark icon.
final
hashCode int
The hash code for this object.
no setterinherited
headerDescriptionText String?
The header description text of the page.
finalinherited
headerIcon Widget?
The icon to display in the page's header.
finalinherited
iconHeight double
The height of the icon.
finalinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lightIconPath String
The path of the light icon.
final
listItemDescriptor → FastListItemDescriptor?
The FastListItemDescriptor that will be used to build the list items.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtitleText String?
The text that will be displayed above the list items.
final
themeModeFormatter ThemeModeFormatter?
The ThemeModeFormatter that will be used to format the theme mode.
final
titleText String?
The title text of the page.
finalinherited

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
inherited
buildHeaderIcon(BuildContext context) Widget?
inherited
buildIcon(BuildContext context, ThemeMode themeMode) Widget
Builds the icon that will be used to change the theme of the application. The icon will be either the light or dark icon depending on the themeMode parameter.
buildLeadingIcon(IconData icon) Widget
buildSettingsContent(BuildContext context) Widget
override
buildSettingsHeader(BuildContext context) Widget
inherited
buildSettingsHeaderIcon(BuildContext context) Widget
Builds the header icons that will be used to change the theme of the application.
override
buildThemeItem(String name, ThemeMode themeMode, Widget icon) → FastItem<ThemeMode>
Builds a FastItem that will be used to build a list item.
buildThemeItems(BuildContext context) List<FastItem<ThemeMode>>
Builds the list of FastItem that will be used to build the list items. The list items are used to change the theme of the application.
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
handleThemeSelectionChanged(BuildContext context, ThemeMode themeMode) → void
Called when the user changes the theme of the application. The themeMode parameter is the new theme of the application.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited