Unofficial Bavatar dart app for android, iOS and macOS
Getting Started ?
This project contains 3 flavors:
- development
- staging
- production
To run the desired flavor either use the launch configuration in VSCode/Android Studio or use the following commands:
*Bavatar works on iOS, Android, and Web.
Running Tests ?
To run all unit and widget tests use the following command:
To view the generated coverage report you can use lcov.
Working with Translations ?
This project relies on flutter_localizations and follows the official internationalization guide for Flutter.
Adding Strings
- To add a new localizable string, open the
app_en.arb
file atlib/l10n/arb/app_en.arb
.
- Then add a new key/value and description
- Use the new string
Adding Supported Locales
Update the CFBundleLocalizations
array in the Info.plist
at ios/Runner/Info.plist
to include the new locale.
Adding Translations
- For each supported locale, add a new ARB file in
lib/l10n/arb
.
├── l10n
│ ├── arb
│ │ ├── app_en.arb
│ │ └── app_es.arb
- Add the translated strings to each
.arb
file:
app_en.arb
app_es.arb