FThemeData class - forui.theme library (original) (raw)

Defines the configuration of the overall visual FTheme for a widget subtree.

A FThemeData is composed of colors, typography, style, and widget styles.

Widget styles provide an inherit(...) constructor. The constructor configures the widget style using the defaults provided by the colors, typography, and style.

Constructors

FThemeData.new({required FColors colors, String? debugLabel, FBreakpoints breakpoints = const FBreakpoints(), FTypography? typography, FStyle? style, FAccordionStyle? accordionStyle, FAlertStyles? alertStyles, FAvatarStyle? avatarStyle, FBadgeStyles? badgeStyles, FBottomNavigationBarStyle? bottomNavigationBarStyle, FButtonStyles? buttonStyles, FCalendarStyle? calendarStyle, FCardStyle? cardStyle, FCheckboxStyle? checkboxStyle, FDateFieldStyle? dateFieldStyle, FDialogStyle? dialogStyle, FDividerStyles? dividerStyles, FLabelStyles? labelStyles, FLineCalendarStyle? lineCalendarStyle, FPickerStyle? pickerStyle, FPopoverStyle? popoverStyle, FProgressStyles? progressStyles, FRadioStyle? radioStyle, FResizableStyle? resizableStyle, FScaffoldStyle? scaffoldStyle, FSelectStyle? selectStyle, FSelectGroupStyle? selectGroupStyle, FSheetStyle? sheetStyle, FSliderStyles? sliderStyles, FSwitchStyle? switchStyle, FTabsStyle? tabsStyle, FTappableStyle? tappableStyle, FTextFieldStyle? textFieldStyle, FTileGroupStyle? tileGroupStyle, FTimeFieldStyle? timeFieldStyle, FTimePickerStyle? timePickerStyle, FTooltipStyle? tooltipStyle})

Creates a FThemeData that configures the widget styles using the given properties if not given.

factory

Methods

copyWith({FAccordionStyle? accordionStyle, FAlertStyles? alertStyles, FAvatarStyle? avatarStyle, FBadgeStyles? badgeStyles, FBottomNavigationBarStyle? bottomNavigationBarStyle, FButtonStyles? buttonStyles, FCalendarStyle? calendarStyle, FCardStyle? cardStyle, FCheckboxStyle? checkboxStyle, FDateFieldStyle? dateFieldStyle, FDialogStyle? dialogStyle, FDividerStyles? dividerStyles, FLabelStyles? labelStyles, FLineCalendarStyle? lineCalendarStyle, FPickerStyle? pickerStyle, FPopoverStyle? popoverStyle, FProgressStyles? progressStyles, FRadioStyle? radioStyle, FResizableStyle? resizableStyle, FScaffoldStyle? scaffoldStyle, FSelectStyle? selectStyle, FSelectGroupStyle? selectGroupStyle, FSheetStyle? sheetStyle, FSliderStyles? sliderStyles, FSwitchStyle? switchStyle, FTabsStyle? tabsStyle, FTappableStyle? tappableStyle, FTextFieldStyle? textFieldStyle, FTileGroupStyle? tileGroupStyle, FTimeFieldStyle? timeFieldStyle, FTooltipStyle? tooltipStyle})→ FThemeData

Returns a copy of this FThemeData with the given properties replaced.

debugFillProperties(DiagnosticPropertiesBuilder properties)→ void

Add additional properties associated with the node.

override

noSuchMethod(Invocation invocation)→ dynamic

Invoked when a nonexistent method or property is accessed.

inherited

toApproximateMaterialTheme()→ ThemeData

Converts this FThemeData to a Material ThemeData on a best-effort basis.

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

toStringShort()→ String

A brief description of this object, usually just the runtimeType and thehashCode.

inherited

transform(T function(T))→ T

Available on T, provided by the FTransformables extension

Transform this T using the given function.