CustomPicker class

Inheritance

Constructors

CustomPicker({Key? key, required List<int> selected, required ValueChanged<List<int>> onChanged, ValueChanged<List<int>>? handleChange, VoidCallback? onCancel, double verticalOffset = 0, bool below = true, required List<List> list, List<bool>? optionLoop, EdgeInsetsGeometry contentPadding = const EdgeInsets.all(0), double popupHeight = 400, Color divColor = const Color(0xFFB9B6B6), List<int>? wtList, BoxDecoration widDecoration = const BoxDecoration(), List<BoxDecoration> childDecoration = const [], double widHeight = 40, bool yesNo = false, EdgeInsets? popUpMargin, Color? popUpSelColor, Decoration? popUpDecoration, List<TextStyle>? popUpTextStyle, List<TextStyle>? widTextStyle})
const

Properties

below bool
show popup widget below the CustomPicker
final
childDecoration List<BoxDecoration>
BoxDecoration for visible widget's child
final
contentPadding EdgeInsetsGeometry
The padding of the picker
final
divColor Color
Divider Color for visible Widget
final
handleChange ValueChanged<List<int>>?
any change in any child will call this method
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
list List<List>
List<List
final
onCancel VoidCallback?
Whenever the user cancels when changing the date.
final
onChanged ValueChanged<List<int>>
Whenever the current date is changed. If this is null, the picker is considered disabled
final
optionLoop List<bool>?
List
final
popUpDecoration Decoration?
give a decoration to your popupDecpration
final
popupHeight double
The height of the popup
final
popUpMargin EdgeInsets?
Margin for PopUp Widget (if it is zero, pop up widget will be visible at the center of picker)
final
popUpSelColor Color?
PopUp Selected Item Color
final
popUpTextStyle List<TextStyle>?
add TextStyle of popup children
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected List<int>
initially selected list
final
verticalOffset double
vertical position of popup widget
final
widDecoration BoxDecoration
BoxDecoration for visible widget
final
widHeight double
height for visible widget
final
widTextStyle List<TextStyle>?
add TextStyles of Picker Children
final
wtList List<int>?
List
final
yesNo bool
whether to show yes no dialog
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _CustomPickerState
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
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