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

      To verify installation:

      flutter --version
      
    • πŸ’» Install VS Code
    • 🧩 Install Extensions in VS Code
      1. Open VS Code
      2. Go to Extensions (Ctrl+Shift+X)
      3. 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
      1. Install: https://developer.android.com/studio
      2. During setup, check: Android SDK + Emulator
      3. 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

    1. Connect your Android device or start an emulator
    2. 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
  • πŸ” 6. Hot Reload / Restart

    • Save file to see changes instantly (hot reload)
    • Use r or R in terminal when app is running
    • Or use the Flutter toolbar in VS Code

πŸ›  Optional: Android App Icon & Name


This site uses Just the Docs, a documentation theme for Jekyll.