Skip to content

duongkibo/DotaGPRO

Repository files navigation

DotaGPRO

Dota Review player and heroes

## development: flutter run -t lib/main.dart --debug --flavor development

## staging: flutter run -t lib/main.dart --debug --flavor staging

## preprod: flutter run -t lib/main.dart --debug --flavor preprod
Build App

You can build the app using the commands

for Android

## development: flutter build apk -t lib/main.dart --flavor development

## staging: flutter build apk -t lib/main.dart --flavor staging

## preprod: flutter build apk -t lib/main.dart --flavor preprod

for IOS

## development flutter build ios -t lib/main.dart --flavor development

## staging: flutter build ios -t lib/main.dart --flavor staging

## preprod: flutter build ios -t lib/main.dart --flavor preprod

resources

  * All resources (images, fonts, videos, ...) must be placed in the assets class
  * Before using them, please declare the path in utility class and the suffix of the class to be type_provide (image_provide.dart)

Getting started

Get dependencies and generate necessary files.

npm run init

We'll handle the generation of required files for 🚀 your onboarding!

Json parsing / serialization

This project is implementing json_serializable. It use build_runner to generate files. If you make a change to these files, you need to re-run the generator using build_runner:

flutter pub run build_runner build

generator using build_runner and remove conflict file :

npm run generate

Indentation.

  • Auto indentation handled with git hook using Lefthook.
  • For mac users, run npm run setup and you should be done. More details below.
  • This project use npm for Lefthook installation, to ease others getting it up running fast - run npm install
  • After installation, run npx lefthook install to finish up installation.
  • More info here.

Localization

Using this library to handle multi-languages. Follow this guide to understand and config languages files

Setup Step :

flutter pub global activate intl_utils

flutter pub global run intl_utils:generate

Initialize plugins (IntelliJ reference)

  1. Open Flutter intl in Action
  2. Click on arb File

image

  1. To add / remove Locale, choose Add Locale / Remove Locale
  2. Then it will promp which locale

image

Current available locale is en, en

Link library : https://pub.dev/packages/intl_utils

About

Dota Review player and heros

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages