Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FormBuilderDateTimePicker keyboard appearing #71

Closed
Galli1598333 opened this issue May 29, 2019 · 1 comment
Closed

FormBuilderDateTimePicker keyboard appearing #71

Galli1598333 opened this issue May 29, 2019 · 1 comment

Comments

@Galli1598333
Copy link

Galli1598333 commented May 29, 2019

I'm able to use FormBuilderDateTimePicker in a form only if the text field is empty, otherwise it bring up the keyboard input and doesn't prompt to the DateTime Picker. Here is the code I'm using:

FormBuilderDateTimePicker( attribute: "startdate", initialValue: DateTime.parse(schedule["startdate"]), keyboardType: TextInputType.number, inputType: InputType.date, format: DateFormat("yyyy-M-d"), firstDate: DateTime.now().subtract(new Duration(days: 1)), decoration: InputDecoration(labelText: "Day"), validators: [ FormBuilderValidators.required(), ], ),

and here is the result.

Schermata 2019-05-29 alle 18 53 59

Do you know how I can prevent this inconsistency?

@Galli1598333
Copy link
Author

Galli1598333 commented May 29, 2019

found documentation on datetime_picker_formfield repo, setting editable: false, solves the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant