I have been looking on how to create my own gujrati learning app and thought, well why not learn something thatβs used in my office. And so I chose flutter. ![]()
Now I was used to using vs code. So went and prompted gpt to help me set up flutter in vs code, and this is its response that worked well for me:
π Flutter Development with VS Code
-
β 1. Install Prerequisites
-
π¦ Flutter SDK
- Go to: https://docs.flutter.dev/get-started/install
- Download for your OS (Windows/Linux/macOS)
- Extract and add the
flutter/binfolder to your system PATH
To verify installation:
flutter --version -
π» Install VS Code
- Download: https://code.visualstudio.com/
-
π§© Install Extensions in VS Code
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X) -
Install these:
- β Flutter (by Dart Code)
- β Dart (automatically gets installed with Flutter)
-
π± Install Android Studio (for Android SDK & Emulator)
- You donβt need to use Android Studio, but you do need its SDK + emulator
- Install: https://developer.android.com/studio
- During setup, check: Android SDK + Emulator
-
After install, open Android Studio > Preferences > SDK Manager
- Ensure Android SDK, platform tools, and at least one API version are installed
For emulator:
- Create one using AVD Manager inside Android Studio
- Or use a real Android device in developer mode + USB debugging
-
-
βοΈ 2. Check Flutter Environment
Run:
flutter doctorβ It should show checkmarks for:
- Flutter
- Dart
- Android toolchain
- VS Code
- (iOS only if on macOS)
-
π 3. Create a New Flutter Project
In terminal or VS Code terminal:
flutter create my_app cd my_app code . ## opens the project in VS Code -
π¨βπ» 4. Run Your App
- Connect your Android device or start an emulator
-
In terminal:
flutter run
Or use F5 in VS Code to launch the debugger.
-
π 5. Start Coding
- Your main file:
lib/main.dart - Modify the default code or replace with your own UI
- Your main file:
-
π 6. Hot Reload / Restart
- Save file to see changes instantly (hot reload)
- Use
rorRin terminal when app is running - Or use the Flutter toolbar in VS Code
π Optional: Android App Icon & Name
- Edit in
android/app/src/main/AndroidManifest.xml - Use package:
flutter_launcher_icons