Skip to content

show software keyboard and push delete key, then crash application #208

Closed

Description

@FlutterIssues

Issue by kyorohiro
Sunday Oct 18, 2015 at 04:42 GMT
Originally opened as https://github.com/flutter/engine/issues/1662


show software keyboard and push delete key, then crash application

[source]

import 'package:flutter/widgets.dart';
import 'package:flutter/services.dart';

main() async {
  EditableString st= new EditableString(text: "test:", onUpdated: () {});
  keyboard.show(st.stub, KeyboardType.TEXT);
}

[senario]

  1. run applicatioon on nexus7
    https://github.com/kyorohiro/hello_skyengine/tree/master/edit_text_2
    --> show software keyboard
  2. push delete key

Activity

  1. added
    a: text inputEntering text in a text field or keyboard related problems
    c: crashStack traces logged to the console
    on Nov 9, 2015
  2. FlutterIssues commented on Nov 9, 2015

    @FlutterIssues
    Author

    Comment by abarth
    Monday Oct 19, 2015 at 16:28 GMT


    /cc @jason-simmons

  3. FlutterIssues commented on Nov 9, 2015

    @FlutterIssues
    Author

    Comment by jason-simmons
    Friday Oct 23, 2015 at 21:22 GMT


    The Android keyboard/IME state needs to be kept in sync with the editable text. For example:
    EditableString st = new EditableString(text: "test:", onUpdated: () {}, onSubmitted: () {});
    KeyboardHandle handle = keyboard.show(st.stub, KeyboardType.TEXT);
    handle.setText(st.text);
    handle.setSelection(st.text.length, st.text.length);

    EditableString isn't really suitable for standalone use. Instead, use an Input widget, which contains this logic.

  4. modified the milestone: on Dec 16, 2015
  5. self-assigned this
    on Jan 26, 2016
  6. 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.

  7. 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 problemsc: crashStack traces logged to the console

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions