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

readOnly is not working in FormBuilderDateTimePicker #179

Closed
shashikantshaale opened this issue Nov 27, 2019 · 7 comments
Closed

readOnly is not working in FormBuilderDateTimePicker #179

shashikantshaale opened this issue Nov 27, 2019 · 7 comments
Labels
bug Something isn't working

Comments

@shashikantshaale
Copy link
Contributor

shashikantshaale commented Nov 27, 2019

Even after setting readOnly to true in FormBuilderDateTimePicker, user can change the date.

here's my code

FormBuilderDateTimePicker(
                  readOnly: true,
                  attribute: 'dob',
                  firstDate: DateTime(1850),
                  initialDate: DateTime.now().subtract(Duration(days: 365 * 6)),
                  lastDate: DateTime.now().subtract(Duration(days: 365 * 5)),
                  inputType: InputType.date,
                  resetIcon: Icon(Icons.close),
                  initialDatePickerMode: DatePickerMode.day,
                  format: DateFormat("MMM d, yyyy "),
                  decoration: InputDecoration(
                    labelText: 'Date of Birth',
                  ),
                ),

Version using flutter_form_builder: ^3.6.1

@danvick
Copy link
Collaborator

danvick commented Nov 30, 2019

Hi @shashikantshaale,
Thanks fo bringing this to my attention

@danvick danvick added the bug Something isn't working label Nov 30, 2019
@danvick danvick closed this as completed in 1cfcfa6 Dec 1, 2019
@danvick
Copy link
Collaborator

danvick commented Dec 5, 2019

Fixed in v3.7.0. Feel free to reopen in case of any more feedback.

@shashikantdurge
Copy link

This bug still exists.
Changing readOnly of FormBuilder does not change readOnly of FormBuilderDateTimePicker

@shashikantdurge
Copy link

@danvick Can you reopen this issue

@danvick danvick reopened this Feb 17, 2020
@shashikantshaale
Copy link
Contributor Author

That was very quick. Super

@danvick
Copy link
Collaborator

danvick commented Feb 17, 2020

I've just released a hotfix on pub. Kindly check and confirm if the problem is fixed

@shashikantshaale
Copy link
Contributor Author

Yeah it seems fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants