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
TextField params pass through #69
Comments
There is no technical reason. The reason originally was to keep it simple and for convenience of development, added on a request basis. I can add all of those at once though so it's done. Those will be added, others do not make sens on such an input (capitalization, maxLines,...)
|
should be fixed for 4.3.0, not published yet, awaiting potential other requests from you branch issue-69-params-passthrough |
Hi @cedvdb |
Those are both somewhat already there The controller given to TextField is not the same as the controller given to the It would not make sens to give access to the underlying TextField controller. As for the focusNode I added the possibility to override the one set by the lib. Just to be clear: return TextField(
focusNode: _focusNode, // this can be overriden
controller: _nationalNumberController, // this cannot |
Here is an example of possible issue if we will not expose controller |
You can refer to this package history when you are thinking about properties exposure 10-20% of bugfixes was related to proper properties exposure))) |
I'm making some modification so the text is selectable from the main controller. In flutter selecting the text does not mean that the text will have focus (You can't necessarily edit it). Is the expected behavior to have focus on the field automatically after selection, or to manually have to call |
It is now published on 4.3.0. You can now select from the main controller https://cedvdb.github.io/phone_form_field/#/ (there is a selection button at the bottom of the demo) |
Is there any specific reason to pass through so few arguments to the textfield?
https://github.com/cedvdb/phone_form_field/blob/dev/lib/src/widgets/phone_field.dart#L150
The TextField has much more arguments that user would like to pass
The text was updated successfully, but these errors were encountered: