Flutter Template

Description

  • Template project based on Bloc.

Features

  • Using flutter_bloc, freezed, json_serializable, get_it.
  • Fetch simple GitHub REST API with Dio (network/local json file).
  • Environment config: flavors with dev & prod
  • CI with GitHub Actions

Run

  • Run app in dev environment:
    flutter run -t lib/app/main_dev.dart --flavor=dev

  • Run app in debug mode:
    flutter run -t lib/app/main_dev.dart --debug --flavor=dev

  • Run app in release mode:
    flutter run -t lib/app/main_dev.dart --release --flavor=dev

Replace dev with prod to run app for production environment.