mirror of
https://github.com/Iconica-Development/flutter_input_library.git
synced 2025-05-18 17:03:45 +02:00
Merge pull request #2 from Iconica-Development/hotfix/datepicker
Hotfix/datepicker
This commit is contained in:
commit
739198b0b8
2 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||
},
|
||||
),
|
||||
FlutterFormInputDateTime(
|
||||
inputType: FlutterFormDateTimeType.dateTime,
|
||||
inputType: FlutterFormDateTimeType.date,
|
||||
dateFormat: DateFormat('dd/MM/yyyy HH:mm'),
|
||||
onChanged: (v) {
|
||||
print('Date changed to $v');
|
||||
|
|
|
@ -128,7 +128,7 @@ class _DateInputFieldState extends ConsumerState<DateTimeInputField> {
|
|||
keyboardType: TextInputType.none,
|
||||
readOnly: true,
|
||||
key: Key(currentValue.toString()),
|
||||
initialValue: widget.initialValue,
|
||||
initialValue: currentValue.isEmpty ? widget.initialValue : currentValue,
|
||||
onSaved: (value) => widget.onSaved?.call(value),
|
||||
onTap: () async {
|
||||
String userInput = await getInputFromUser(widget.inputType);
|
||||
|
|
Loading…
Reference in a new issue