Skip to content

SaiShanmukkha/FitZee-Chatbot

Repository files navigation

Flutter Installation and Setup Guide

This guide will walk you through the steps to install Flutter, set up Android Studio, download API 33 Android emulator, configure the Flutter toolchain, and run a Flutter application. Additionally, it includes instructions to build an Android APK.


Prerequisites

Before starting, ensure you have the following:

  • A computer running macOS, Windows, or Linux.
  • Administrator access to install software.
  • At least 2GB of free disk space.

Step 1: Install Flutter SDK

  1. Download Flutter SDK:

  2. Extract Flutter:

    • Extract the downloaded zip file to a location of your choice (e.g., C:\src\flutter for Windows).
  3. Add Flutter to PATH:

    • Update your system's environment variables:
      • On Windows: Add flutter/bin to the PATH variable.
      • On macOS/Linux: Add the following line to your .bashrc or .zshrc file: bash export PATH="$PATH:[PATH_TO_FLUTTER_DIRECTORY]/flutter/bin"
  4. Verify Installation:

    • Run the following command in a terminal: bash flutter doctor

    • This will display a summary of your Flutter installation and indicate any missing dependencies.


Step 2: Install Android Studio

  1. Download and Install:

    • Download Android Studio from the official website.
    • Follow the installation instructions for your operating system.
  2. Set Up Android SDK:

    • Install Flutter plugin in andriod studio.
    • Open Android Studio and go to File > Settings > Appearance & Behavior > System Settings > Android SDK.
    • Ensure that the following components are installed:
      • Android SDK Platform-Tools
      • Android SDK Build-Tools
      • API 33 (Android 13)
  3. Create an Android Emulator:

    • Go to Tools > Device Manager and create a new virtual device.
    • Select a hardware profile (e.g., Pixel 8).
    • Choose API 33 as the system image.
    • Finish the setup and launch the emulator.

Step 3: Set Up Flutter Toolchain

  1. Run the following command to accept the Android licenses:

    flutter doctor --android-licenses
  2. Verify the Flutter setup:

    flutter doctor
    • Ensure there are no errors, and all checks are marked as .

Step 4: Get the code for FitZee Flutter App

  1. Create a New Flutter Project:

    • Run the following command:
      flutter pub get
  2. Make sure you have emulator running or andriod devie connected via USB to PC (which should have USB debugging enabled)

    • To see emulators
      flutter emulators
      To Launch an emulator
      flutter emulators --launch <emulator-id>
    • To see available devices
      flutter devices
  3. Run the App:

    • Launch your Android emulator.
    • Run the following command to start the app:
      flutter run

Step 5: Build an Android APK

  1. Prepare everything for good FitZee app release.

  2. Generate the APK:

    • Run the following command to build the release APK:

      flutter build apk --release
    • The APK will be located at build/app/outputs/flutter-apk/app-release.apk.

  3. Install APK on Device:

    • Transfer the APK to your Android device and install it.

Common Issues and Fixes

  1. Flutter Not Recognized:

    • Ensure Flutter is added to your system PATH correctly.
  2. Emulator Not Detected:

    • Verify the emulator is running and that Android Studio SDK paths are configured.
  3. Build Fails:

    • Run the following command to clean the build directory:
      flutter clean
    • Then rebuild:
      flutter build apk --release

Resources


About

Fitness Tracking Application with builtin RAG Chatbot developed with flutter framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages