Why aren’t Flutter UI guides visible in my VSCode?
I have activated the Flutter UI guides (and UI guides custom tracking) settings, and yet my guidelines look like this:
Is there anyway to fix this coding that suddenly turn in some sort of chinese character
My dart file,pubspec.yaml pubspec .lock and etc are suddenly turn to unknown character, so do my other file such python file even though its not even linked to the dart file.
I recently run the flutter app on android emulator. . I changed build.gradle and other grade files said by chatgpt
Execution failed for task ‘tapp:compileDebugKotlin’.
could not find package final_project at https://pub.dev
enter image description here
enter image description here
I was writing Flutter code using flexible, and something happened that I didn’t understand
import ‘dart:async’; import ‘package:flutter/material.dart’; class HomeScreen extends StatefulWidget { const HomeScreen({super.key}); @override State<HomeScreen> createState() => _HomeScreenState(); } class _HomeScreenState extends State<HomeScreen> { static const twentyFiveMinutes = 1500; int totalSeconds = twentyFiveMinutes; bool isRunning = false; int totalPomodoro = 0; late Timer timer; void onTick(Timer timer) { if (totalSeconds == 0) { setState(() { totalPomodoro = […]
flutter import files in the same project: which is better?
my_app/lib/ foo1.dart foo2.dart foo2.dart references some classes in foo1.dart. import “foo1.dart” import “package:my_app/foo1.dart” VSC dart editor can add either of above automatically. Which one should be used? The second one contains the project name (my_app). If the project name is changed, all the imports in code needs to be changed. If the first one is […]
The dart code in my project is notcolor coded
I had the error that i was unable to create new project of flutter so i tried to reinstall flutter and dart then when i opened my old project i see