Flutter on-screen keyboard not showing characters - flutter

As of recently I started receiving a broken on-screen keyboard when running (or debugging) my Flutter app.
See the attached screenshot from running a form validation demo from https://flutter.dev/docs/cookbook/forms/validation.
The keyboard actually accepts keypresses. Wierd thing is that switching to uppercase makes the keyboard show the (uppercase) characters. Should I uninstall/install the stack again or are some other measures appropriate?
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!

Go to android studio -> avd manager -> your emulator -> wipe data and try again. If not resolved, delete the emulator and create a new one.

Try to cold-boot the emulator. This works for me!

Related

VsCode Dart code highlighting wrong colors

I have a very strange issue. After upgrading Flutter yesterday to the newest version, my syntax highlighting is awfully off. When I open a file, everything seems fine, but as soon as the file is analyzed and the result is used for highlighting, everything breaks.
Correct (for 1-2 seconds after opening the file):
Wrong (after around 2 seconds):
I am using the Monokai Theme for VsCode. I would love to get my old coloring back, as I think the new scheme is outrageously difficult to look at.
My Flutter Doctor outpu (All versions etc.):
[flutter] flutter doctor -v
[√] Flutter (Channel stable, 2.0.3, on Microsoft Windows [Version 10.0.19042.867], locale en-NZ)
• Flutter version 2.0.3 at R:\Programme\Flutter
• Framework revision 4d7946a68d (3 days ago), 2021-03-18 17:24:33 -0700
• Engine revision 3459eb2436
• Dart version 2.12.2
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at R:\Programme\Android\sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: R:\Programme\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 4.0)
• Android Studio at R:\Programme\Android\Android Studio
• Flutter plugin version 48.1.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] IntelliJ IDEA Ultimate Edition (version 2020.3)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2019.2.2
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
[√] VS Code, 64-bit edition (version 1.54.3)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.20.0
[√] Connected device (2 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.90
• Edge (web) • edge • web-javascript • Microsoft Edge 89.0.774.57
• No issues found!
exit code 0
Any help would be greatly appreciated :)
Add "editor.semanticHighlighting.enabled": false in your vscode settings.json

flutter code display error in visual studio code

Initially this code is correct but after I reinstalled Windows and its applications, the project that was correct is now an error.
My project error
flutter doctor -v :
[√] Flutter (Channel dev, 1.26.0-1.0.pre, on Microsoft Windows [Version 10.0.19042.804], locale en-US)
• Flutter version 1.26.0-1.0.pre at F:\src\flutter
• Framework revision 63062a6443 (9 weeks ago), 2020-12-13 23:19:13 +0800
• Engine revision 4797b06652
• Dart version 2.12.0 (build 2.12.0-141.0.dev)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at F:\src\Android\Sdk
• Platform android-30, build-tools 30.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.1.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] VS Code (version 1.53.2)
• VS Code at C:\Users\hyda\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.19.0
[√] Connected device (1 available)
• sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
• No issues found!
The error you get is because the libraries are not loaded. First, go to the pubseck.yaml file and get the packages there. If still not working see this command
-> flutter clean
-> flutter pub get
Such problems can be solved by running this command:
flutter clean
Once that is done, go to pubspec.yaml and check if all the packages are still there. For cross-checking, run:
flutter pub get
This will solve your problem.

Upgrading camera_platform_interface from 1.0.4 to 1.2.0 results in camera not working

There's no error logs printed, so it's difficult to provide some more information about what is causing this. With the same code base, same camera plugin version (0.6.3+2), if I run flutter pub upgrade and camera_platform_interface bumps from 1.0.4 to 1.2.0, parts of our app that use the camera stop working (black screen).
[√] Flutter (Channel stable, 1.22.5, on Microsoft Windows [Versión 10.0.19042.685], locale es-ES)
• Flutter version 1.22.5 at C:\src\flutter
• Framework revision 7891006299 (3 weeks ago), 2020-12-10 11:54:40 -0800
• Engine revision ae90085a84
• Dart version 2.10.4
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\Users\crist\AppData\Local\Android\Sdk
• Platform android-30, build-tools 30.0.3
• ANDROID_HOME = C:\Users\crist\AppData\Local\Android\Sdk
• 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.1.0)
• Android Studio at C:\Program Files\Android\Android Studio
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] Connected device (1 available)
• ONEPLUS A5000 (mobile) • f2eb43ee • android-arm64 • Android 10 (API 29)
! Doctor found issues in 1 category.
You can use a dependency override to workaround the problem.
Adding the following to your pubspec.yaml should solve the issue:
dependency_overrides:
camera_platform_interface: ">=1.0.4 <1.1.0"

Hot Reloads 0 libraries out of x libraries even though there are changes to reload

When I hot reload my flutter application, it always reloads 0 out of n number of libraries (Even if I make changes).
I am using Flutter on Intellij. Everything was working fine and now it doesn't work anymore.
Flutter Doctor
[√] Flutter (Channel beta, v1.17.0, on Microsoft Windows [Version
10.0.18362.720], locale en-US)
• Flutter version 1.17.0 at C:\Users\msoha\Desktop\Flutter\flutter
• Framework revision d3ed9ec945 (7 days ago), 2020-04-06 14:07:34 -0700
• Engine revision c9506cb8e9
• Dart version 2.8.0 (build 2.8.0-dev.18.0 eea9717938)
[√] Android toolchain - develop for Android devices (Android SDK
version 29.0.0)
• Android SDK at C:\Users\msoha\AppData\Local\Android\sdk
• Platform android-29, build-tools 29.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 3.4)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 36.0.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
[√] IntelliJ IDEA Community Edition (version 2019.3)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.1.3
• Flutter plugin version 44.0.3
• Dart plugin version 193.6911.31
[√] VS Code (version 1.38.1)
• VS Code at C:\Users\msoha\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.4.1
[√] Connected device (3 available)
• SM S367VL • 5200e8cccc8f76a3 • android-arm • Android 9 (API 28)
• Chrome • chrome • web-javascript • Google Chrome 80.0.3987.163
• Web Server • web-server • web-javascript • Flutter Tools
• No issues found! Process finished with exit code 0
For reference, I am building on an android phone.

Flutter for web, print function is not working with VS Code on windows

I used flutter run -d chrome to run the app, but dart's print doesn't work properly with VS Code in windows. I looked for solutions from another issue, but the problem still exists.
But, it will work fine on android debug.
$ flutter doctor -v
[√] Flutter (Channel master, v1.13.6-pre.25, on Microsoft Windows [Version 10.0.18363.535], locale zh-CN)
• Flutter version 1.13.6-pre.25 at D:\flutter_sdk
• Framework revision b7af5e714d (6 hours ago), 2019-12-25 23:49:55 -0800
• Engine revision 33813929e3
• Dart version 2.8.0 (build 2.8.0-dev.0.0 886615d0f9)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at D:\Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 28.0.3
• ANDROID_HOME = D:\Sdk
• ANDROID_SDK_ROOT = D:\Sdk\
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Users\jeff\AppData\Local\Google\Chrome\Application\chrome.exe
[!] Android Studio (version 3.5)
• Android Studio at C:\Program Files\Android\Android Studio
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[√] Connected device (2 available)
• Chrome • chrome • web-javascript • Google Chrome 78.0.3904.87
• Web Server • web-server • web-javascript • Flutter Tools
! Doctor found issues in 1 category.```
desc:#47820
Check whether something accidently typed on filter box of DEBUG CONSOLE in VS Code. A single letter can block entire print outputs.
(know this is an old question, but hope somebody will benifit from it someday)