CustomizableDropdown class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CustomizableDropdown
Constructors
- CustomizableDropdown({Key? key, required List itemList, required dynamic onSelectedItem(String item), required Widget placeholder, double? maxHeight, double? height, double? width, Decoration? decoration, CrossAxisAlignment? crossAxisAlignment, MainAxisAlignment? mainAxisAlignment, Widget? icon, Widget? listTitle, Widget? seperator, Color? colorDropDown, BoxConstraints? constraintsDropDown, EdgeInsetsGeometry? dropDownPadding, EdgeInsetsGeometry? marginDropDown, Color? listColor, TextAlign? titleAlign, TextStyle? titleStyle})
-
Here we go the dropdown StateFull Widget
const
Properties
- colorDropDown → Color?
-
set the dropdown container colour
final
- constraintsDropDown → BoxConstraints?
-
set the dropdown container constraint
final
- crossAxisAlignment → CrossAxisAlignment?
-
set the dropdown crossAxisAlignment
final
- decoration → Decoration?
-
decorate the dropdown
final
- dropDownPadding → EdgeInsetsGeometry?
-
Give padding of the dropdown container
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
set the dropdown height
final
- icon → Widget?
-
set the dropdown icon
final
- itemList → List
-
must set the dropdown item list
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- listColor → Color?
-
Color of the dropdown list
final
- listTitle → Widget?
-
set dropdown list each title widget
final
- mainAxisAlignment → MainAxisAlignment?
-
set the dropdown mainAxisAlignment
final
- marginDropDown → EdgeInsetsGeometry?
-
Give the margin of the dropdown container
final
- maxHeight → double?
-
Max height for the dropdown menu & becoming scrollable if there are more items. If you pass Null it will take max height possible for the items.
final
- onSelectedItem → dynamic Function(String item)
-
receive the selected item call back function
The list of items the user can select
final
- placeholder → Widget
-
A placeholder widget that is displayed by the dropdown
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seperator → Widget?
-
Create the seperator of each dropdown item. If you pass Null it will take defalt Divider
final
- titleAlign → TextAlign?
-
set dropdown list each title alight
final
- titleStyle → TextStyle?
-
Style the dropdown title
final
- width → double?
-
set the dropdown width
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _CustomizableDropdownState -
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, int wrapWidth = 65}) → 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