Flutter webapp slow on startup - flutter

I'm new to flutter web, I just created a sample portfolio site in a flutter. It came well but when I build the app it takes 10 seconds delay to startup even I hosted it to a server it takes some time to render. can anyone say why it is happening?
FLUTTER DOCTOR
venkat#venkat--linux:~/karthikha_photography$ flutter doctor Doctor
summary (to see all details, run flutter doctor -v): [✓] Flutter
(Channel master, 2.1.0-11.0.pre.145, on Linux, locale en_GB.UTF-8) [✓]
Android toolchain - develop for Android devices (Android SDK version
30.0.3) [✓] Chrome - develop for the web [✓] Android Studio (version 4.1) [✓] Connected device (1 available)
• No issues found!
gitrepo https://github.com/venki1410/karthikha_photography
only for mobile devices
Site url https://incommunicable-volu.000webhostapp.com/#/

Related

i can't debug on physical device

i am trying to debug on a physical device a flutter app. During launch it freezes on:
Running Gradle task 'assembleDebug'...
i run the program with
flutter run -v
, everything works perfectly.
this is my flutter doctor
Doctor summary (to see all details, run flutter doctor -v): [✓]
Flutter (Channel stable, 3.3.7, on macOS 13.0.1 22A400 darwin-arm,
locale it-IT) [✓] Android toolchain - develop for Android devices
(Android SDK version 33.0.0-rc1) [✓] Xcode - develop for iOS and macOS
(Xcode 14.1) [✓] Chrome - develop for the web [✓] Android Studio
(version 2021.3) [✓] VS Code (version 1.73.1) [✓] Connected device (4
available) [✓] HTTP Host Availability
• No issues found!
during startup I get a white screen on the physical device, but I don't get errors of any kind.
help please?
it happened to me many times,
when that happened I use flutter clean and then close and reopen
vs code and most important I delete my old versions of the app this soluation works fine for me and I hope that helps you

Failed to launch DevTools: TimeoutException after 0:00:10.000000: Future not completed

The flutter tools aren't launching when I press the button on Android Studio, and I also get a warning when I use flutter run.
I've tried flutter clean, but this still happens on both the terminal and Android Studio flutter plugin.
flutter doctor output:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.2, on macOS 11.2.3 20D91 darwin-x64, locale
en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] Android Studio
[✓] VS Code (version 1.54.3)
[✓] Connected device (2 available)
• No issues found!
Does anyone have suggestions on how to fix this?
Rebooting my computer fixed it.

Could not open android app with release with Flutter beta 1.25.0-8.1.pre

I've recently updated Flutter to 1.25.0-8.1.pre in beta. I could run debug apk and build release. But, the release-apk doesn't work and it stuck on default splash screen. Where the problem lies in. Is there any such bug from Flutter?
flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 1.25.0-8.1.pre, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Chrome - develop for the web
[✓] Android Studio
[✓] IntelliJ IDEA Community Edition (version 2020.3)
[✓] VS Code (version 1.52.1)
[✓] Connected device (3 available)
• No issues found!
I just downgrade the flutter version to 1.24.0-10.2.pre which released on 11/19/2020 and retried building release apk. And it worked fine. Actually the problem lies with Flutter new update on beta. The corresponding issue : https://github.com/flutter/flutter/issues/72705

undefined name 'widget' in stateful widget flutter

Suddenly i started facing this error in my all project. Even I tried to create new project but failed too.
I am using stateful widget and when I try to access class variable using widget then i face this error.
Flutter doctor output:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.2, on Mac OS X 10.15.6 19G2021, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
[✓] Android Studio (version 3.4)
[✓] VS Code (version 1.50.1)
[✓] Connected device (1 available)
I tried flutter clean but no luck.

whenever the flutter doctor always makes this mistake he says he can't find the file

Output of flutter doctor
C:\WINDOWS\system32>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.17.0, on Microsoft Windows [versão 10.0.18363.778], locale pt-BR)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
X Android SDK file not found: C:\Users\egacg\AppData\Local\Android\sdk\platforms\android-29\android.jar.
[√] Android Studio (version 3.6)
[!] Connected device
! No devices available
! Doctor found issues in 2 categories.
You need to download the SDK (Android SDK version 29.0.3).
If you are using android studio you can click on Tools->SDK Manager, Select the version you need and hit apply/OK.
Then run flutter doctor again.