CupertinoPicker doc update (#43736)

This commit is contained in:
LongCatIsLooong 2019-10-29 14:31:27 -07:00 committed by GitHub
parent 20af1f25db
commit 3352b91f2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,10 @@ const double _kForegroundScreenOpacityFraction = 0.7;
/// Displays its children widgets on a wheel for selection and /// Displays its children widgets on a wheel for selection and
/// calls back when the currently selected item changes. /// 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 /// Can be used with [showCupertinoModalPopup] to display the picker modally at the
/// bottom of the screen. /// bottom of the screen.
/// ///
@ -154,7 +158,8 @@ class CupertinoPicker extends StatefulWidget {
/// {@macro flutter.rendering.wheelList.magnification} /// {@macro flutter.rendering.wheelList.magnification}
final double 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. /// If null, an implicit one will be created internally.
final FixedExtentScrollController scrollController; final FixedExtentScrollController scrollController;