Picker class
Constructors
-
Picker({required PickerAdapter adapter, List<
PickerDelimiter> ? delimiter, List<int> ? selecteds, double height = 150.0, double itemExtent = 28.0, EdgeInsetsGeometry? columnPadding, TextStyle? textStyle, TextStyle? cancelTextStyle, TextStyle? confirmTextStyle, TextStyle? selectedTextStyle, IconThemeData? selectedIconTheme, TextAlign textAlign = TextAlign.start, double? textScaleFactor, Widget? title, Color? backgroundColor = Colors.white, Color? containerColor, Color? headerColor, WidgetBuilder? builderHeader, bool hideHeader = false, bool reversedOrder = false, Decoration? headerDecoration, List<int> ? columnFlex, int smooth = 0, double magnification = 1.0, double diameterRatio = 1.1, double squeeze = 1.45, Widget selectionOverlay = const CupertinoPickerDefaultSelectionOverlay(), PickerItemBuilder? onBuilderItem, VoidCallback? onCancel, Pickerset? onchanged, int? yearfrom, int? yearto})
Properties
- adapter ↔ PickerAdapter
-
getter/setter pair
- backgroundColor → Color?
-
final
- builderHeader → WidgetBuilder?
-
final
- cancelTextStyle ↔ TextStyle?
-
getter/setter pair
-
columnFlex
→ List<
int> ? -
final
- columnPadding → EdgeInsetsGeometry?
-
final
- confirmTextStyle ↔ TextStyle?
-
getter/setter pair
- containerColor → Color?
-
final
-
delimiter
→ List<
PickerDelimiter> ? -
final
- diameterRatio → double
-
final
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerColor → Color?
-
final
- headerDecoration → Decoration?
-
final
- height → double
-
final
- hideHeader → bool
-
final
- itemExtent → double
-
final
- magnification → double
-
final
- onBuilderItem → PickerItemBuilder?
-
final
- onCancel → VoidCallback?
-
final
- onchanged → Pickerset?
-
final
- reversedOrder → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedIconTheme → IconThemeData?
-
final
-
selecteds
↔ List<
int> -
getter/setter pair
- selectedTextStyle ↔ TextStyle?
-
getter/setter pair
- selectionOverlay → Widget
-
final
- smooth → int
-
final
- squeeze → double
-
final
- state → PickerWidgetState?
-
no setter
- textAlign → TextAlign
-
final
- textScaleFactor ↔ double?
-
getter/setter pair
- textStyle ↔ TextStyle?
-
getter/setter pair
- title → Widget?
-
final
- widget → Widget?
-
no setter
- yearfrom → int?
-
final
- yearto → int?
-
final
Methods
-
makePicker(
[ThemeData? themeData, bool isModal = false, Key? key]) → Widget -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
showModal<
T> (BuildContext context, {ThemeData? themeData, bool isScrollControlled = false, Color? backgroundColor, PickerWidgetBuilder? builder}) → Future< T?> - Display modal picker
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- DefaultTextSize → const double