-
install flutter https://flutter.dev/docs/get-started/install (install android studio for android sdk and xcode for ios)
-
Install the VS code flutter extension
-
Run flutter doctor (View > Comand Palett.. Flutter: Run Flutter Doctor) and resolve all issues.
-
To Connect a device run
flutter emulatorswhich will list all available emulators. Then chooseflutter emulators --launch EMULATOR NAMEthe selected device is displayed in the VS Code status bar (blue at bottom) and can be changed there (download Android Studios / Xcode for emualtors/simulators) -
Go to debugger to run the app (create a launch config file an select dart & flutter)
see section Run the app for help: https://flutter.dev/docs/get-started/test-drive?tab=vscode
- install vscode-flutter-i18n-json: i18n generation https://github.com/esskar/vscode-flutter-i18n-json
-
(run
flutter pub getto install the dependencies) is run automagically -
Go to debugger to run the app (hotreload)
-
run
make watch_generate_codeto generate injectables -
use
@Environment(Env.mock)to annotate mock classes. Use@Environment(Env.dev)to annotate dev classes. Use@Environment(Env.prod)to annotate prod classes.
- add the translation to the translation files (i18n > [lang].json)
- update the generated translations by opening the VSC command palette and use Flutter I18n Json: Update
-
most of the code is in
ui.screensfor ui specific logic (views and view models).corefor shared logic (services). -
businesscontains entities. -
datacontains repositories.
This repository uses the GitLab Flow branching strategy. All branches should be created from master. Create feature or release branches.