mirror of
https://github.com/flutter/flutter
synced 2024-10-14 04:02:56 +00:00
Cupertino Countdown Timer Picker doc fix (#21299)
This commit is contained in:
parent
3b21e34e04
commit
26b2909077
|
@ -15,15 +15,14 @@ const double _kPickerWidth = 330.0;
|
||||||
const Color _kBackgroundColor = CupertinoColors.white;
|
const Color _kBackgroundColor = CupertinoColors.white;
|
||||||
|
|
||||||
|
|
||||||
// The iOS date picker and timer picker has their width fixed to 330.0 in all
|
// The iOS timer picker has its width fixed to 330.0 in all modes.
|
||||||
// modes.
|
|
||||||
//
|
//
|
||||||
// If the maximum width given to the picker is greater than 330.0, the leftmost
|
// 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
|
// and rightmost column will be extended equally so that the widths match, and
|
||||||
// the picker is in the center.
|
// the picker is in the center.
|
||||||
//
|
//
|
||||||
// If the maximum width given to the picker is smaller than 330.0, the picker's
|
// If the maximum width given to the picker is smaller than 330.0, the picker is
|
||||||
// layout will be broken.
|
// placed in the center and both left side and right side are clipped.
|
||||||
|
|
||||||
|
|
||||||
/// Different modes of [CupertinoTimerPicker].
|
/// Different modes of [CupertinoTimerPicker].
|
||||||
|
@ -174,6 +173,7 @@ class _CupertinoTimerPickerState extends State<CupertinoTimerPicker> {
|
||||||
|
|
||||||
return new Semantics(
|
return new Semantics(
|
||||||
label: semanticsLabel,
|
label: semanticsLabel,
|
||||||
|
excludeSemantics: true,
|
||||||
child: new Container(
|
child: new Container(
|
||||||
alignment: alignCenterRight,
|
alignment: alignCenterRight,
|
||||||
padding: textDirectionFactor == 1
|
padding: textDirectionFactor == 1
|
||||||
|
@ -251,6 +251,7 @@ class _CupertinoTimerPickerState extends State<CupertinoTimerPicker> {
|
||||||
if (widget.mode == CupertinoTimerPickerMode.ms) {
|
if (widget.mode == CupertinoTimerPickerMode.ms) {
|
||||||
return new Semantics(
|
return new Semantics(
|
||||||
label: semanticsLabel,
|
label: semanticsLabel,
|
||||||
|
excludeSemantics: true,
|
||||||
child: new Container(
|
child: new Container(
|
||||||
alignment: alignCenterRight,
|
alignment: alignCenterRight,
|
||||||
padding: textDirectionFactor == 1
|
padding: textDirectionFactor == 1
|
||||||
|
@ -267,6 +268,7 @@ class _CupertinoTimerPickerState extends State<CupertinoTimerPicker> {
|
||||||
else
|
else
|
||||||
return new Semantics(
|
return new Semantics(
|
||||||
label: semanticsLabel,
|
label: semanticsLabel,
|
||||||
|
excludeSemantics: true,
|
||||||
child: new Container(
|
child: new Container(
|
||||||
alignment: alignCenterLeft,
|
alignment: alignCenterLeft,
|
||||||
child: new Container(
|
child: new Container(
|
||||||
|
@ -361,6 +363,7 @@ class _CupertinoTimerPickerState extends State<CupertinoTimerPicker> {
|
||||||
|
|
||||||
return new Semantics(
|
return new Semantics(
|
||||||
label: semanticsLabel,
|
label: semanticsLabel,
|
||||||
|
excludeSemantics: true,
|
||||||
child: new Container(
|
child: new Container(
|
||||||
alignment: alignCenterLeft,
|
alignment: alignCenterLeft,
|
||||||
child: new Container(
|
child: new Container(
|
||||||
|
|
Loading…
Reference in a new issue