Unverified Commit a609bb37 authored by Rami's avatar Rami Committed by GitHub

Mention time picker theme in showTimePicker documentation (#63776)

parent 96f36450
...@@ -2069,6 +2069,10 @@ class _TimePickerDialogState extends State<_TimePickerDialog> { ...@@ -2069,6 +2069,10 @@ class _TimePickerDialogState extends State<_TimePickerDialog> {
/// Optional strings for the [helpText], [cancelText], and [confirmText] can be /// Optional strings for the [helpText], [cancelText], and [confirmText] can be
/// provided to override the default values. /// provided to override the default values.
/// ///
/// By default, the time picker gets its colors from the overall theme's
/// [ColorScheme]. The time picker can be further customized by providing a
/// [TimePickerThemeData] to the overall theme.
///
/// {@tool snippet} /// {@tool snippet}
/// Show a dialog with the text direction overridden to be [TextDirection.rtl]. /// Show a dialog with the text direction overridden to be [TextDirection.rtl].
/// ///
...@@ -2107,6 +2111,8 @@ class _TimePickerDialogState extends State<_TimePickerDialog> { ...@@ -2107,6 +2111,8 @@ class _TimePickerDialogState extends State<_TimePickerDialog> {
/// ///
/// * [showDatePicker], which shows a dialog that contains a material design /// * [showDatePicker], which shows a dialog that contains a material design
/// date picker. /// date picker.
/// * [TimePickerThemeData], which allows you to customize the colors,
/// typography, and shape of the time picker.
Future<TimeOfDay> showTimePicker({ Future<TimeOfDay> showTimePicker({
@required BuildContext context, @required BuildContext context,
@required TimeOfDay initialTime, @required TimeOfDay initialTime,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment