Skip to content

TimePickerTheme

Customizes the appearance of descendant TimePicker controls.

属性 ​

名称类型默认值说明
bgcolorOptional[ColorValue]NoneThe background color of a TimePicker. If this is null, the time picker defaults to the overall theme's surface_container_high.
day_period_colorOptional[ColorValue]NoneThe background color of the AM/PM toggle.
day_period_text_colorOptional[ColorValue]NoneThe color of the day period text that represents AM/PM.
dial_bgcolorOptional[ColorValue]NoneThe background color of the time picker dial when the entry mode is DIAL or DIAL_ONLY.
dial_hand_colorOptional[ColorValue]NoneThe color of the time picker dial's hand when the entry mode is DIAL or DIAL_ONLY.
dial_text_colorOptional[ColorValue]NoneThe color of the dial text that represents specific hours and minutes.
entry_mode_icon_colorOptional[ColorValue]NoneThe color of the entry mode IconButton.
hour_minute_colorOptional[ColorValue]NoneThe background color of the hour and minute header segments.
hour_minute_text_colorOptional[ColorValue]NoneThe color of the header text that represents hours and minutes.
day_period_button_styleOptional[ButtonStyle]NoneThe style of the AM/PM toggle control of a TimePicker.
cancel_button_styleOptional[ButtonStyle]NoneThe style of the cancel button of a TimePicker.
confirm_button_styleOptional[ButtonStyle]NoneThe style of the confirm (OK) button of a TimePicker.
day_period_text_styleOptional[TextStyle]NoneUsed to configure the TextStyle for the AM/PM toggle control. If this is null, the time picker defaults to the overall theme's title_medium.
dial_text_styleOptional[TextStyle]NoneThe TextStyle for the numbers on the time selection dial.
help_text_styleOptional[TextStyle]NoneUsed to configure the TextStyle for the helper text in the header.
hour_minute_text_styleOptional[TextStyle]NoneUsed to configure the TextStyle for the hour/minute controls.
elevationOptional[Number]NoneThe Material elevation for the time picker dialog.
shapeOptional[OutlinedBorder]NoneThe shape of the Dialog that the time picker is presented in.
day_period_shapeOptional[OutlinedBorder]NoneThe shape of the day period that the TimePicker uses.
hour_minute_shapeOptional[OutlinedBorder]NoneThe shape of the hour and minute controls that the TimePicker uses.
day_period_border_sideOptional[BorderSide]NoneThe color and weight of the day period's outline.
paddingOptional[PaddingValue]NoneThe padding around the time picker dialog when the entry mode is DIAL or DIAL_ONLY.
time_selector_separator_colorOptional[ControlStateValue[ColorValue]]NoneThe color of the time selector separator between the hour and minute controls.
time_selector_separator_text_styleOptional[ControlStateValue[TextStyle]]NoneUsed to configure the text style for the time selector separator between the hour and minute controls.

关注我,学习大模型、大数据、Python等热门技术。