DropdownDatePicker class
Defines widgets which are to used as DropDown Date Picker.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- DropdownDatePicker
Constructors
-
DropdownDatePicker({Key? key, TextStyle? textStyle, BoxDecoration? boxDecoration, InputDecoration? inputDecoration, Icon? icon, int? startYear, int? endYear, double width = 12.0, ValueChanged<
String?> ? onChangedDay, ValueChanged<String?> ? onChangedMonth, ValueChanged<String?> ? onChangedYear, bool isDropdownHideUnderline = false, String errorDay = 'Please select day', String errorMonth = 'Please select month', String errorYear = 'Please select year', String hintMonth = 'Month', String hintDay = 'Day', String hintYear = 'Year', TextStyle? hintTextStyle, bool isFormValidator = false, bool isExpanded = true, int? selectedDay, int? selectedMonth, int? selectedYear, String locale = 'en', bool showDay = true, bool showMonth = true, bool showYear = true, int monthFlex = 2, int dayFlex = 1, int yearFlex = 2, OrderFormat dateformatorder = OrderFormat.MDY})
Properties
- boxDecoration → BoxDecoration?
-
DropDown container box decoration
final
- dateformatorder ↔ OrderFormat
-
Default OrderFormat = OrderFormat.MDY
order format of datepicker is month, day, year
getter/setter pair
- dayFlex ↔ int
-
day expanded flex
getter/setter pair
- endYear → int?
-
End year for date picker
Default is Current year
final
- errorDay ↔ String
-
Error message for Date
getter/setter pair
- errorMonth ↔ String
-
Error message for Month
getter/setter pair
- errorYear ↔ String
-
Error message for Year
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hintDay ↔ String
-
Hint for Day drop down
Default is "Day"
getter/setter pair
- hintMonth ↔ String
-
Hint for Month drop down
Default is "Month"
getter/setter pair
- hintTextStyle ↔ TextStyle?
-
Hint Textstyle for drop down
getter/setter pair
- hintYear ↔ String
-
Hint for Year drop down
Default is "Year"
getter/setter pair
- icon → Icon?
-
DropDown expand icon
final
- inputDecoration → InputDecoration?
-
InputDecoration for DropDown
final
- isDropdownHideUnderline → bool
-
Default isDropdownHideUnderline = false. Wrap with DropdownHideUnderline for the dropdown to hide the underline.
final
- isExpanded → bool
-
Is Expanded for dropdown
Default is true
final
- isFormValidator → bool
-
Is Form validator enabled
Default is false
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- locale → String
-
locale
default
en
supportzh_CN
supportit_IT
support fr_FR support de_DE suport es_ES suport ru_RU suport pt_BRfinal - monthFlex ↔ int
-
month expanded flex
getter/setter pair
-
onChangedDay
↔ ValueChanged<
String?> ? -
Return selected date
getter/setter pair
-
onChangedMonth
↔ ValueChanged<
String?> ? -
Return selected month
getter/setter pair
-
onChangedYear
↔ ValueChanged<
String?> ? -
Return selected year
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedDay → int?
-
Selected Day between 1 to 31
final
- selectedMonth → int?
-
Selected Month between 1 to 12
final
- selectedYear → int?
-
Selected Year between startYear and endYear
final
- showDay ↔ bool
-
getter/setter pair
- showMonth ↔ bool
-
getter/setter pair
- showYear ↔ bool
-
default true
getter/setter pair
- startYear → int?
-
Start year for date picker
Default is 1900
final
- textStyle → TextStyle?
-
DropDown select text style
final
- width → double
-
width between each drop down
Default is 12.0
final
- yearFlex ↔ int
-
year expanded flex
getter/setter pair
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _DropdownDatePickerState -
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