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

controller.clear() has no effect #31

Open
vytautas-pranskunas- opened this issue Mar 12, 2021 · 4 comments
Open

controller.clear() has no effect #31

vytautas-pranskunas- opened this issue Mar 12, 2021 · 4 comments

Comments

@vytautas-pranskunas-
Copy link

I have a time picker and trying to clear text inside by using

_timeController.clear();

it has no effect. However _timeController.text = '12:45'; works fine. I alsohave tried _timeController.text = ''; but also no effect:

My setup:

DateTimePicker(
                          controller: _timeController,
                          type: DateTimePickerType.time,
                          firstDate: DateTime.now(),
                          lastDate: DateTime(2100),
                          icon: Icon(Icons.access_time),
                          timeLabelText: AppLocalizations.translate(TranslationKeys.shared, 'time_text'),
                          onChanged: (value) {
                            _timeController.text = value;
                          },
                          validator: (value) {
                            return null;
                          },
                        ))
AdityaHerlambang pushed a commit to AdityaHerlambang/date_time_picker that referenced this issue Apr 24, 2021
@Charlinjoeaht
Copy link

In which version, this fix is coming. i still see this error in version 2.0.0

hslbetto added a commit that referenced this issue Jul 8, 2021
Fix issue #31 and #35 controller could not be cleared
@hslbetto
Copy link
Member

hslbetto commented Jul 8, 2021

The latest version was solved this issue.

@wirelessjeano
Copy link

This issue still persists in version 2.1.0.

@priyaranjan-mantri
Copy link

https://github.com/priyaranjan-mantri/date_time_picker.git use this one
controller.clear issue fixed

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

5 participants