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

Input Widgets Bugs #176

Closed
4 tasks done
FlutterIssues opened this issue Nov 9, 2015 · 6 comments
Closed
4 tasks done

Input Widgets Bugs #176

FlutterIssues opened this issue Nov 9, 2015 · 6 comments
Assignees
Labels
a: text input Entering text in a text field or keyboard related problems

Comments

@FlutterIssues
Copy link

Issue by afandria
Tuesday Sep 29, 2015 at 02:26 GMT
Originally opened as https://github.com/flutter/engine/issues/1387


  • When there is an initialValue, Backspace doesn't do anything until you type other characters.
  • When there are multiple Inputs, all of them are considered active at the same time. There's probably an internal error, since after the first letter is typed, the inputs all stop responding. (Interestingly, Android must keep an internal buffer of what's being typed since its autocomplete carries on without concern.)
  • I cannot choose to get or lose focus.
  • Keyboard's Enter/Return doesn't look like it does anything, and Input doesn't have an optional parameter callback for the Enter/Return case.

(As mentioned in other issues, it would also be nice to manipulate the cursor position and selection. #151 and #152)

@FlutterIssues FlutterIssues added a: text input Entering text in a text field or keyboard related problems customer: croupier labels Nov 9, 2015
@FlutterIssues
Copy link
Author

Comment by abarth
Tuesday Sep 29, 2015 at 23:34 GMT


/cc @jason-simmons

@FlutterIssues
Copy link
Author

Comment by afandria
Friday Oct 02, 2015 at 20:48 GMT


I've found some more bugs

  • I can't type any digits when using the standard KeyboardType.TEXT.
  • When Android autocomplete spits out a word, if you press backspace repeatedly then the Input's internal text buffer seems to get confused. (This works when there is an initialValue)

For the latter one, the example is the placeholder 1106332964. I typed some random characters. And then swiped a lot on my keyboard (which completed to the word judiciously). After that, I tapped backspace, which after a few times ended up messing up the Input.

I/sky     (12189): Updating color with 1106332964h
I/sky     (12189): Updating color with 1106332964hj
I/sky     (12189): Updating color with 1106332964hjj
I/sky     (12189): Updating color with 1106332964hjjj
I/sky     (12189): Updating color with 1106332964hjjjh
I/sky     (12189): Updating color with 1106332964hjjjhg
I/sky     (12189): Updating color with 1106332964hjjjhgj
I/sky     (12189): Updating color with 1106332964hjjjhgjb
I/sky     (12189): Updating color with 1106332964hjjjhgjbg
I/sky     (12189): Updating color with 1106332964hjjjhgjbg 
I/sky     (12189): Updating color with 1106332964hjjjhgjbg judiciously
I/sky     (12189): Updating color with 1106332964hjjjhgjbg 
I/sky     (12189): Updating color with 1106332964hjjjhgjbg
I/sky     (12189): Updating color with hjjjhgjb4hjjjhgjbg

@Hixie Hixie added the ⚠ bug label Dec 12, 2015
@Hixie Hixie added this to the Blue Sky milestone Dec 12, 2015
@abarth
Copy link
Contributor

abarth commented Jan 22, 2016

I cannot choose to get or lose focus.

The Input widget has an autofocus argument now that you can use to grab focus if no one else has it. To get focus, you can call Focus.moveTo with the key you want to focus.

Losing focus is #1308

@abarth
Copy link
Contributor

abarth commented Jan 22, 2016

Focus.clear now exists.

@abarth
Copy link
Contributor

abarth commented Jan 22, 2016

Keyboard's Enter/Return doesn't look like it does anything, and Input doesn't have an optional parameter callback for the Enter/Return case.

We now call the onSubmitted callback for Input when the user taps Enter/Return.

I think I've fixed all the issues in this bug. Please let me know if you're still having trouble.

@abarth abarth closed this as completed Jan 22, 2016
@abarth abarth self-assigned this Jan 22, 2016
@efidje efidje mentioned this issue May 8, 2018
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: text input Entering text in a text field or keyboard related problems
Projects
None yet
Development

No branches or pull requests

3 participants