BrnMultiDataPicker class

多级数据选择弹窗

Inheritance
Available Extensions

Constructors

BrnMultiDataPicker({Key? key, required BuildContext context, required BrnMultiDataPickerDelegate delegate, String title = "", TextStyle? titleTextStyle, TextStyle? confirmTextStyle, TextStyle? cancelTextStyle, List<String>? pickerTitles, double? pickerTitleFontSize, Color? pickerTitleColor, double? textFontSize, Color? textColor, Color? textSelectedColor, ScrollBehavior? behavior, ConfirmButtonClick? confirmClick, BrnMultiDataPickerCreateWidgetCallback? createItemWidget, BrnPickerConfig? themeData, bool sync = true})

Properties

behavior ScrollBehavior?
选择轮盘的滚动行为
final
cancelTextStyle TextStyle?
多级数据选择取消文案样式
final
confirmClick ConfirmButtonClick?
多级数据选择确认点击回调
final
confirmTextStyle TextStyle?
多级数据选择确认文案样式
final
context BuildContext
多级数据选择弹窗所要覆盖页面的context
final
controllers List<FixedExtentScrollController>
多级数据选择数据widget容器
final
createItemWidget BrnMultiDataPickerCreateWidgetCallback?
返回自定义 itemWidget 的回调
final
delegate BrnMultiDataPickerDelegate
多级数据选择弹窗的数据来源,自定义delegate继承该类,实现具体方法即可自定义每一列、每一行的具体内容
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
pickerTitleColor Color?
多级数据选择每一级默认标题的文案颜色
final
pickerTitleFontSize double?
多级数据选择每一级默认标题的字体大小
final
pickerTitles List<String>?
多级数据选择每一级的默认标题
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sync bool
是否复位数据位置。默认 true
final
textColor Color?
多级数据选择数据文案颜色
final
textFontSize double?
多级数据选择数据字体大小
final
textSelectedColor Color?
多级数据选择数据选中文案颜色
final
themeData BrnPickerConfig?
getter/setter pair
title String
多级数据选择弹窗标题
final
titleTextStyle TextStyle?
多级数据选择标题文案样式
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _BrnMultiDataPickerState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show({bool isDismissible = true}) → void
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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