DEV Community

Anusree Anilkumar
Anusree Anilkumar

Posted on Originally published at anusree6154s.github.io on

Flutter Setup Guide

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. image

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

To verify installation:

flutter --version

Enter fullscreen mode Exit fullscreen mode
1. Open VS Code
2. Go to Extensions (`Ctrl+Shift+X`)
3. Install these:
Enter fullscreen mode Exit fullscreen mode
  • πŸ“± 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](https://developer.android.com/studio)
2. During setup, **check** : Android SDK + Emulator
3. After install, open Android Studio > Preferences > SDK Manager
Enter fullscreen mode Exit fullscreen mode

For emulator :

- Create one using AVD Manager inside Android Studio
- Or use a **real Android device** in developer mode + USB debugging
Enter fullscreen mode Exit fullscreen mode
  • #### βš™οΈ 2. Check Flutter Environment

Run:

flutter doctor

Enter fullscreen mode Exit fullscreen mode

βœ… 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

Enter fullscreen mode Exit fullscreen mode
  • #### πŸ‘¨β€πŸ’» 4. Run Your App
  1. Connect your Android device or start an emulator
  2. In terminal:

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

Top comments (0)