All Questions
Tagged with flutter visual-studio-code
1,749 questions
-1
votes
2
answers
40
views
My app in Dart is not able to select languages properly
I hope you can help me. I am developing an app in Dart with Flutter from Visual Studio.
I've added some languages and in one language I'm getting the following error, the rest works correctly. I have ...
1
vote
1
answer
73
views
VSCode Flutter disable auto remove trailing comma at format
I've changed my PC and install VSCode with Flutter and I found out that formatter is auto remove trailing comma and line break if that line is not over the rulers.
like:
Something( ...
2
votes
1
answer
78
views
Flutter hangs on "Initializing the Flutter SDK. This may take a few minutes" after VS Code restart and executing the Flutter upgrade
Last night, I tried to update my Flutter SDK from 3.27.2 to 3.29.0.
I got an exception telling me that it couldn't upgrade Flutter SDK because there's another program using it (apology to not bring up ...
0
votes
1
answer
60
views
Android Studio's auto complete is extremely slow in Flutter
Every now and then Android Studio's auto complete became slow and unresponsive, please check attached image, it's loading for a while and usually responds with no result.
There is same problem in ...
0
votes
1
answer
34
views
Unit testing Python Firebase Cloud Functions in Flutter and VS Code - can't get the modules to import
I have a Flutter project that has Firebase enabled with cloud_functions. It has created a functions directory in the root of the Flutter project.
Project Structure
my-app/
├─ lib/
├─ ios/
├─ functions/...
-1
votes
1
answer
78
views
Why does vscode give me the following error even though I installed everything without any problems?
FAILURE: Build failed with an exception.
Where:
Build file 'C:\Users\asali\OneDrive\Masa�st�\flutter_application_1\flutter_application_1\flutter_application_2\android\app\build.gradle' line: 2
What ...
-2
votes
0
answers
53
views
Cocoapods Version on Macos
I am on MacOS on an M3 Pro machine running Flutter through VS Code
I am trying to compile my app, but I get the following message
Error: CocoaPods specs repository is too out-of-date to satisfy ...
0
votes
1
answer
65
views
Why does VSCode offer widget properties that don't exist?
It so happens that I started my acquaintance with IDEs with Eclipse, NetBeans, Android Studio. And now I got to Visual Studio Code. A good IDE is supposed to offer only those properties that belong to ...
0
votes
1
answer
103
views
"Initializing the Flutter SDK. This may take a few minutes."on vs code
Whenever I am opening any project on VS Code. I am getting this message: "Initializing the Flutter SDK. This may take a few minutes." It's been 40 minutes but still I am getting the same ...
0
votes
0
answers
28
views
Flutter app fails to run on iOS simulator in VSCode (works in Android Studio) - Code-signing error
I’m trying to run a Flutter app on the iOS simulator using VSCode, but I encounter the following error:
Launching lib/main.dart on iPhone 16 in debug mode...
Xcode build done.
Failed to build iOS app
...
-1
votes
1
answer
74
views
quick fix in flutter not working for imports lines
when i press ctrl+. to show quick fix menu, it shows all widgets that i can wrap with my widget but not shows imports lines and to make import lines must write widget by me to call import line like ...
2
votes
3
answers
531
views
VS Code removes trailing commas when saving dart files for new projects
I created a new project and VS Code condenses any trailing commas unless line lengths are very long. This is a new behaviour. Have looked all over the internet, reinstalled, deleted cache files etc. ...
0
votes
1
answer
70
views
A failure occurred while executing com.android.build.gradle.internal.tasks.DexFileDependenciesTask$DexFileDependenciesWorkerAction
PLEASE IF anyone can help me fix this errors i tried alot of things in android studio i have jdk 20 and gradle 8.3 i tried run the app using vs code and still the same errors please if anyone can ...
0
votes
1
answer
114
views
"Unsupported class file major version 65" After Android Studio Upgrade
I am trying to run my Flutter app on the Android emulator, but the Gradle build fails with the following error:
Launching lib/main.dart on sdk gphone64 x86 64 in debug mode...
FAILURE: Build failed ...
0
votes
0
answers
28
views
Gradle build failed using the audioplayrs
When using the audioplayrs, how can i solve the gradle problem with these details below?
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration '...
0
votes
1
answer
32
views
VS Code Flutter extension does not find the SDK on PATH when the built-in terminal does?
When I run flutter doctor in the VS Code built-in terminal, it reports everything is fine, it finds the flutter SDK that was installed in /home/.../flutter via the Flutter extension in VS Code. But ...
0
votes
0
answers
17
views
Gradle Connection Failed Server not responding
I'm getting an error in VS Code when I try to run my startup app, Veggie Vibes. I built the whole project in Android Studio on my Ubuntu PC. I ran the app in Chrome because I didn't have the emulator ...
1
vote
3
answers
54
views
fix Flutter drawer items
I'm trying to have a footer Widget align to the bottom of the Drawer but still not working Drawer Header and a list at the top of the Drawer. Here's what I'm trying:
//drawer class
class ...
0
votes
3
answers
113
views
How to adjust code formatting when formatting the document
I am starting with Flutter code and I understand that a good practice is to add a comma at the end of the code, this in order to have a good code format, but when I add a comma and make a line break, ...
1
vote
1
answer
95
views
Version solving failed with running Dart commands using asdf in VSCode
I am needing to have multiple versions of Flutter installed so I switched from a regular installation of Flutter/Dart to having two versions of each with asdf. I am able to run Flutter commands ...
1
vote
0
answers
80
views
Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered [duplicate]
When using flutter emulator, I get
Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use ...
0
votes
2
answers
119
views
Flutter Development with VS Code Takes Too Long to Show Code Suggestions and Validate Code Changes
I know copying and pasting the code is commonly used, but sometimes writing from scratch offers more granular control over the program you're trying to develop.
The problem is when writing a built-in ...
0
votes
0
answers
30
views
The flutter project reported an error when running in VSCode. error: Invalid Swift parseable output message (malformed JSON): `[123, 10,
The flutter project runs fine in XCode, but an error occurs when running in VSCode.
error: Invalid Swift parseable output message (malformed JSON): `[123, 10,
[✓] Flutter (Channel stable, 3.27.1, ...
1
vote
0
answers
31
views
VS Code autocomplete suggest indirect imports Flutter/Dart
vscode autocomplete suggests not only the source of the file, but all files where this import is used.
I have a GoalStatus type and use it in several files. When creating a new view, vscode confused ...
0
votes
0
answers
43
views
How to debug Flutter web integration test in VS Code
I have followed the instructions on https://docs.flutter.dev/testing/integration-tests#test-in-a-web-browser to set up my integration tests and they run by starting starting chromedriver in one ...
0
votes
0
answers
21
views
Emulator top bar is cropping when using VS Code and flutter
Trying flutter for the first time. When I launch my flutter app in emulator, its app bar is not visible as it is being cropped. See screenshot below.
At first, I thought there is some issue with app ...
1
vote
1
answer
57
views
How to Make VSCode Autocomplete Future<void> onLoad() Instead of FutureOr<void> onLoad()
Related: What exactly is FutureOr<void> onLoad?
When I try to write onLoad in VSCode, it autocompletes as FutureOr<void> onLoad().
However, I want it to autocomplete as Future<void> ...
-2
votes
1
answer
69
views
What exactly is FutureOr<void> onLoad?
Related: How to Make VSCode Autocomplete Future<void> onLoad() Instead of FutureOr<void> onLoad()
When writing onLoad in VSCode, it auto-completes as FutureOr<void> onLoad().
However,...
1
vote
0
answers
82
views
Debuging Failed Flutter/Dart application
Good day all,
I'm pretty new to Android development. I'm trying to launch a Flutter app in debugging mode, but I'm getting lots of errors.
Background: I had a developer working on the app for me while ...
1
vote
0
answers
17
views
my polyline is not working need assistant in checking what exactly is wrong
i am working on a Flutter map-based application that handles user requests by allowing them to set pickup, destination, and optionally drop-off markers on the map. The app then draws a polyline route ...
1
vote
1
answer
37
views
Vscode shows explorer files red after running build runner
I'm using the build runner package in my Flutter project. But whenever I ran the following command
dart run build_runner build
Some of the bloc state files turn red in the vscode file explorer. I ...
1
vote
0
answers
21
views
VSCode Flutter auto-formatting else on the same line as closing bracket?
I am new to flutter and have recently installed VSCode + the official Flutter plugin and I want to turn off the part of the auto-formatter that reformats else clauses to be on the same line as the ...
1
vote
0
answers
24
views
Flutter and Git are being deleted when running 'flutter pub get' in VS Code, why?
Background: I recently set up flutter on my machine for a new part time position, and while encountering issues in Android Studio, I migrated to VS Code. However, after a successful install of flutter ...
1
vote
1
answer
187
views
vsCode Dart Analysis Server client: couldn't create connection to server
Below is the error message:
I am receiving a warning that VS Code can't connect to the Dart Analysis Server, and the results are as shown in the image below.
Trying:
I tried uninstalling and ...
0
votes
2
answers
696
views
moved from Mac M1 to Mac M4. . ran into gradle issue on compile in VS Code using Flutter
I had a gradle problem with my M1 few months ago when I update Android Studio code. I stumbled a week trying all the suggestions. Finally got it work. to compile. I taking a flutter Udemy course. ...
0
votes
2
answers
72
views
Method References in VsCode flutter
Is there a way or plugin to display the references on top of a method declarations in VsCode with Dart code? Something similar to Visual Studio reference display?
0
votes
0
answers
61
views
Flutter suggests invalid imports [duplicate]
Has anyone had a problem where flutter and vscode suggest imports from files that actually import the needed file? The initial file is just an extension class, but flutter keeps suggesting files that ...
0
votes
0
answers
46
views
Flutter project broke specifically through vscode's terminal. Any idea how to fix this?
I have a flutter project that was working for four days. Last night I updated the code and it broke. I reverted the changes but it stayed broken. I always used to run it in vscode's powershell. I ...
0
votes
0
answers
25
views
Error : Gradle task assembleDebug failed with exit code 1
I'm trying to run flutter on Linux mint using vs code but this error appears ,it happens only when i try to run the code on an emulator or my phone
i've tried to use intellij instead but it didn't ...
0
votes
0
answers
19
views
How to open flutter apk template in VS Code?
I'm new to Flutter and VS Code and spent yesterday getting my feet wet with them using a couple YouTube tutorials. After searching Git Hub and a couple other paid sites, I downloaded a zipped "...
0
votes
0
answers
39
views
VS Code terminal freezes after execution of 'flutter run'
As I execute 'flutter run' from terminal, it starts the application properly and I can't type 'r' or 'R' in terminal to perform hot reload or hot restart.
What can be the problem here?
It's getting ...
0
votes
1
answer
46
views
Flutter android application will not connect to external url api. Connects to local internal ip api only- ios works
I am using vscode on a mac and have a Flutter app that needs to connect to a url api eg: www.test.com
When testing using an internal ip eg: 10.0.0.3:80/api/Values/ the app connects fine and posts and ...
0
votes
1
answer
273
views
Android Gradle plugin requires Java 17 to run. You are currently using Java 11 not working on flutter
Im using VS Code with flutter.
Wehn trying to build appbundle for android to publish the app, im getting the error:
* What went wrong:
An exception occurred applying plugin request [id: 'com....
0
votes
1
answer
39
views
Getting clean logs with Flutter in Android on VSCode
Is there a way of getting clean logs from a Flutter app in Android?
i.e. instead of having
[log] no color
[log] texto en color
I/flutter ( 5447): normal print
D/EGL_emulation( 5447): app_time_stats: ...
1
vote
1
answer
57
views
The Flutter Daemon failed to start and Unable to find Git in your path error in VS Code
I’m experiencing an issue while working with Flutter in VS Code. When I open my project in normal mode, I get the following error message:
The Flutter Daemon failed to start.
when I try to run any ...
0
votes
0
answers
103
views
Could not determine the dependencies of task ':flutter_plugin_android_lifecycle ' in Flutter Project
After upgrading my Android Studio to the latest version (Ladybug), I encountered the following error:
To resolve this, I updated my Gradle version and Android Gradle Plugin (AGP) version. However, ...
0
votes
1
answer
60
views
Flutter debugger becomes unresponsive after few seconds of running the app
I was running and debugging a flutter app in VS Code in my M2 Macbook. But now there is a problem like I can't reload or restart the app after few seconds from starting it. Also dev tools is not ...
0
votes
1
answer
55
views
How do I loop the AlertDialog in Flutter when there's no internet connection?
I'm trying to loop the AlertDialog that says "No Internet Connection. Please check your internet connection and try again.". I want the dialog to keep showing when I press the "Retry&...
0
votes
0
answers
148
views
"Could not run phased build action using connection to Gradle distribution" gradle-8.3
Trtying to set up my Flutter project, but I'm coming across this Gradle error. I can't find any solutions online that work for me.
Could not run phased build action using connection to Gradle ...
1
vote
1
answer
123
views
Cannot download FlutterFlow 5.0 code on VS Code
The new FlutterFlow version just released and there was suppose to be a new feature that allowed us to download code in VS Code using the FlutterFlow extension, edit the code and then push it back in ...