cambodia geography
discover places & geography around cambodia.
getting started
in this project, we use flutter 2.2.3. if you have different version, you should consider install fvm.
prerequisites
fvm flutter pub get
fvm flutter run
built with
- flutter 2.2.3 – the framework used
- dart – the language used
data use
- cambodia geography api – by our backend team.
- https://geo.nestcode.co – a website that inspired us to do this project.
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();
}
authors
group 4
Comments are closed.