Unverified Commit f8b286dc authored by YizhePKU's avatar YizhePKU Committed by GitHub

Updated documentation for CupertinoPicker (#50264)

parent 149e0623
...@@ -54,9 +54,9 @@ class CupertinoPicker extends StatefulWidget { ...@@ -54,9 +54,9 @@ class CupertinoPicker extends StatefulWidget {
/// The [diameterRatio] and [itemExtent] arguments must not be null. The /// The [diameterRatio] and [itemExtent] arguments must not be null. The
/// [itemExtent] must be greater than zero. /// [itemExtent] must be greater than zero.
/// ///
/// The [backgroundColor] defaults to light gray. It can be set to null to /// The [backgroundColor] defaults to null, which disables background painting entirely.
/// disable the background painting entirely; this is mildly more efficient /// (i.e. the picker is going to have a completely transparent background), to match
/// than using [Colors.transparent]. Also, if it has transparency, no gradient /// the native UIPicker and UIDatePicker. Also, if it has transparency, no gradient
/// effect will be rendered. /// effect will be rendered.
/// ///
/// The [scrollController] argument can be used to specify a custom /// The [scrollController] argument can be used to specify a custom
...@@ -107,9 +107,9 @@ class CupertinoPicker extends StatefulWidget { ...@@ -107,9 +107,9 @@ class CupertinoPicker extends StatefulWidget {
/// ///
/// The [itemExtent] argument must be non-null and positive. /// The [itemExtent] argument must be non-null and positive.
/// ///
/// The [backgroundColor] defaults to light gray. It can be set to null to /// The [backgroundColor] defaults to null, which disables background painting entirely.
/// disable the background painting entirely; this is mildly more efficient /// (i.e. the picker is going to have a completely transparent background), to match
/// than using [Colors.transparent]. /// the native UIPicker and UIDatePicker.
CupertinoPicker.builder({ CupertinoPicker.builder({
Key key, Key key,
this.diameterRatio = _kDefaultDiameterRatio, this.diameterRatio = _kDefaultDiameterRatio,
...@@ -145,10 +145,9 @@ class CupertinoPicker extends StatefulWidget { ...@@ -145,10 +145,9 @@ class CupertinoPicker extends StatefulWidget {
/// Background color behind the children. /// Background color behind the children.
/// ///
/// Defaults to a gray color in the iOS color palette. /// Defaults to null, which disables background painting entirely.
/// /// (i.e. the picker is going to have a completely transparent background), to match
/// This can be set to null to disable the background painting entirely; this /// the native UIPicker and UIDatePicker.
/// is mildly more efficient than using [Colors.transparent].
/// ///
/// Any alpha value less 255 (fully opaque) will cause the removal of the /// Any alpha value less 255 (fully opaque) will cause the removal of the
/// wheel list edge fade gradient from rendering of the widget. /// wheel list edge fade gradient from rendering of the widget.
......
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