TDPicker class

Constructors

TDPicker()

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(dynamic context, {String? title, double? titleHeight, Color? titleDividerColor, required DatePickerCallback? onConfirm, DatePickerCallback? onCancel, DatePickerCallback? onChange, dynamic onSelectedItemChanged(int wheelIndex, int index)?, String? leftText, TextStyle? leftTextStyle, TextStyle? centerTextStyle, String? rightText, TextStyle? rightTextStyle, EdgeInsets? padding, double? leftPadding, double? topPadding, double? rightPadding, double? topRadius, Color? backgroundColor, Widget? customSelectWidget, bool useYear = true, bool useMonth = true, bool useDay = true, bool useHour = false, bool useMinute = false, bool useSecond = false, bool useWeekDay = false, List<int> dateStart = const [1970, 1, 1], List<int>? dateEnd, List<int>? initialDate, List<int> filterItems(DateTypeKey key, List<int> nums)?, double pickerHeight = 200, int pickerItemCount = 5, bool isTimeUnit = true, ItemBuilderType? itemBuilder, Color? barrierColor, Duration duration = const Duration(milliseconds: 100)}) → void
显示时间选择器
showMultiLinkedPicker(dynamic context, {String? title, required MultiPickerCallback? onConfirm, MultiPickerCallback? onCancel, required List initialData, required Map data, required int columnNum, double pickerHeight = 200, int pickerItemCount = 5, Widget? customSelectWidget, String? rightText, String? leftText, TextStyle? leftTextStyle, TextStyle? centerTextStyle, TextStyle? rightTextStyle, double? titleHeight, double? topPadding, double? leftPadding, double? rightPadding, Color? titleDividerColor, Color? backgroundColor, double? topRadius, EdgeInsets? padding, ItemBuilderType? itemBuilder, bool keepSameSelection = false, Color? barrierColor, Duration duration = const Duration(milliseconds: 100)}) → void
显示多级联动选择器
showMultiPicker(dynamic context, {String? title, required MultiPickerCallback? onConfirm, MultiPickerCallback? onCancel, required List<List<String>> data, double pickerHeight = 200, int pickerItemCount = 5, List<int>? initialIndexes, String? rightText, String? leftText, TextStyle? leftTextStyle, TextStyle? centerTextStyle, TextStyle? rightTextStyle, double? titleHeight, double? topPadding, double? leftPadding, double? rightPadding, Color? titleDividerColor, Color? backgroundColor, double? topRadius, EdgeInsets? padding, Widget? customSelectWidget, ItemBuilderType? itemBuilder, Duration duration = const Duration(milliseconds: 100), Color? barrierColor}) → void
显示多级选择器