VS code analyzing again and again -- FLUTTER - flutter

I am using flutter with VS code because it is very lightweight and simple as compared to other IDE But for many days. flutter is analyzing again and again. Sometimes never-ending analyzing until I restart the IDE. The analyzing also make the vs code much slower which makes a disturbance in coding... Am very upset because my PC is just 8 GB of ram, Can not handle Android studio, as well as I like the vs code very much. If you guys have any idea about this then share.

Follow that 3 instruction:
Delete flutter SDK and install again
2.Delete Flutter plugin
3.Update Vscode(Recommended)

Related

Can I code a whole Flutter app with just vscode?

I'm just starting to program with Flutter and I'm wondering if it's possible to program a whole flutter app, with just vs code, because of many reasons I can't use Android Studio on my laptop.
Just knowing if it's possible would be enough for me :)
Well, I started a standard Flutter App and I'm developing it from the basis.
Yes, you can code a whole Flutter project with VScode, you need just to follow the install process of all requirements for flutter:
https://docs.flutter.dev/get-started/install
However, you will need Android Studio in order to get an Android Emulator, to debug and preview your work process. ( you will not need to run it every time from Android Studio)
and when you will have the emulator installed then you can do the whole code process of a Flutter project only from VScode

Andoird Studio is running ultra slow on Mac

I'm working on a Flutter project and using Android Studio to emulate and edit my code. Every time I'm working on it, Android Studio suddenly freezes for a second or even longer. Indexing takes forever and the overall performance is just weak.
Can someone please help me and tell me what I'm doing wrong?
If you are using M1, check that installed AndroidStudio is for M1(ARM), not Intel.

VS Code testing tab no longer finds tests

After upgrading from Flutter 2.5.0 to Flutter 2.5.1, the testing tab in VS Code no longer finds all the tests for any of my Flutter projects. Instead, this is all I see:
I've tried downgrading back to 2.5.0, but no luck. Obviously, I can still use just use flutter test to run all the tests, but this isn't as nice as the testing UI that was previously available. Other developers on my teams have also run into this problem. I haven't seen any posts / info about it online or in the Flutter changelogs. My VS Code version is the exact same from before this became an problem. (VS Code version: 1.60.2)
Any help would be appreciated!
This is only a temporary fix. But if you downgrade the dart extension in VS Code, then it will bring back the older testing which can find / run all the tests.
Open the extensions tab in VS Code -> gear icon -> install another version... -> 3.26.0. After it finds the version, and you select it, you'll need to restart VS Code. Then the old testing should be available.

I'm not able to run any flutter app on my emulator (VSC & Android Studio)

So basically the problem is that I created a new flutter app, and the I opened the emulator(from android studio), and I clicked on run.
I had multiple problems that were related to heap memory and such, but I managed to solved most of then using all kind of methods from the internet.
I even deleted and installed Java and android studio multiple times, I changed the Enviromental Variables as the Internet suggested, but now, the current error that I get is this:
The Error Image
my flutter doctor -v:
flutter doctor -v image
I'm about to lose my mind, I'm on this issuse for a few weeks. please help me fix it
after your seggestion to add "gradle.properties" and adding "org.gradle.jvmargs=-Xmx1024m" to it (without the " "):
after
Perhaps you shoud add a line at end of file gradle.properties org.gradle.jvmargs=-Xmx1024m then clean the project, also validate cache and restart the android studio. It should works then.

Hybrid Application Sizes

Currently, I've been developing an application in flutter but after I install it on my android device I diagnosed that it takes huge amount of space.
Firstly I want to know if there is any solution to it?
Secondly, if there isn't any solution; is there any other hybrid language without this problem??
if you run flutter run and see the application size in your phone you will find it very large > 40 MB. This is because while in debug mode whole flutter engine is installed on phone to support debugging and Just in time compilation of your dart files. Effectively lets you hot reload your changes Just in time.
Now if you run flutter build apk or flutter run --release, this will generate an apk in release mode. Means no debugging support, everything Ahead of compiled to target machine code. And the size of the app should be as low as possible < 15 MB.