DateRangePicker class
从底部弹出时间范围选择 Picker
Constructors
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 isDismissible = true, DateTime? minDateTime, DateTime? maxDateTime, bool isLimitTimeRange = true, DateTime? initialStartDateTime, DateTime? initialEndDateTime, String? dateFormat, int minuteDivider = 1, DateTimePickerLocale locale = datetimePickerLocaleDefault, BrnDateTimeRangePickerMode pickerMode = BrnDateTimeRangePickerMode.date, PickerTitleConfig pickerTitleConfig = PickerTitleConfig.Default, DateVoidCallback? onCancel, DateVoidCallback? onClose, DateRangeValueCallback? onChange, DateRangeValueCallback? onConfirm, PickerConfig? themeData}) → void -
isDismissiblebool点击背景是否自动消失
minDateTime: DateTime 可选的最小时间
maxDateTime: DateTime 可选的最大时间
isLimitTimeRange: bool 是否显示开始时间必须小于等于结束时间,默认为 true,仅在 BrnDateTimeRangePickerMode 为 time 时生效
initialDateTime: DateTime 初始化选中时间
dateFormat: String 时间展示格式,如:yyyy 年 MM 月 dd 日
minuteDivider:int 分钟展示间隔,默认值为 1
locale: DateTimePickerLocale internationalization
pickerMode: BrnDateTimeRangePickerMode 展示的 mode: date(DatePicker)、time(TimePicker)
onCancel: DateVoidCallback 取消回调
onClose: DateVoidCallback 关闭回调
onChange: DateValueCallback 时间变化回调
onConfirm: DateValueCallback 点击确认的回调
pickerTitleConfig:
BrnPickerTitleConfig
Picker title 配置 themeData:BrnPickerConfig
主题配置