getDatePickerThemeData static method
ThemeData
getDatePickerThemeData(
- BuildContext context, {
- UpStyle? override,
- UpStyle? style,
- UpColorType? colorType,
Implementation
static ThemeData getDatePickerThemeData(
BuildContext context, {
UpStyle? override,
UpStyle? style,
UpColorType? colorType,
}) {
return ThemeData(
colorScheme: ColorScheme(
onBackground: Colors.transparent,
background: Colors.transparent,
onError: Colors.pink,
error: Colors.red,
onSecondary: Colors.transparent,
secondary: Colors.transparent,
brightness: Brightness.dark,
primary: getDatePickerPrimaryColor(
context,
style: style,
colorType: colorType,
),
onPrimary: getDatePickerOnPrimaryColor(
context,
style: style,
colorType: colorType,
),
surface: getDatePickerSurfaceColor(
context,
style: style,
colorType: colorType,
),
onSurface: getDatePickerOnSurfaceColor(
context,
style: style,
colorType: colorType,
),
),
dialogBackgroundColor: getDatePickerDialogBackgroundColor(
context,
style: style,
colorType: colorType,
),
);
}