getTimePickerThemeData static method
ThemeData
getTimePickerThemeData(
- BuildContext context, {
- UpStyle? override,
- UpStyle? style,
- UpColorType? colorType,
Implementation
static ThemeData getTimePickerThemeData(
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: getTimePickerPrimaryColor(
context,
style: style,
colorType: colorType,
),
onPrimary: getTimePickerOnPrimaryColor(
context,
style: style,
colorType: colorType,
),
surface: getTimePickerSurfaceColor(
context,
style: style,
colorType: colorType,
),
onSurface: getTimePickerOnSurfaceColor(
context,
style: style,
colorType: colorType,
),
),
dialogBackgroundColor: getTimePickerDialogBackgroundColor(
context,
style: style,
colorType: colorType,
));
}