CupertinoPicker doc update (#43736)
This commit is contained in:
parent
20af1f25db
commit
3352b91f2c
@ -26,6 +26,10 @@ const double _kForegroundScreenOpacityFraction = 0.7;
|
||||
/// Displays its children widgets on a wheel for selection and
|
||||
/// calls back when the currently selected item changes.
|
||||
///
|
||||
/// By default, the first child in [children] will be the initially selected child.
|
||||
/// The index of a different child can be specified in [scrollController], to make
|
||||
/// that child the initially selected child.
|
||||
///
|
||||
/// Can be used with [showCupertinoModalPopup] to display the picker modally at the
|
||||
/// bottom of the screen.
|
||||
///
|
||||
@ -154,7 +158,8 @@ class CupertinoPicker extends StatefulWidget {
|
||||
/// {@macro flutter.rendering.wheelList.magnification}
|
||||
final double magnification;
|
||||
|
||||
/// A [FixedExtentScrollController] to read and control the current item.
|
||||
/// A [FixedExtentScrollController] to read and control the current item, and
|
||||
/// to set the initial item.
|
||||
///
|
||||
/// If null, an implicit one will be created internally.
|
||||
final FixedExtentScrollController scrollController;
|
||||
|
Loading…
x
Reference in New Issue
Block a user