Skip to content

Installation

RequirementVersion
Flutter SDK3.24+
Dart SDK3.5+
Node.js18+
Java JDK11+ (for Android)
Xcode15+ (for iOS, macOS only)
  • VS Code with Flutter extension
  • Android Studio with Flutter plugin

Follow the official Flutter installation guide for your platform.

Verify installation:

Terminal window
flutter doctor

Melos manages the monorepo structure:

Terminal window
dart pub global activate melos

Ensure ~/.pub-cache/bin is in your PATH.

Terminal window
git clone https://github.com/your-org/co2-target-asset-management-melos.git
cd co2-target-asset-management-melos
melos bootstrap

4. Configure Firebase (Optional for Local Development)

Section titled “4. Configure Firebase (Optional for Local Development)”

For local development, you can use Firebase emulators:

Terminal window
npm install -g firebase-tools
firebase login
firebase emulators:start

Generate Freezed models and Riverpod providers:

Terminal window
melos run codegen:all
Terminal window
cd apps/admin
flutter run

Melos not found

Terminal window
export PATH="$PATH:$HOME/.pub-cache/bin"

Bootstrap fails

Terminal window
melos clean
melos bootstrap

Code generation errors

Terminal window
melos run codegen:all --no-select
Terminal window
cd apps/admin
flutter test
Terminal window
flutter analyze
Terminal window
flutter build web --release