Onboarding
Automatic Code Generation
Build Runner
- used for auto-generating code for models.
flutter pub run build_runner build --delete-conflicting-outputs
- It's strongly recommended to add the following settings in Visual Studio Code to provide easier access to build runner tasks via Cmd + Shift + B:
{
"dart.previewBuildRunnerTasks": true,
"dart.buildRunnerAdditionalArgs": ["--delete-conflicting-outputs"]
}
Data Class Plugin
- Used for auto-generating code for models.
- Now, for code generation, the Data Class Plugin utilizes Tachyon. Command to run Tachyon was given below.
dart run tachyon build
App Localization
- Create, Update, and Remove keys on https://app.lokalise.com/projects and then Run the below command from the root of your project.
dart run tools/update_localisations/bin/main.dart