Class CupertinoPicker
Inheritance
CupertinoPicker
Inherited Members
Namespace: Unity.UIWidgets.cupertino
Syntax
public class CupertinoPicker : StatefulWidget
Constructors
CupertinoPicker(Single, ValueChanged<Int32>, List<Widget>, Key, Single, Color, Single, Boolean, Single, FixedExtentScrollController, Boolean, ListWheelChildDelegate)
Declaration
public CupertinoPicker(float itemExtent, ValueChanged<int> onSelectedItemChanged, List<Widget> children = null, Key key = null, float diameterRatio = 1.35F, Color backgroundColor = null, float offAxisFraction = 0F, bool useMagnifier = false, float magnification = 1F, FixedExtentScrollController scrollController = null, bool looping = false, ListWheelChildDelegate childDelegate = null)
Parameters
Type | Name | Description |
---|---|---|
Single | itemExtent | |
ValueChanged<Int32> | onSelectedItemChanged | |
List<Widget> | children | |
Key | key | |
Single | diameterRatio | |
Color | backgroundColor | |
Single | offAxisFraction | |
Boolean | useMagnifier | |
Single | magnification | |
FixedExtentScrollController | scrollController | |
Boolean | looping | |
ListWheelChildDelegate | childDelegate |
Fields
backgroundColor
Declaration
public readonly Color backgroundColor
Field Value
Type | Description |
---|---|
Color |
childDelegate
Declaration
public readonly ListWheelChildDelegate childDelegate
Field Value
Type | Description |
---|---|
ListWheelChildDelegate |
diameterRatio
Declaration
public readonly float diameterRatio
Field Value
Type | Description |
---|---|
Single |
itemExtent
Declaration
public readonly float itemExtent
Field Value
Type | Description |
---|---|
Single |
magnification
Declaration
public readonly float magnification
Field Value
Type | Description |
---|---|
Single |
offAxisFraction
Declaration
public readonly float offAxisFraction
Field Value
Type | Description |
---|---|
Single |
onSelectedItemChanged
Declaration
public readonly ValueChanged<int> onSelectedItemChanged
Field Value
Type | Description |
---|---|
ValueChanged<Int32> |
scrollController
Declaration
public readonly FixedExtentScrollController scrollController
Field Value
Type | Description |
---|---|
FixedExtentScrollController |
useMagnifier
Declaration
public readonly bool useMagnifier
Field Value
Type | Description |
---|---|
Boolean |
Methods
builder(Single, ValueChanged<Int32>, IndexedWidgetBuilder, Key, Single, Color, Single, Boolean, Single, FixedExtentScrollController, Nullable<Int32>)
Declaration
public static CupertinoPicker builder(float itemExtent, ValueChanged<int> onSelectedItemChanged, IndexedWidgetBuilder itemBuilder, Key key = null, float diameterRatio = 1.35F, Color backgroundColor = null, float offAxisFraction = 0F, bool useMagnifier = false, float magnification = 1F, FixedExtentScrollController scrollController = null, int? childCount = default(int? ))
Parameters
Type | Name | Description |
---|---|---|
Single | itemExtent | |
ValueChanged<Int32> | onSelectedItemChanged | |
IndexedWidgetBuilder | itemBuilder | |
Key | key | |
Single | diameterRatio | |
Color | backgroundColor | |
Single | offAxisFraction | |
Boolean | useMagnifier | |
Single | magnification | |
FixedExtentScrollController | scrollController | |
Nullable<Int32> | childCount |
Returns
Type | Description |
---|---|
CupertinoPicker |
createState()
Declaration
public override State createState()
Returns
Type | Description |
---|---|
State |