ThemeData.raw constructor

const ThemeData.raw({
  1. required Map<Type, Adaptation<Object>> adaptationMap,
  2. required bool applyElevationOverlayColor,
  3. required NoDefaultCupertinoThemeData? cupertinoOverrideTheme,
  4. required Map<Object, ThemeExtension> extensions,
  5. required InputDecorationTheme inputDecorationTheme,
  6. required MaterialTapTargetSize materialTapTargetSize,
  7. required PageTransitionsTheme pageTransitionsTheme,
  8. required TargetPlatform platform,
  9. required ScrollbarThemeData scrollbarTheme,
  10. required InteractiveInkFeatureFactory splashFactory,
  11. required bool useMaterial3,
  12. required VisualDensity visualDensity,
  13. required ColorScheme colorScheme,
  14. required Color canvasColor,
  15. required Color cardColor,
  16. required Color dialogBackgroundColor,
  17. required Color disabledColor,
  18. required Color dividerColor,
  19. required Color focusColor,
  20. required Color highlightColor,
  21. required Color hintColor,
  22. required Color hoverColor,
  23. required Color indicatorColor,
  24. required Color primaryColor,
  25. required Color primaryColorDark,
  26. required Color primaryColorLight,
  27. required Color scaffoldBackgroundColor,
  28. required Color secondaryHeaderColor,
  29. required Color shadowColor,
  30. required Color splashColor,
  31. required Color unselectedWidgetColor,
  32. required IconThemeData iconTheme,
  33. required IconThemeData primaryIconTheme,
  34. required TextTheme primaryTextTheme,
  35. required TextTheme textTheme,
  36. required Typography typography,
  37. required ActionIconThemeData? actionIconTheme,
  38. required AppBarTheme appBarTheme,
  39. required BadgeThemeData badgeTheme,
  40. required MaterialBannerThemeData bannerTheme,
  41. required BottomAppBarTheme bottomAppBarTheme,
  42. required BottomNavigationBarThemeData bottomNavigationBarTheme,
  43. required BottomSheetThemeData bottomSheetTheme,
  44. required ButtonThemeData buttonTheme,
  45. required CardTheme cardTheme,
  46. required CheckboxThemeData checkboxTheme,
  47. required ChipThemeData chipTheme,
  48. required DataTableThemeData dataTableTheme,
  49. required DatePickerThemeData datePickerTheme,
  50. required DialogTheme dialogTheme,
  51. required DividerThemeData dividerTheme,
  52. required DrawerThemeData drawerTheme,
  53. required DropdownMenuThemeData dropdownMenuTheme,
  54. required ElevatedButtonThemeData elevatedButtonTheme,
  55. required ExpansionTileThemeData expansionTileTheme,
  56. required FilledButtonThemeData filledButtonTheme,
  57. required FloatingActionButtonThemeData floatingActionButtonTheme,
  58. required IconButtonThemeData iconButtonTheme,
  59. required ListTileThemeData listTileTheme,
  60. required MenuBarThemeData menuBarTheme,
  61. required MenuButtonThemeData menuButtonTheme,
  62. required MenuThemeData menuTheme,
  63. required NavigationBarThemeData navigationBarTheme,
  64. required NavigationDrawerThemeData navigationDrawerTheme,
  65. required NavigationRailThemeData navigationRailTheme,
  66. required OutlinedButtonThemeData outlinedButtonTheme,
  67. required PopupMenuThemeData popupMenuTheme,
  68. required ProgressIndicatorThemeData progressIndicatorTheme,
  69. required RadioThemeData radioTheme,
  70. required SearchBarThemeData searchBarTheme,
  71. required SearchViewThemeData searchViewTheme,
  72. required SegmentedButtonThemeData segmentedButtonTheme,
  73. required SliderThemeData sliderTheme,
  74. required SnackBarThemeData snackBarTheme,
  75. required SwitchThemeData switchTheme,
  76. required TabBarTheme tabBarTheme,
  77. required TextButtonThemeData textButtonTheme,
  78. required TextSelectionThemeData textSelectionTheme,
  79. required TimePickerThemeData timePickerTheme,
  80. required ToggleButtonsThemeData toggleButtonsTheme,
  81. required TooltipThemeData tooltipTheme,
  82. @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);