From 26b29090773f2ac3029e1c188a705e99b8be38b2 Mon Sep 17 00:00:00 2001 From: Viet Do Date: Sun, 2 Sep 2018 11:29:10 -0700 Subject: [PATCH] Cupertino Countdown Timer Picker doc fix (#21299) --- packages/flutter/lib/src/cupertino/date_picker.dart | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/flutter/lib/src/cupertino/date_picker.dart b/packages/flutter/lib/src/cupertino/date_picker.dart index e496431c3e..2d83920a55 100644 --- a/packages/flutter/lib/src/cupertino/date_picker.dart +++ b/packages/flutter/lib/src/cupertino/date_picker.dart @@ -15,15 +15,14 @@ const double _kPickerWidth = 330.0; const Color _kBackgroundColor = CupertinoColors.white; -// The iOS date picker and timer picker has their width fixed to 330.0 in all -// modes. +// The iOS timer picker has its width fixed to 330.0 in all modes. // // If the maximum width given to the picker is greater than 330.0, the leftmost // and rightmost column will be extended equally so that the widths match, and // the picker is in the center. // -// If the maximum width given to the picker is smaller than 330.0, the picker's -// layout will be broken. +// If the maximum width given to the picker is smaller than 330.0, the picker is +// placed in the center and both left side and right side are clipped. /// Different modes of [CupertinoTimerPicker]. @@ -174,6 +173,7 @@ class _CupertinoTimerPickerState extends State { return new Semantics( label: semanticsLabel, + excludeSemantics: true, child: new Container( alignment: alignCenterRight, padding: textDirectionFactor == 1 @@ -251,6 +251,7 @@ class _CupertinoTimerPickerState extends State { if (widget.mode == CupertinoTimerPickerMode.ms) { return new Semantics( label: semanticsLabel, + excludeSemantics: true, child: new Container( alignment: alignCenterRight, padding: textDirectionFactor == 1 @@ -267,6 +268,7 @@ class _CupertinoTimerPickerState extends State { else return new Semantics( label: semanticsLabel, + excludeSemantics: true, child: new Container( alignment: alignCenterLeft, child: new Container( @@ -361,6 +363,7 @@ class _CupertinoTimerPickerState extends State { return new Semantics( label: semanticsLabel, + excludeSemantics: true, child: new Container( alignment: alignCenterLeft, child: new Container(