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

No way to close keyboard when using FormBuilderTextField on iOS #253

Closed
daniel-draper opened this issue Apr 10, 2020 · 4 comments
Closed
Labels
help wanted Extra attention is needed

Comments

@daniel-draper
Copy link

There looks to be no done button on an iOS keyboard when using the FormBuilderTextField, meaning that there is no way to remove the keyboard once it has popped up. This is happening when using the default keyboard type as well as other keyboard types.... This does work fine on android. Any idea why this is or if I am missing something?

FormBuilderTextField( controller: myController, attribute: "anAttribute", validators: [ FormBuilderValidators.required() ], //keyboardType: TextInputType.number, decoration: inputDecoration(labelText: "A textfield"), ),

@danvick
Copy link
Collaborator

danvick commented May 1, 2020

You can add a done button on the keyboard by setting the textInputAction of a TextField in Flutter. i.e. textInputAction: TextInputAction.done,

@danvick danvick added the help wanted Extra attention is needed label May 7, 2020
@RudreshNarwal
Copy link

Use Listener on top of MaterialApp.
Below mentioned code will close keyboard in iOS.

Listener(
   onPointerDown: (_) {
     FocusScopeNode currentFocus = FocusScope.of(context);
     if (!currentFocus.hasPrimaryFocus) {
       currentFocus.focusedChild.unfocus();
     }
   },
   child: MaterialApp(...),
 );

grundid added a commit to grundid/flutter_form_builder that referenced this issue Nov 12, 2021
@deandreamatias
Copy link
Collaborator

@daniel-draper this issue is solved?
If yes, please close this issue

@deandreamatias deandreamatias added the awaiting author response Waiting for author of issue to respond with more info label Jun 13, 2022
@deandreamatias
Copy link
Collaborator

Due to lack of response and an old error, I will close this issue.
If the bug still exists, feel free to open a new issue

@deandreamatias deandreamatias removed the awaiting author response Waiting for author of issue to respond with more info label Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants