Workouter mobile app with Flutter. Too lazy to write proper full readme for now. Follow below links to get started.
Branch out from dev
for any development.
Totally new to flutter? Get started here
The project supports FVM to ensure all developers are using the same Flutter version. Install and configure FVM, then run fvm install
in the project root directory. You will need to reload your IDE for the change to take effect.
## Code generation
This project uses build_runner
for code generation. Generated code is not checked in to source control, so you'll need to run the code generator locally to ensure you stay up-to-date.
You can either run code generation once:
dart run build_runner build
Or you can use watch
to automatically run code generation whenever you save a file:
dart run build_runner watch
The project includes Widgetbook, which allows us to preview widgets in isolation for development and UI testing.
It is recommended to run Widgetbook in macOS or Chrome.
- To add text to an application, put a key-value pair in a file lib/lang/en.json and run:
flutter pub run easy_localization:generate --source-dir lib/lang -O lib/lang/gen
- And after that run:
flutter pub run easy_localization:generate -f keys --source-dir lib/lang -O lib/lang/gen -o locale_keys.g.dart
- And use in code:
LocaleKeys.you_new_key.tr();
- Generate models:
flutter packages pub run build_runner build --delete-conflicting-outputs