Unverified Commit 3352b91f authored by LongCatIsLooong's avatar LongCatIsLooong Committed by GitHub

CupertinoPicker doc update (#43736)

parent 20af1f25
......@@ -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;
......
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