Pickers class

Flutter 选择器工具类

提供多种选择器:

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

showAddressPicker(BuildContext context, {PickerStyle? pickerStyle, String initProvince = '', String initCity = '', String? initTown, bool addAllItem = true, AddressCallback? onChanged, AddressCallback? onConfirm, dynamic onCancel(bool isCancel)?, bool overlapTabBar = false}) → void
地区选择器
showDatePicker(BuildContext context, {DateMode mode = DateMode.YMD, PDuration? selectDate, PDuration? maxDate, PDuration? minDate, Suffix? suffix, PickerStyle? pickerStyle, DateCallback? onChanged, DateCallback? onConfirm, dynamic onCancel(bool isCancel)?, bool overlapTabBar = false}) → void
时间选择器
showMultiLinkPicker(BuildContext context, {required dynamic data, required int columnNum, List? selectData, List? suffix, PickerStyle? pickerStyle, MultipleLinkCallback? onChanged, MultipleLinkCallback? onConfirm, dynamic onCancel(bool isCancel)?, bool overlapTabBar = false}) → void
多列选择器(有联动)
showMultiPicker(BuildContext context, {required List<List> data, List? selectData, List? suffix, PickerStyle? pickerStyle, MultipleCallback? onChanged, MultipleCallback? onConfirm, dynamic onCancel(bool isCancel)?, bool overlapTabBar = false}) → void
多列选择器(无联动)
showSinglePicker(BuildContext context, {required dynamic data, dynamic selectData, String? suffix, PickerStyle? pickerStyle, SingleCallback? onChanged, SingleCallback? onConfirm, dynamic onCancel(bool isCancel)?, bool overlapTabBar = false}) → void
单列通用选择器