Skip to content

Input Widgets Bugs #176

Closed
Closed

Description

@FlutterIssues

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)

Activity

  1. FlutterIssues commented on Nov 9, 2015

    @FlutterIssues
    Author

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


    /cc @jason-simmons

  2. FlutterIssues commented on Nov 9, 2015

    @FlutterIssues
    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
    
  3. added this to the milestone on Dec 12, 2015
  4. abarth commented on Jan 22, 2016

    @abarth
    Contributor

    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

  5. abarth commented on Jan 22, 2016

    @abarth
    Contributor

    Focus.clear now exists.

  6. abarth commented on Jan 22, 2016

    @abarth
    Contributor

    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.

  7. self-assigned this
    on Jan 22, 2016
  8. github-actions commented on Aug 17, 2021

    @github-actions

    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.

  9. locked as resolved and limited conversation to collaborators on Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

a: text inputEntering text in a text field or keyboard related problems

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions