3. Setup Setting up Flutter involves several steps. Here’s a basic guide to get you started:
Foodie includes three Flutter (Dart) applications — the User App, the Restaurant App and the Delivery Man / Driver App. Each is a separate project with its own source folder, package name and store listing, but they share one Firebase project and the setup below is identical for all three: install Flutter once, then repeat sections 4–10 for each app. The official reference is docs.flutter.dev, but you should not need it to complete this guide.
3.1. System Requirements
- OS: Windows 10/11 (64-bit), macOS, or Linux. iOS builds require macOS + Xcode.
- Disk space: ~2.8 GB for the Flutter SDK (plus your IDE / Android Studio).
- Tools: Git, and PowerShell 5.0+ on Windows.
3.2. Install the Flutter SDK
- Download the SDK for your platform from docs.flutter.dev.
- Extract it to a path without spaces — for example
C:\src\flutteron Windows, or~/development/flutteron macOS/Linux. - Add the
flutter/binfolder to your systemPATHso thefluttercommand works from any terminal.
3.3. Install the Platform Toolchains
- Android: install Android Studio, then open the SDK Manager and install the Android SDK, the SDK Command-line Tools and the Platform Tools. Accept the licences with
flutter doctor --android-licenses. - iOS (macOS only): install Xcode from the App Store, run
sudo xcodebuild -runFirstLaunch, then install CocoaPods withsudo gem install cocoapods.
3.4. Verify the Installation
Run the doctor command and fix anything it reports:
flutter doctor -v
Every item that matters for your target platform should show a green check.
3.5. Install the IDE Plugins
- VS Code: install the Flutter and Dart extensions.
- Android Studio: install the Flutter plugin (it pulls in Dart).
3.6. Open the Foodie Project
Unzip the application source, open the folder in your IDE, and fetch the dependencies:
flutter pub get
3.7. Run the App
Start an emulator/simulator or connect a physical device, then run:
flutter devices flutter run
Hot reload (r in the terminal) applies code changes instantly while the app keeps running.
