flutter - AnimatedSwitcher 切换后保持 TextField 键盘打开?
问题描述
我AnimatedSwitcher
用于在 2 个小部件之间切换:
AnimatedSwitcher(
duration: const Duration(milliseconds: 200),
child:
toggle
? TextField()
: otherWidget(),
问题是当 AnimatedSwitcher 从 Textfield 切换离开时,即使用户已经点击它并打开键盘,它也会关闭键盘。
即使小部件更改,如何保持键盘打开AnimatedSwitcher
?
解决方案
推荐阅读
- google-sheets - 移除隐藏的切片器
- javascript - 路由不会因不同的参数 ID 而改变,即使密钥不同
- pdf - Highcharts - PDF 导出格式问题。字体大小等
- jenkins - 单击“构建”后 1 小时如何开始工作
- validation - 我可以同时使用 JSF 验证器吗?
- r - R中是否有找出多个重复代码并保留其中一个?
- c++ - 如何在 Turbo C++ 中使用 Unicode?
- android - CSS 媒体查询不反映设备屏幕大小
- android - AAPT:错误:属性 android:requestLegacyExternalStorage 未找到
- php - 为什么流明视图方法无法从本地主机切换到实时服务器?