【发布时间】:2019-12-23 06:32:44
【问题描述】:
我不确定为什么热重载后键盘没有显示,我运行了下面的代码,它给出了没有 autofocus: true
的空 TextFiled TextField field = new TextField(
controller: controller,
);
但是在添加 autofocus: true 强文本**之后,键盘应该显示为有状态的小部件将在热重载后重新绘制自己。
TextField field = new TextField(
controller: controller,
autofocus: true,
);
注意:我当前的屏幕上只有 TextWidget。
【问题讨论】:
标签: flutter flutter-layout flutter-widget