Run the App
Prerequisites
Before running the app, ensure the following are in place:
- Flutter SDK installed
- Android Studio (for Android) or Xcode (for iOS) installed
- A physical device connected via USB, or an emulator/simulator set up and running
- All dependencies installed:
flutter pub get
Run on Android
-
Open your terminal and navigate to the project directory:
cd path/to/your/project -
Run the app:
flutter run -
When prompted, select your target device:
- Physical device — connected via USB with USB debugging enabled
- Emulator — launched from Android Studio's AVD Manager
The app will be built and launched on the selected device.
Run on iOS
-
Open your terminal and navigate to the project directory:
cd path/to/your/project -
Install CocoaPods dependencies:
cd iospod installPod install issues?If
pod installfails, run the following inside theiosfolder to clean and retry:rm -rf Podfile.lock Pods .symlinksrm -rf ~/Library/Developer/Xcode/DerivedDatapod install --repo-update -
Go back to the project root and run the app:
cd ..flutter run -
When prompted, select your target device:
- Physical device — iPhone or iPad connected via USB
- iOS Simulator — iPhone or iPad simulator launched from Xcode