DataPicker class

数据选择器

Constructors

DataPicker()

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

showDatePicker(BuildContext context, {bool showTitleActions = true, DateTime? minTime, DateTime? maxTime, DateChangedCallback? onChanged, DateChangedCallback? onConfirm, dynamic locale = LocaleType.zh, DateTime? currentTime, dynamic theme}) Future
Display date picker bottom sheet.
showDateTimePicker(BuildContext context, {bool showTitleActions = true, DateTime? minTime, DateTime? maxTime, DateChangedCallback? onChanged, DateChangedCallback? onConfirm, dynamic locale = LocaleType.zh, DateTime? currentTime, dynamic theme}) Future
Display date&time picker bottom sheet.
showPicker(BuildContext context, {bool showTitleActions = true, bool? loopList, DateChangedCallback? onChanged, DateChangedCallback? onConfirm, dynamic locale = LocaleType.zh, CommonPickerData? pickerData, dynamic theme}) Future
Display picker bottom sheet witch custom picker model. 显示选择器底页 自定义选择器模型
showTimePicker(BuildContext context, {bool showTitleActions = true, DateChangedCallback? onChanged, DateChangedCallback? onConfirm, dynamic locale = LocaleType.zh, DateTime? currentTime, dynamic theme}) Future
Display time picker bottom sheet.