GBThemeData class

Inheritance
Mixed-in types
Annotations

Constructors

GBThemeData({Color accentColor = DefaultColors.accent_accent_blue, Color accentError = DefaultColors.accent_error_red, Color accentErrorLight = DefaultColors.accent_error_red_light, Color backgroundBase = DefaultColors.background_base, Color backgroundContrast = DefaultColors.background_contrast, Color backgroundDisabled = DefaultColors.background_disabled, Color backgroundFocus = DefaultColors.background_focus, Color primaryColor = DefaultColors.primaryPrimaryYellow, Color textBase = DefaultColors.text_gray_base, Color textBlack = DefaultColors.text_text_black, Color textDisabled = DefaultColors.text_gray_disabled, Color textWhite = DefaultColors.text_text_white, TextTheme? textTheme, BorderRadius? textFieldRadius, double? textFieldBorderWidth, BorderRadius? buttonsRadius, GBInputDecorationTheme? inputDecorationTheme, ContainedButtonThemeData? containedButtonThemeData, bool? useMaterial3})
factory
GBThemeData.raw({required Color accentColor, required Color accentError, required Color accentErrorLight, required Color backgroundBase, required Color backgroundContrast, required Color backgroundDisabled, required Color backgroundFocus, required Color textBase, required Color textBlack, required Color textDisabled, required Color textWhite, required BorderRadius? textFieldRadius, required double? textFieldBorderWidth, required BorderRadius? buttonsRadius, required ContainedButtonThemeData containedButtonTheme, required Map<Type, Adaptation<Object>> adaptationMap, required bool applyElevationOverlayColor, required NoDefaultCupertinoThemeData? cupertinoOverrideTheme, required Map<Object, ThemeExtension> extensions, required GBInputDecorationTheme inputDecorationTheme, required MaterialTapTargetSize materialTapTargetSize, required PageTransitionsTheme pageTransitionsTheme, required TargetPlatform platform, required ScrollbarThemeData scrollbarTheme, required InteractiveInkFeatureFactory splashFactory, required bool useMaterial3, required VisualDensity visualDensity, required Color canvasColor, required Color cardColor, required ColorScheme colorScheme, required Color dialogBackgroundColor, required Color disabledColor, required Color dividerColor, required Color focusColor, required Color highlightColor, required Color hintColor, required Color hoverColor, required Color indicatorColor, required Color primaryColor, required Color primaryColorDark, required Color primaryColorLight, required Color scaffoldBackgroundColor, required Color secondaryHeaderColor, required Color shadowColor, required Color splashColor, required Color unselectedWidgetColor, required IconThemeData iconTheme, required IconThemeData primaryIconTheme, required TextTheme primaryTextTheme, required TextTheme textTheme, required Typography typography, required ActionIconThemeData? actionIconTheme, required AppBarTheme appBarTheme, required BadgeThemeData badgeTheme, required MaterialBannerThemeData bannerTheme, required BottomAppBarTheme bottomAppBarTheme, required BottomNavigationBarThemeData bottomNavigationBarTheme, required BottomSheetThemeData bottomSheetTheme, required ButtonBarThemeData? buttonBarTheme, required ButtonThemeData buttonTheme, required CardTheme cardTheme, required CheckboxThemeData checkboxTheme, required ChipThemeData chipTheme, required DataTableThemeData dataTableTheme, required DatePickerThemeData datePickerTheme, required DialogTheme dialogTheme, required DividerThemeData dividerTheme, required DrawerThemeData drawerTheme, required DropdownMenuThemeData dropdownMenuTheme, required ElevatedButtonThemeData elevatedButtonTheme, required ExpansionTileThemeData expansionTileTheme, required FilledButtonThemeData filledButtonTheme, required FloatingActionButtonThemeData floatingActionButtonTheme, required IconButtonThemeData iconButtonTheme, required ListTileThemeData listTileTheme, required MenuBarThemeData menuBarTheme, required MenuButtonThemeData menuButtonTheme, required MenuThemeData menuTheme, required NavigationBarThemeData navigationBarTheme, required NavigationDrawerThemeData navigationDrawerTheme, required NavigationRailThemeData navigationRailTheme, required OutlinedButtonThemeData outlinedButtonTheme, required PopupMenuThemeData popupMenuTheme, required ProgressIndicatorThemeData progressIndicatorTheme, required RadioThemeData radioTheme, required SearchBarThemeData searchBarTheme, required SearchViewThemeData searchViewTheme, required SegmentedButtonThemeData segmentedButtonTheme, required SliderThemeData sliderTheme, required SnackBarThemeData snackBarTheme, required SwitchThemeData switchTheme, required TabBarTheme tabBarTheme, required TextButtonThemeData textButtonTheme, required TextSelectionThemeData textSelectionTheme, required TimePickerThemeData timePickerTheme, required ToggleButtonsThemeData toggleButtonsTheme, required TooltipThemeData tooltipTheme, @Deprecated('No longer used by the framework, please remove any reference to it. ' 'For more information, consult the migration guide at ' 'https://flutter.dev/docs/release/breaking-changes/toggleable-active-color#migration-guide. ' 'This feature was deprecated after v3.4.0-19.0.pre.') Color? toggleableActiveColor, @Deprecated('Use colorScheme.error instead. ' 'This feature was deprecated after v3.3.0-0.5.pre.') Color? errorColor, @Deprecated('Use colorScheme.background instead. ' 'This feature was deprecated after v3.3.0-0.5.pre.') Color? backgroundColor, @Deprecated('Use BottomAppBarTheme.color instead. ' 'This feature was deprecated after v3.3.0-0.6.pre.') Color? bottomAppBarColor})

Properties

accentColor Color
final
accentError Color
final
accentErrorLight Color
final
actionIconTheme ActionIconThemeData?
A theme for customizing icons of BackButtonIcon, CloseButtonIcon, DrawerButtonIcon, or EndDrawerButtonIcon.
finalinherited
adaptationMap Map<Type, Adaptation<Object>>
A map which contains the adaptations for the theme. The entry's key is the type of the adaptation; the value is the adaptation itself.
finalinherited
appBarTheme AppBarTheme
A theme for customizing the color, elevation, brightness, iconTheme and textTheme of AppBars.
finalinherited
applyElevationOverlayColor bool
Apply a semi-transparent overlay color on Material surfaces to indicate elevation for dark themes.
finalinherited
backgroundBase Color
final
backgroundContrast Color
final
backgroundDisabled Color
final
backgroundFocus Color
final
badgeTheme BadgeThemeData
A theme for customizing the color of Badges.
finalinherited
bannerTheme MaterialBannerThemeData
A theme for customizing the color and text style of a MaterialBanner.
finalinherited
bottomAppBarTheme BottomAppBarTheme
A theme for customizing the shape, elevation, and color of a BottomAppBar.
finalinherited
bottomNavigationBarTheme BottomNavigationBarThemeData
A theme for customizing the appearance and layout of BottomNavigationBar widgets.
finalinherited
bottomSheetTheme BottomSheetThemeData
A theme for customizing the color, elevation, and shape of a bottom sheet.
finalinherited
brightness Brightness
The overall theme brightness.
no setterinherited
buttonBarTheme ButtonBarThemeData
A theme for customizing the appearance and layout of ButtonBar widgets.
no setterinherited
buttonsRadius BorderRadius?
final
buttonTheme ButtonThemeData
Defines the default configuration of button widgets, like DropdownButton and ButtonBar.
finalinherited
canvasColor Color
The default color of MaterialType.canvas Material.
finalinherited
cardColor Color
The color of Material when it is used as a Card.
finalinherited
cardTheme CardTheme
The colors and styles used to render Card.
finalinherited
checkboxTheme CheckboxThemeData
A theme for customizing the appearance and layout of Checkbox widgets.
finalinherited
chipTheme ChipThemeData
The colors and styles used to render Chips.
finalinherited
colorScheme ColorScheme
A set of 45 colors based on the Material spec that can be used to configure the color properties of most components.
finalinherited
containedButtonTheme ContainedButtonThemeData
final
cupertinoOverrideTheme NoDefaultCupertinoThemeData?
Components of the CupertinoThemeData to override from the Material ThemeData adaptation.
finalinherited
dataTableTheme DataTableThemeData
A theme for customizing the appearance and layout of DataTable widgets.
finalinherited
datePickerTheme DatePickerThemeData
A theme for customizing the appearance and layout of DatePickerDialog widgets.
finalinherited
dialogBackgroundColor Color
The background color of Dialog elements.
finalinherited
dialogTheme DialogTheme
A theme for customizing the shape of a dialog.
finalinherited
disabledColor Color
The color used for widgets that are inoperative, regardless of their state. For example, a disabled checkbox (which may be checked or unchecked).
finalinherited
dividerColor Color
The color of Dividers and PopupMenuDividers, also used between ListTiles, between rows in DataTables, and so forth.
finalinherited
dividerTheme DividerThemeData
A theme for customizing the color, thickness, and indents of Dividers, VerticalDividers, etc.
finalinherited
drawerTheme DrawerThemeData
A theme for customizing the appearance and layout of Drawer widgets.
finalinherited
A theme for customizing the appearance and layout of DropdownMenu widgets.
finalinherited
elevatedButtonTheme ElevatedButtonThemeData
A theme for customizing the appearance and internal layout of ElevatedButtons.
finalinherited
expansionTileTheme ExpansionTileThemeData
A theme for customizing the visual properties of ExpansionTiles.
finalinherited
extensions Map<Object, ThemeExtension>
Arbitrary additions to this theme.
finalinherited
filledButtonTheme FilledButtonThemeData
A theme for customizing the appearance and internal layout of FilledButtons.
finalinherited
floatingActionButtonTheme FloatingActionButtonThemeData
A theme for customizing the shape, elevation, and color of a FloatingActionButton.
finalinherited
focusColor Color
The focus color used indicate that a component has the input focus.
finalinherited
hashCode int
The hash code for this object.
no setteroverride
highlightColor Color
The highlight color used during ink splash animations or to indicate an item in a menu is selected.
finalinherited
hintColor Color
The color to use for hint text or placeholder text, e.g. in TextField fields.
finalinherited
hoverColor Color
The hover color used to indicate when a pointer is hovering over a component.
finalinherited
iconButtonTheme IconButtonThemeData
A theme for customizing the appearance and internal layout of IconButtons.
finalinherited
iconTheme IconThemeData
An icon theme that contrasts with the card and canvas colors.
finalinherited
indicatorColor Color
The color of the selected tab indicator in a tab bar.
finalinherited
inputDecorationTheme GBInputDecorationTheme
The default InputDecoration values for InputDecorator, TextField, and TextFormField are based on this theme.
final
listTileTheme ListTileThemeData
A theme for customizing the appearance of ListTile widgets.
finalinherited
materialTapTargetSize MaterialTapTargetSize
Configures the hit test size of certain Material widgets.
finalinherited
A theme for customizing the color, shape, elevation, and other MenuStyle aspects of the menu bar created by the MenuBar widget.
finalinherited
A theme for customizing the color, shape, elevation, and text style of cascading menu buttons created by SubmenuButton or MenuItemButton.
finalinherited
A theme for customizing the color, shape, elevation, and other MenuStyle attributes of menus created by the SubmenuButton widget.
finalinherited
A theme for customizing the background color, text style, and icon themes of a NavigationBar.
finalinherited
A theme for customizing the background color, text style, and icon themes of a NavigationDrawer.
finalinherited
A theme for customizing the background color, elevation, text style, and icon themes of a NavigationRail.
finalinherited
outlinedButtonTheme OutlinedButtonThemeData
A theme for customizing the appearance and internal layout of OutlinedButtons.
finalinherited
pageTransitionsTheme PageTransitionsTheme
Default MaterialPageRoute transitions per TargetPlatform.
finalinherited
platform TargetPlatform
The platform the material widgets should adapt to target.
finalinherited
popupMenuTheme PopupMenuThemeData
A theme for customizing the color, shape, elevation, and text style of popup menus.
finalinherited
primaryColor Color
The background color for major parts of the app (toolbars, tab bars, etc)
finalinherited
primaryColorDark Color
A darker version of the primaryColor.
finalinherited
primaryColorLight Color
A lighter version of the primaryColor.
finalinherited
primaryIconTheme IconThemeData
An icon theme that contrasts with the primary color.
finalinherited
primaryTextTheme TextTheme
A text theme that contrasts with the primary color.
finalinherited
progressIndicatorTheme ProgressIndicatorThemeData
A theme for customizing the appearance and layout of ProgressIndicator widgets.
finalinherited
radioTheme RadioThemeData
A theme for customizing the appearance and layout of Radio widgets.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaffoldBackgroundColor Color
The default color of the Material that underlies the Scaffold. The background color for a typical material app or a page within the app.
finalinherited
scrollbarTheme ScrollbarThemeData
A theme for customizing the colors, thickness, and shape of Scrollbars.
finalinherited
searchBarTheme SearchBarThemeData
A theme for customizing the appearance and layout of SearchBar widgets.
finalinherited
searchViewTheme SearchViewThemeData
A theme for customizing the appearance and layout of search views created by SearchAnchor widgets.
finalinherited
secondaryHeaderColor Color
The color of the header of a PaginatedDataTable when there are selected rows.
finalinherited
segmentedButtonTheme SegmentedButtonThemeData
A theme for customizing the appearance and layout of SegmentedButton widgets.
finalinherited
shadowColor Color
The color that the Material widget uses to draw elevation shadows.
finalinherited
sliderTheme SliderThemeData
The colors and shapes used to render Slider.
finalinherited
snackBarTheme SnackBarThemeData
A theme for customizing colors, shape, elevation, and behavior of a SnackBar.
finalinherited
splashColor Color
The color of ink splashes.
finalinherited
splashFactory InteractiveInkFeatureFactory
Defines the appearance of ink splashes produces by InkWell and InkResponse.
finalinherited
switchTheme SwitchThemeData
A theme for customizing the appearance and layout of Switch widgets.
finalinherited
tabBarTheme TabBarTheme
A theme for customizing the size, shape, and color of the tab bar indicator.
finalinherited
textBase Color
final
textBlack Color
final
textButtonTheme TextButtonThemeData
A theme for customizing the appearance and internal layout of TextButtons.
finalinherited
textDisabled Color
final
textFieldBorderWidth double?
final
textFieldRadius BorderRadius?
final
textSelectionTheme TextSelectionThemeData
A theme for customizing the appearance and layout of TextField widgets.
finalinherited
textTheme TextTheme
Text with a color that contrasts with the card and canvas colors.
finalinherited
textWhite Color
final
timePickerTheme TimePickerThemeData
A theme for customizing the appearance and layout of time picker widgets.
finalinherited
toggleButtonsTheme ToggleButtonsThemeData
Defines the default configuration of ToggleButtons widgets.
finalinherited
tooltipTheme TooltipThemeData
A theme for customizing the visual properties of Tooltips.
finalinherited
typography Typography
The color and geometry TextTheme values used to configure textTheme.
finalinherited
unselectedWidgetColor Color
The color used for widgets in their inactive (but enabled) state. For example, an unchecked checkbox. See also disabledColor.
finalinherited
useMaterial3 bool
A temporary flag that can be used to opt-out of Material 3 features.
finalinherited
visualDensity VisualDensity
The density value for specifying the compactness of various UI components.
finalinherited

Methods

copyWith({Color? accentColor, Color? accentError, Color? accentErrorLight, Color? backgroundBase, Color? backgroundContrast, Color? backgroundDisabled, Color? backgroundFocus, Color? textBase, Color? textBlack, Color? textDisabled, Color? textWhite, BorderRadius? textFieldRadius, double? textFieldBorderWidth, BorderRadius? buttonsRadius, ContainedButtonThemeData? containedButtonThemeData, Iterable<Adaptation<Object>>? adaptations, bool? applyElevationOverlayColor, NoDefaultCupertinoThemeData? cupertinoOverrideTheme, Iterable<ThemeExtension>? extensions, covariant GBInputDecorationTheme? inputDecorationTheme, MaterialTapTargetSize? materialTapTargetSize, PageTransitionsTheme? pageTransitionsTheme, TargetPlatform? platform, ScrollbarThemeData? scrollbarTheme, InteractiveInkFeatureFactory? splashFactory, VisualDensity? visualDensity, Brightness? brightness, Color? canvasColor, Color? cardColor, ColorScheme? colorScheme, Color? dialogBackgroundColor, Color? disabledColor, Color? dividerColor, Color? focusColor, Color? highlightColor, Color? hintColor, Color? hoverColor, Color? indicatorColor, Color? primaryColor, Color? primaryColorDark, Color? primaryColorLight, Color? scaffoldBackgroundColor, Color? secondaryHeaderColor, Color? shadowColor, Color? splashColor, Color? unselectedWidgetColor, IconThemeData? iconTheme, IconThemeData? primaryIconTheme, TextTheme? primaryTextTheme, TextTheme? textTheme, Typography? typography, ActionIconThemeData? actionIconTheme, AppBarTheme? appBarTheme, BadgeThemeData? badgeTheme, MaterialBannerThemeData? bannerTheme, BottomAppBarTheme? bottomAppBarTheme, BottomNavigationBarThemeData? bottomNavigationBarTheme, BottomSheetThemeData? bottomSheetTheme, ButtonBarThemeData? buttonBarTheme, ButtonThemeData? buttonTheme, CardTheme? cardTheme, CheckboxThemeData? checkboxTheme, ChipThemeData? chipTheme, DataTableThemeData? dataTableTheme, DatePickerThemeData? datePickerTheme, DialogTheme? dialogTheme, DividerThemeData? dividerTheme, DrawerThemeData? drawerTheme, DropdownMenuThemeData? dropdownMenuTheme, ElevatedButtonThemeData? elevatedButtonTheme, ExpansionTileThemeData? expansionTileTheme, FilledButtonThemeData? filledButtonTheme, FloatingActionButtonThemeData? floatingActionButtonTheme, IconButtonThemeData? iconButtonTheme, ListTileThemeData? listTileTheme, MenuBarThemeData? menuBarTheme, MenuButtonThemeData? menuButtonTheme, MenuThemeData? menuTheme, NavigationBarThemeData? navigationBarTheme, NavigationDrawerThemeData? navigationDrawerTheme, NavigationRailThemeData? navigationRailTheme, OutlinedButtonThemeData? outlinedButtonTheme, PopupMenuThemeData? popupMenuTheme, ProgressIndicatorThemeData? progressIndicatorTheme, RadioThemeData? radioTheme, SearchBarThemeData? searchBarTheme, SearchViewThemeData? searchViewTheme, SegmentedButtonThemeData? segmentedButtonTheme, SliderThemeData? sliderTheme, SnackBarThemeData? snackBarTheme, SwitchThemeData? switchTheme, TabBarTheme? tabBarTheme, TextButtonThemeData? textButtonTheme, TextSelectionThemeData? textSelectionTheme, TimePickerThemeData? timePickerTheme, ToggleButtonsThemeData? toggleButtonsTheme, TooltipThemeData? tooltipTheme, Color? toggleableActiveColor, Color? errorColor, Color? backgroundColor, Color? bottomAppBarColor, bool? useMaterial3}) GBThemeData
Creates a copy of this theme but with the given fields replaced with the new values.
override
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
extension<T>() → T?
Used to obtain a particular ThemeExtension from extensions.
inherited
getAdaptation<T>() Adaptation<T>?
Used to obtain a particular Adaptation from adaptationMap.
inherited
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
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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

Static Methods

fallback() GBThemeData