从最近开始,在运行(或调试)Flutter应用程序时,我开始收到屏幕键盘损坏的消息。
从https://flutter.dev/docs/cookbook/forms/validation运行表单验证演示,请参阅所附的屏幕截图。 键盘实际上接受按键。奇怪的是,切换到大写字母会使键盘显示(大写)字符。我应该重新卸载/安装堆栈还是其他合适的措施?
PS C:\Users\Pavel\testform> flutter doctor -v
[√] Flutter (Channel stable, 1.20.3, on Microsoft Windows [Version 10.0.18362.1016], locale et-EE)
• Flutter version 1.20.3 at c:\flutter
• Framework revision 216dee60c0 (8 days ago), 2020-09-01 12:24:47 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at C:\Users\Pavel\AppData\Local\Android\sdk
• Platform android-29, build-tools 29.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Android Studio (version 4.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 47.1.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] VS Code (version 1.48.2)
• VS Code at C:\Users\Pavel\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.14.1
[√] Connected device (1 available)
• Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)
• No issues found!
答案 0 :(得分:2)
转到android studio-> avd管理器->您的模拟器->擦除数据,然后重试。如果无法解决,请删除该模拟器并创建一个新的模拟器。
答案 1 :(得分:-1)
尝试冷启动模拟器。这对我有用!