-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
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
- show software keyboard
- input composing text
- push delete key
- push delete key
- 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);
}
}
Metadata
Metadata
Assignees
Labels
a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.