ThemeData.raw constructor
- required Map<
Type, Adaptation< adaptationMap,Object> > - required bool applyElevationOverlayColor,
- required NoDefaultCupertinoThemeData? cupertinoOverrideTheme,
- required Map<
Object, ThemeExtension> extensions, - required InputDecorationTheme inputDecorationTheme,
- required MaterialTapTargetSize materialTapTargetSize,
- required PageTransitionsTheme pageTransitionsTheme,
- required TargetPlatform platform,
- required ScrollbarThemeData scrollbarTheme,
- required InteractiveInkFeatureFactory splashFactory,
- required bool useMaterial3,
- required VisualDensity visualDensity,
- required ColorScheme colorScheme,
- required Color canvasColor,
- required Color cardColor,
- 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 BottomSheetThemeData bottomSheetTheme,
- required ButtonThemeData buttonTheme,
- required CardThemeData cardTheme,
- required CheckboxThemeData checkboxTheme,
- required ChipThemeData chipTheme,
- required DataTableThemeData dataTableTheme,
- required DatePickerThemeData datePickerTheme,
- required DialogThemeData 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 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 TabBarThemeData tabBarTheme,
- required TextButtonThemeData textButtonTheme,
- required TextSelectionThemeData textSelectionTheme,
- required TimePickerThemeData timePickerTheme,
- required ToggleButtonsThemeData toggleButtonsTheme,
- required TooltipThemeData tooltipTheme,
- @Deprecated('Use OverflowBar instead. ' 'This feature was deprecated after v3.21.0-10.0.pre.') ButtonBarThemeData? buttonBarTheme,
Create a ThemeData given a set of exact values. Most values must be
specified. They all must also be non-null except for
cupertinoOverrideTheme
, and deprecated members.
This will rarely be used directly. It is used by lerp to create intermediate themes based on two themes created with the ThemeData constructor.
Implementation
const ThemeData.raw({
// For the sanity of the reader, make sure these properties are in the same
// order in every place that they are separated by section comments (e.g.
// GENERAL CONFIGURATION). Each section except for deprecations should be
// alphabetical by symbol name.
// GENERAL CONFIGURATION
required this.adaptationMap,
required this.applyElevationOverlayColor,
required this.cupertinoOverrideTheme,
required this.extensions,
required this.inputDecorationTheme,
required this.materialTapTargetSize,
required this.pageTransitionsTheme,
required this.platform,
required this.scrollbarTheme,
required this.splashFactory,
required this.useMaterial3,
required this.visualDensity,
// COLOR
required this.colorScheme,
// [colorScheme] is the preferred way to configure colors. The [Color] properties
// listed below (as well as primarySwatch) will gradually be phased out, see
// https://github.com/flutter/flutter/issues/91772.
required this.canvasColor,
required this.cardColor,
required this.dialogBackgroundColor,
required this.disabledColor,
required this.dividerColor,
required this.focusColor,
required this.highlightColor,
required this.hintColor,
required this.hoverColor,
required this.indicatorColor,
required this.primaryColor,
required this.primaryColorDark,
required this.primaryColorLight,
required this.scaffoldBackgroundColor,
required this.secondaryHeaderColor,
required this.shadowColor,
required this.splashColor,
required this.unselectedWidgetColor,
// TYPOGRAPHY & ICONOGRAPHY
required this.iconTheme,
required this.primaryIconTheme,
required this.primaryTextTheme,
required this.textTheme,
required this.typography,
// COMPONENT THEMES
required this.actionIconTheme,
required this.appBarTheme,
required this.badgeTheme,
required this.bannerTheme,
required this.bottomAppBarTheme,
required this.bottomNavigationBarTheme,
required this.bottomSheetTheme,
required this.buttonTheme,
required this.cardTheme,
required this.checkboxTheme,
required this.chipTheme,
required this.dataTableTheme,
required this.datePickerTheme,
required this.dialogTheme,
required this.dividerTheme,
required this.drawerTheme,
required this.dropdownMenuTheme,
required this.elevatedButtonTheme,
required this.expansionTileTheme,
required this.filledButtonTheme,
required this.floatingActionButtonTheme,
required this.iconButtonTheme,
required this.listTileTheme,
required this.menuBarTheme,
required this.menuButtonTheme,
required this.menuTheme,
required this.navigationBarTheme,
required this.navigationDrawerTheme,
required this.navigationRailTheme,
required this.outlinedButtonTheme,
required this.popupMenuTheme,
required this.progressIndicatorTheme,
required this.radioTheme,
required this.searchBarTheme,
required this.searchViewTheme,
required this.segmentedButtonTheme,
required this.sliderTheme,
required this.snackBarTheme,
required this.switchTheme,
required this.tabBarTheme,
required this.textButtonTheme,
required this.textSelectionTheme,
required this.timePickerTheme,
required this.toggleButtonsTheme,
required this.tooltipTheme,
// DEPRECATED (newest deprecations at the bottom)
@Deprecated(
'Use OverflowBar instead. '
'This feature was deprecated after v3.21.0-10.0.pre.',
)
ButtonBarThemeData? buttonBarTheme,
}) : // DEPRECATED (newest deprecations at the bottom)
// should not be `required`, use getter pattern to avoid breakages.
_buttonBarTheme = buttonBarTheme,
assert(buttonBarTheme != null);