Skip to content

Starting template for a new Flutter project using Riverpod.

License

Notifications You must be signed in to change notification settings

byanjiong/flutter-project-template-riverpod

 
 

Repository files navigation

flutter-project-template-riverpod

Requirements

Flutter: >=3.10.6 Dart SDK: >=3.0.6

Supported Platforms

Android iOS Web Windows MacOS Linux

Live Demo

https://brizaldi.github.io/flutter-project-template-riverpod/

Installation

  • Add Flutter to your machine
  • Open this project folder with Terminal/CMD
  • Ensure there's no cache/build leftover by running flutter clean in the Terminal
  • Run in the Terminal flutter packages get
  • Run in the Terminal flutter packages pub run build_runner build --delete-conflicting-outputs

Additional steps for iOS

  • Open ios folder inside Terminal/CMD
  • Run in the Terminal pod install
  • Run in the Terminal pod update

Running the App

  • Open Android Emulator or iOS Simulator
  • Run flutter run --flavor {RELEASE_TYPE} --dart-define flavor={RELEASE_TYPE}
  • Supported release type: development, staging, and production

Build an APK

  • Run flutter build apk --flavor {RELEASE_TYPE}
  • The apk will be saved under this location: [project]/build/app/outputs/flutter-apk/
  • We can also build appbundle (.aab) by running this command: flutter build appbundle --flavor {RELEASE_TYPE} --dart-define flavor={RELEASE_TYPE}

Build for iOS

For more information, check out the official documentation

About

Starting template for a new Flutter project using Riverpod.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 58.6%
  • C++ 22.6%
  • CMake 12.5%
  • HTML 2.5%
  • Ruby 1.8%
  • C 1.0%
  • Other 1.0%