DatePickerFieldBuilder is a TextFormField that emits DateTimes and helps show Material, Cupertino, and other style picker dialogs.
Plugin used
datetime_picker_formfield
: ^2.0.0
Features
isRequired
: Developers can make a field mandatory / non-mandatory for the users based on theisRequired
value as true/false. (*) indicates mandatory field.requiredMessage
: Customise your error validation message usingrequiredMessage
variablefirstDate
:firstDate
is the date, from which the calendar startslastDate
:lastDate
is the date, till which the dates can be selected from the calendar.initialDate
: If we want to get the date selected by default , then we can set that date value toinitialDate
variable.
Widgets used from Flutter Material Library
SL No | Widgets | Description |
---|---|---|
1 |
| absorbs pointers during hit testing. |
2 |
| Text Box Decoration |
Files Path :
Primary Files : https://github.com/misdwss/punjab-mgramseva/blob/master/frontend/mgramseva/lib/widgets/DatePickerFieldBuilder.dart
Add Comment