Skip to content

CSG6Project1/cambodia_geography_mobile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Cambodia Geography

Image

Getting Started

In this project, we use flutter 2.8.0. If you have different version, you should consider install FVM.

Prerequisites

fvm flutter pub get
fvm flutter run

Built with

  • Flutter - The framework used
  • Dart - The language used

Data use

Code generation

Model generations with JSON Serialization

We uses Json Serializable [ https://flutter.dev/docs/development/data-and-backend/json#code-generation ] package build tool to generate model from Json to Class object. In case you want to add more fields model or even change the model data type, you need to run the command:

flutter pub run build_runner build --delete-conflicting-outputs

Assets generations with flutter_gen

We also use flutter_gen which is the Flutter code generator for your assets, fonts, colors, โ€ฆ โ€” to Get rid of all String-based APIs.

Installation: [https://pub.dev/packages/flutter_gen/install]

Generate new assets:

fluttergen
Widget build(BuildContext context) {
  return Assets.images.profile.image();
}

Generation Translation from GoogleSheet

We use Google Sheet as the source of our translation. Run this following command to generate the translation file. eg. km.json

./scripts/translation_gen/generate_localize_json_files.sh

Check sign in report

Get info such as Variant, Config, Store, Alias, MD5, SHA1, SHA-256, Valid until with following command:

cd android
./gradlew signingReport

Authors

Group 4 - CADT's students. See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details