This is an app version of https://mydayaway.com/
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
fluter pub get
- Open your terminal in the folder's path containing your project
- Run in terminal: flutter pub run easy_localization:generate -S assets/translations -f json -o locale_keys.g.dart
- Past import => import 'generated/locale_keys.g.dart';
*** Note: https://pub.dev/packages/easy_localization
flutter pub run build_runner build --delete-conflicting-outputs
-
Use visual studio code:
-
Adding this config to lauch.json
"configurations": [ { "name": "dayaway dev", "request": "launch", "type": "dart", "program": "lib/main.dart", "args": ["--flavor", "dev", "--target", "lib/main.dart"] }, { "name": "dayaway qa", "request": "launch", "type": "dart", "program": "lib/main.dart", "args": ["--flavor", "qa", "--target", "lib/main_qa.dart"] }, { "name": "dayaway staging", "request": "launch", "type": "dart", "program": "lib/main_staging.dart", "args": ["--flavor", "staging", "--target", "lib/main_staging.dart"] }, { "name": "dayaway production", "request": "launch", "type": "dart", "program": "lib/main_production.dart", "args": ["--flavor", "production", "--target", "lib/main_production.dart"] } ]
-
-
Run by terminal:
- Dev : flutter run --target lib/main.dart --flavor dev
- Qa : flutter run --target lib/main_qa.dart --flavor qa
- Staging : flutter run --target lib/main_staging.dart --flavor staging
- Production : flutter run --target lib/main_production.dart --flavor production
-
Generate App Icon:
flutter pub run flutter_launcher_icons:main -f flutter_launcher_icons*.yaml