FastSettingsLanguagePage class

The FastSettingsLanguagePage class is a FastSettingPageLayout that displays the current language of the application. It allows the user to change the language of the application.

Inheritance

Constructors

FastSettingsLanguagePage({Key? key, EdgeInsets? contentPadding, double iconHeight = kFastSettingIconHeight, Widget? headerIcon, List<Widget>? actions, LanguageFormatter? languageFormatter, 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
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
languageFormatter LanguageFormatter?
The LanguageFormatter that will be used to format the language code.
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
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() Widget
buildLanguageItem(String name, String languageCode) → FastItem<String>
Builds a FastItem that will be used to build a list item.
buildLanguageItems(Iterable<Locale> locales) List<FastItem<String>>
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
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
handleLanguageSelectionChanged(BuildContext context, String languageCode) Future<void>
Called when the user changes the language of the application. The languageCode parameter is the new language 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