Reputation: 81
Why is my flutter unable to display the widget that I wrote at the beginning of the F5 debug
flutter or the flutter run
in command line. My Flutter shows a previous Widget and also a previous error even though I deleted my code. I always have to hot reload
or flutter clean
to get a Widget or data that matches what I wrote.
Note: Before this happens. My project got a lot of errors due to flutter upgrade
I tried trying for days to justify it to replace the versions but the exact can't be solved. So I decided to reinstall my flutter. Please help me. I was frustrated enough.
$ flutter doctor -v
[√] Flutter (Channel stable, v1.12.13+hotfix.5, on Microsoft Windows [Version 10.0.17763.914], locale en-US)
• Flutter version 1.12.13+hotfix.5 at D:\FlutterSDK\flutter
• Framework revision 27321ebbad (7 days ago), 2019-12-10 18:15:01 -0800
• Engine revision 2994f7e1e6
• Dart version 2.7.0
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at C:\Users\ASUS\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• Java binary at: D:\Rts\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
• All Android licenses accepted.
[√] Android Studio (version 3.5)
• Android Studio at D:\AndroidSDK\Android Studio
• Flutter plugin version 42.1.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[√] Connected device (1 available)
• SM A205F • RR8M512EJ8X • android-arm64 • Android 9 (API 28)
• No issues found!
Thank you
Upvotes: 0
Views: 7195
Reputation: 4595
Try flutter clean
, followed by flutter channel stable
. This will reset the build directory, and ensure you're on the stable branch of Flutter. Try flutter run -v
and report the output, please.
Upvotes: 1