modeClair static method
ThemeData
modeClair({
- Color? primary,
- Color? secondary,
- Color? tertiary,
- Color? scaffolBackground = Colors.white,
- Color? errorColor,
- ButtonStyle? textButtonStyle,
- ChipThemeData? chipTheme,
- CheckboxThemeData? checkboxTheme,
- ButtonBarThemeData? buttonBarTheme,
- BottomSheetThemeData? bottomSheetTheme,
- DialogTheme? dialogTheme,
- DividerThemeData? dividerTheme,
- DrawerThemeData? drawerTheme,
- ElevatedButtonThemeData? elevatedButtonTheme,
- FloatingActionButtonThemeData? floatingActionButtonTheme,
- BottomAppBarTheme? bottomAppBarTheme,
- MaterialBannerThemeData? bannerTheme,
- AppBarTheme? appBarTheme,
- CardTheme? cardTheme,
- InputDecorationTheme? inputDecorationTheme,
- ScrollbarThemeData? scrollbarTheme,
- IconThemeData? iconTheme,
- DataTableThemeData? dataTableTheme,
- ListTileThemeData? listTileTheme,
- OutlinedButtonThemeData? outlinedButtonTheme,
- PopupMenuThemeData? popupMenuTheme,
- ProgressIndicatorThemeData? progressIndicatorTheme,
- RadioThemeData? radioTheme,
- SliderThemeData? sliderTheme,
- SnackBarThemeData? snackBarTheme,
- SwitchThemeData? switchTheme,
- TabBarTheme? tabBarTheme,
- TimePickerThemeData? timePickerTheme,
- ToggleButtonsThemeData? toggleButtonsTheme,
- TooltipThemeData? tooltipTheme,
- TextStyle? t1,
- TextStyle? t2,
- TextStyle? t3,
- TextStyle? t4,
- TextStyle? tBoxDialogue,
- TextStyle? tPrincipalBoxDialogue,
- TextStyle? tbodyPrincipal,
- TextStyle? tbodySecondaire,
- TextStyle? tAltImage,
- TextStyle? tButton,
- TextStyle? tsmall,
- TextStyle? tlistTitle,
- TextStyle? tlistSubTitle,
Implementation
static ThemeData modeClair({
// principal
Color? primary,
Color? secondary,
Color? tertiary,
Color? scaffolBackground = Colors.white,
Color? errorColor,
// text button
ButtonStyle? textButtonStyle,
// chip
ChipThemeData? chipTheme,
// checkbox
CheckboxThemeData? checkboxTheme,
// buttonBarTheme
ButtonBarThemeData? buttonBarTheme,
// bottomSheetTheme
BottomSheetThemeData? bottomSheetTheme,
// dialogTheme
DialogTheme? dialogTheme,
// dividerTheme
DividerThemeData? dividerTheme,
// drawerTheme
DrawerThemeData? drawerTheme,
// elevatedButtonTheme
ElevatedButtonThemeData? elevatedButtonTheme,
// floatingActionButtonTheme
FloatingActionButtonThemeData? floatingActionButtonTheme,
// navigationRailTheme
NavigationRailThemeData? navigationRailTheme,
// navigationBarTheme
NavigationBarThemeData? navigationBarTheme,
// bottomNavigationBarTheme
BottomNavigationBarThemeData? bottomNavigationBarTheme,
// bottomAppBarTheme
BottomAppBarTheme? bottomAppBarTheme,
// bannerTheme
MaterialBannerThemeData? bannerTheme,
// appBarTheme
AppBarTheme? appBarTheme,
// cardTheme
CardTheme? cardTheme,
// inputDecorationTheme
InputDecorationTheme? inputDecorationTheme,
// scrollbarTheme
ScrollbarThemeData? scrollbarTheme,
// iconTheme
IconThemeData? iconTheme,
// dataTableTheme
DataTableThemeData? dataTableTheme,
// listTileTheme
ListTileThemeData? listTileTheme,
// outlinedButtonTheme
OutlinedButtonThemeData? outlinedButtonTheme,
// popupMenuTheme
PopupMenuThemeData? popupMenuTheme,
// progressIndicatorTheme
ProgressIndicatorThemeData? progressIndicatorTheme,
// radioTheme
RadioThemeData? radioTheme,
// sliderTheme
SliderThemeData? sliderTheme,
// SnackBarTheme
SnackBarThemeData? snackBarTheme,
// switchTheme
SwitchThemeData? switchTheme,
// tabBarTheme
TabBarTheme? tabBarTheme,
// timePickerTheme
TimePickerThemeData? timePickerTheme,
// toggleButtonsTheme
ToggleButtonsThemeData? toggleButtonsTheme,
// tooltipTheme
TooltipThemeData? tooltipTheme,
// text style
TextStyle? t1,
TextStyle? t2,
TextStyle? t3,
TextStyle? t4,
TextStyle? tBoxDialogue,
TextStyle? tPrincipalBoxDialogue,
TextStyle? tbodyPrincipal,
TextStyle? tbodySecondaire,
TextStyle? tAltImage,
TextStyle? tButton,
TextStyle? tsmall,
TextStyle? tlistTitle,
TextStyle? tlistSubTitle,
}) {
return ThemeData(
// couleur background scaffol
scaffoldBackgroundColor: scaffolBackground,
// tooltipTheme
tooltipTheme: tooltipTheme,
// toggleButtonsTheme
toggleButtonsTheme: toggleButtonsTheme,
// timePickerTheme
timePickerTheme: timePickerTheme,
// tabBarTheme
tabBarTheme: tabBarTheme,
// switchTheme
switchTheme: switchTheme,
// snackBarTheme
snackBarTheme: snackBarTheme,
// sliderTheme
sliderTheme: sliderTheme,
// radioTheme
radioTheme: radioTheme,
// progressIndicatorTheme
progressIndicatorTheme: progressIndicatorTheme,
// popupMenuTheme
popupMenuTheme: popupMenuTheme,
// outlinedButtonTheme
outlinedButtonTheme: outlinedButtonTheme,
// listTileTheme
listTileTheme: listTileTheme,
// dataTableTheme
dataTableTheme: dataTableTheme,
// iconTheme
iconTheme: iconTheme,
// scrollbarTheme
scrollbarTheme: scrollbarTheme,
// input decoration
inputDecorationTheme: inputDecorationTheme,
// card theme
cardTheme: cardTheme,
// appBar theme
appBarTheme: appBarTheme,
// material bar
bannerTheme: bannerTheme,
// appBar bottom
bottomAppBarTheme: bottomAppBarTheme,
// text theme
textTheme: TextTheme(
// Texte extrêmement volumineux.
headline1: t1,
// Texte très, très gros.
headline2: t2,
// Texte très gros.
headline3: t3,
// Gros texte.
headline4: t4,
// Utilisé pour le texte de grande taille dans les boîtes de dialogue
// (par exemple, le mois et l'année dans la boîte de dialogue affichée
// par showDatePicker ).
headline5: tBoxDialogue,
// Utilisé pour le texte principal dans les barres d'application
// et les boîtes de dialogue (par exemple, AppBar.title
// et AlertDialog.title ).
headline6: tPrincipalBoxDialogue,
// Le style de texte par défaut
bodyText2: tbodyPrincipal,
// Utilisé pour mettre en évidence le texte qui serait autrement que
// bodyText2
bodyText1: tbodySecondaire,
// alt de l'image
caption: tAltImage,
// text elevatedbutton, textbutton, outlinebutton
button: tButton,
// utiliser pour le plus petit text
overline: tsmall,
// titre des listes
subtitle1: tlistTitle,
// sous titre des listes
subtitle2: tlistSubTitle,
),
// navigation bar bottom theme
bottomNavigationBarTheme: bottomNavigationBarTheme,
// navigation bar
navigationBarTheme: navigationBarTheme,
// navigation rail
navigationRailTheme: navigationRailTheme,
// bottom modal
bottomSheetTheme: bottomSheetTheme,
// btn bar
buttonBarTheme: buttonBarTheme,
// checkbox
checkboxTheme: checkboxTheme,
// puce
chipTheme: chipTheme,
// dialogue box
dialogTheme: dialogTheme,
// divider
dividerTheme: dividerTheme,
// drawer
drawerTheme: drawerTheme,
// text btn
textButtonTheme: TextButtonThemeData(
style: textButtonStyle,
),
// elevated btn
elevatedButtonTheme: elevatedButtonTheme,
// float btn
floatingActionButtonTheme: floatingActionButtonTheme,
// schemas de couleur
colorScheme: const ColorScheme.light().copyWith(
// primary color
primary: primary,
// secondary color
secondary: secondary,
// tertiary color
tertiary: tertiary,
// error color
error: errorColor,
),
);
}