Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

disabling the edit field #34

Open
mauricev opened this issue Aug 10, 2023 · 1 comment
Open

disabling the edit field #34

mauricev opened this issue Aug 10, 2023 · 1 comment

Comments

@mauricev
Copy link

How do I disable the edit field?

@florentin89
Copy link

florentin89 commented Nov 29, 2023

In easy_autocomplete.dart file do next:

  1. On line 97 implement a boolean property like this: final bool? isTextFormFieldEnabled;.
  2. On line 119 after property called validator implement the new boolean like this: this.isTextFormFieldEnabled.
  3. On line 252 where you have the TextFormField(), there you need to implement the new property like this: enabled: isTextFormFieldEnabled.
  4. When you instantiate the EasyAutocomplete in your app, pass your own boolean to control the TextFormField (enable/disable).

I haven't tested, but it should work.

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

No branches or pull requests

2 participants