Skip to content

EditableString throw unexpected error!! when do no commit text, do input text and delete key. #209

Closed

Description

@FlutterIssues

Issue by kyorohiro
Sunday Oct 18, 2015 at 05:15 GMT
Originally opened as https://github.com/flutter/engine/issues/1663


EditableString throw unexpected error!! when do no commit text, do input text and delete key.

[senario]
0 . run application
https://github.com/kyorohiro/hello_skyengine/tree/master/edit_text

  1. show software keyboard
  2. input composing text
  3. push delete key
  4. push delete key
  5. input composing text
    --> then unexpected error

[source for reproduction]

//
// https://github.com/kyorohiro/hello_skyengine/tree/master/edit_text_3
import 'package:flutter/widgets.dart';
import 'package:flutter/services.dart';
import 'dart:async';

main() async {
  EditableString st = new EditableString(text: "test:", onUpdated: () {});
  KeyboardHandle handle = keyboard.show(st.stub, KeyboardType.TEXT);
  await new Future.delayed(new Duration(seconds: 3));
  for (int i = 0; i < 3; i++) {
    print("----");
    st.setComposingText("a", 1);
    await new Future.delayed(new Duration(seconds: 1));
    st.setComposingText("", 0);
    await new Future.delayed(new Duration(seconds: 1));
    st.deleteSurroundingText(1, 0);
  }
}

Activity

  1. FlutterIssues commented on Nov 9, 2015

    @FlutterIssues
    Author

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


    /cc @jason-simmons

  2. added this to the milestone on Dec 12, 2015
  3. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    on Dec 12, 2015
  4. self-assigned this
    on Jan 25, 2016
  5. 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.

  6. 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 problemsframeworkflutter/packages/flutter repository. See also f: labels.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions