dangquanuet / Flutter-Base-Github-Sample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UI Sample

Simulator.Screen.Recording.-.iPhone.13.-.2022-05-01.at.13.33.52.mp4

Installation

Environment

iOS

  • iOS 13+

Android

  • Android 5.1+
    • minSdkVersion 22
  • targetSdkVersion 31

App architecture

  • Base on MVVM + Repository + Riverpod + Hooks
  • Support for multilingual and integrate Firebase Crashlytics, Firebase Remote Config, Firebase App Distribution, Firebase Cloud Messaging.
  • Support distribution application to Firebase App Distribution and TestFlight by using Fastlane.

image

Firebase service

Networking

Local Data soure

  • Using sqflite + Shared preferences

Model class

UI

Navigation

Getting Started

Setup

$ make setup
$ export PATH="$PATH":"$HOME/.pub-cache/bin" # Add your run-commands (.zshrc, .bashrc, etc)
$ make dependencies
$ make build-runner

How to add assets(images..)

  1. Add assets
  2. Run FlutterGen

How to add localizations

  1. Edit *.arb files.
  2. Run generate the flutter pub get

Make .apk and .ipa file

Android

$ make build-android-dev
$ make build-android-prd

iOS

$ make build-ios-dev
$ make build-ios-prd

Run app

$ make run-dev
$ make run-prd

Firebase Distribution

Run Firebase Distribute Android

$ make distribute-android-dev
$ make distribute-android-prd

Run Firebase Distribute iOS

$ make distribute-ios-firebase-dev
$ make distribute-ios-firebase-prd

Run TestFlight Distribute iOS

$ make distribute-ios-testflight-dev
$ make distribute-ios-testflight-prd

About


Languages

Language:Dart 92.4%Language:Ruby 3.4%Language:Makefile 1.9%Language:Swift 0.7%Language:HTML 0.7%Language:Kotlin 0.6%Language:Shell 0.2%Language:Objective-C 0.0%