TimePickerThemeData constructor
- Color? backgroundColor,
- ButtonStyle? cancelButtonStyle,
- ButtonStyle? confirmButtonStyle,
- BorderSide? dayPeriodBorderSide,
- Color? dayPeriodColor,
- OutlinedBorder? dayPeriodShape,
- Color? dayPeriodTextColor,
- TextStyle? dayPeriodTextStyle,
- Color? dialBackgroundColor,
- Color? dialHandColor,
- Color? dialTextColor,
- TextStyle? dialTextStyle,
- double? elevation,
- Color? entryModeIconColor,
- TextStyle? helpTextStyle,
- Color? hourMinuteColor,
- ShapeBorder? hourMinuteShape,
- Color? hourMinuteTextColor,
- TextStyle? hourMinuteTextStyle,
- Object? inputDecorationTheme,
- EdgeInsetsGeometry? padding,
- ShapeBorder? shape,
- MaterialStateProperty<
Color?> ? timeSelectorSeparatorColor, - MaterialStateProperty<
TextStyle?> ? timeSelectorSeparatorTextStyle,
Creates a theme that can be used for TimePickerTheme or ThemeData.timePickerTheme.
Implementation
const TimePickerThemeData({
this.backgroundColor,
this.cancelButtonStyle,
this.confirmButtonStyle,
this.dayPeriodBorderSide,
Color? dayPeriodColor,
this.dayPeriodShape,
this.dayPeriodTextColor,
this.dayPeriodTextStyle,
this.dialBackgroundColor,
this.dialHandColor,
this.dialTextColor,
this.dialTextStyle,
this.elevation,
this.entryModeIconColor,
this.helpTextStyle,
this.hourMinuteColor,
this.hourMinuteShape,
this.hourMinuteTextColor,
this.hourMinuteTextStyle,
// TODO(bleroux): Clean this up once `InputDecorationTheme` is fully normalized.
Object? inputDecorationTheme,
this.padding,
this.shape,
this.timeSelectorSeparatorColor,
this.timeSelectorSeparatorTextStyle,
}) : assert(
inputDecorationTheme == null ||
(inputDecorationTheme is InputDecorationTheme ||
inputDecorationTheme is InputDecorationThemeData),
),
_inputDecorationTheme = inputDecorationTheme,
_dayPeriodColor = dayPeriodColor;