From a609bb374c2086885915a6187994a3f0cdbdc9c4 Mon Sep 17 00:00:00 2001 From: Rami <2364772+rami-a@users.noreply.github.com> Date: Fri, 14 Aug 2020 13:06:02 -0400 Subject: [PATCH] Mention time picker theme in showTimePicker documentation (#63776) --- packages/flutter/lib/src/material/time_picker.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/flutter/lib/src/material/time_picker.dart b/packages/flutter/lib/src/material/time_picker.dart index f781f41490..6ac3341e75 100644 --- a/packages/flutter/lib/src/material/time_picker.dart +++ b/packages/flutter/lib/src/material/time_picker.dart @@ -2069,6 +2069,10 @@ class _TimePickerDialogState extends State<_TimePickerDialog> { /// Optional strings for the [helpText], [cancelText], and [confirmText] can be /// 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} /// Show a dialog with the text direction overridden to be [TextDirection.rtl]. /// @@ -2107,6 +2111,8 @@ class _TimePickerDialogState extends State<_TimePickerDialog> { /// /// * [showDatePicker], which shows a dialog that contains a material design /// date picker. +/// * [TimePickerThemeData], which allows you to customize the colors, +/// typography, and shape of the time picker. Future showTimePicker({ @required BuildContext context, @required TimeOfDay initialTime,