Flutter EditableText使键盘卡住

时间:2019-06-20 22:59:58

标签: flutter dart material-ui

这是我的代码:

EditableText(
  focusNode: FocusNode(),
  keyboardType: TextInputType.text,
  keyboardAppearance: Brightness.dark,
  expands: false,
  onSubmitted: (text) {
    widget.onSubmit(text);
  },
  cursorColor: Colors.black,
  backgroundCursorColor: Colors.black,
  style: widget.style,
  controller: textEditingController,
);

会发生这种情况,光标被卡住,键盘也被卡住。单击完成后,键盘几乎不会消失。当我在手机上运行代码时,也会发生这种情况。 enter image description here

0 个答案:

没有答案