Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
f8b286dc
Unverified
Commit
f8b286dc
authored
Feb 06, 2020
by
YizhePKU
Committed by
GitHub
Feb 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated documentation for CupertinoPicker (#50264)
parent
149e0623
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
picker.dart
packages/flutter/lib/src/cupertino/picker.dart
+9
-10
No files found.
packages/flutter/lib/src/cupertino/picker.dart
View file @
f8b286dc
...
...
@@ -54,9 +54,9 @@ class CupertinoPicker extends StatefulWidget {
/// The [diameterRatio] and [itemExtent] arguments must not be null. The
/// [itemExtent] must be greater than zero.
///
/// The [backgroundColor] defaults to
light gray. It can be set to null to
///
disable the background painting entirely; this is mildly more efficient
/// th
an using [Colors.transparent]
. Also, if it has transparency, no gradient
/// The [backgroundColor] defaults to
null, which disables background painting entirely.
///
(i.e. the picker is going to have a completely transparent background), to match
/// th
e native UIPicker and UIDatePicker
. Also, if it has transparency, no gradient
/// effect will be rendered.
///
/// The [scrollController] argument can be used to specify a custom
...
...
@@ -107,9 +107,9 @@ class CupertinoPicker extends StatefulWidget {
///
/// The [itemExtent] argument must be non-null and positive.
///
/// The [backgroundColor] defaults to
light gray. It can be set to null to
///
disable the background painting entirely; this is mildly more efficient
/// th
an using [Colors.transparent]
.
/// The [backgroundColor] defaults to
null, which disables background painting entirely.
///
(i.e. the picker is going to have a completely transparent background), to match
/// th
e native UIPicker and UIDatePicker
.
CupertinoPicker
.
builder
({
Key
key
,
this
.
diameterRatio
=
_kDefaultDiameterRatio
,
...
...
@@ -145,10 +145,9 @@ class CupertinoPicker extends StatefulWidget {
/// Background color behind the children.
///
/// Defaults to a gray color in the iOS color palette.
///
/// This can be set to null to disable the background painting entirely; this
/// is mildly more efficient than using [Colors.transparent].
/// Defaults to null, which disables background painting entirely.
/// (i.e. the picker is going to have a completely transparent background), to match
/// the native UIPicker and UIDatePicker.
///
/// Any alpha value less 255 (fully opaque) will cause the removal of the
/// wheel list edge fade gradient from rendering of the widget.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment