Generated by the Very Good CLI 🤖
Loopy — a cross-platform desktop loopstation with a native low-latency audio engine
It can be driven hands-free from a USB MIDI foot controller — see docs/MIDI_FOOT_CONTROLLER.md.
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:
# Development
$ flutter run --flavor development --target lib/main_development.dart
# Staging
$ flutter run --flavor staging --target lib/main_staging.dart
# Production
$ flutter run --flavor production --target lib/main_production.dart*Loopy runs natively on macOS, Windows, and Linux.
On desktop, flavors select the entrypoint via
--target;--flavoronly namespaces the build-output directory (there is no per-flavor app identity). Pass the matching--target lib/main_<flavor>.dartas shown above.Linux notes (PipeWire backend, Focusrite/
scarlett2routing, renderer): see docs/RUNNING_ON_LINUX.md.
To run all unit and widget tests use the following command:
$ very_good test --coverage --test-randomize-ordering-seed randomTo view the generated coverage report you can use lcov.
# Generate Coverage Report
$ genhtml coverage/lcov.info -o coverage/
# Open Coverage Report
$ open coverage/index.htmlThis project uses the bloc_lint package to enforce best practices using bloc.
To validate linter errors, run
dart run bloc_tools:bloc lint .You can also validate with VSCode-based IDEs using the official bloc extension.
To learn more, visit https://bloclibrary.dev/lint/
This project follows the official internationalization guide for Flutter using ARB files for translations.
- To add a new localizable string, open the
app_en.arbfile atlib/l10n/arb/app_en.arband add a new key/value pair with the relevant description (optional):
{
"@@locale": "en",
"counterAppBarTitle": "Counter",
"@counterAppBarTitle": {
"description": "Text shown in the AppBar of the Counter Page"
},
"helloWorld": "Hello World",
"@helloWorld": {
"description": "Hello World greeting."
}
}
- Use the new string:
import 'package:loopy/l10n/l10n.dart';
@override
Widget build(BuildContext context) {
final l10n = context.l10n;
return Text(l10n.helloWorld);
}Update the CFBundleLocalizations array in the Info.plist at ios/Runner/Info.plist to include the new locale.
...
<key>CFBundleLocalizations</key>
<array>
<string>en</string>
<string>es</string>
</array>
...- 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 the new
.arbfile:
app_es.arb
{
"@@locale": "es",
"counterAppBarTitle": "Contador",
"@counterAppBarTitle": {
"description": "Texto mostrado en la AppBar de la página del contador"
},
"helloWorld": "Hola Mundo",
"@helloWorld": {
"description": "Saludo Hola Mundo."
}
}
To use the latest translations changes, you will need to generate them:
flutter gen-l10n --arb-dir="lib/l10n/arb"Alternatively, run flutter run and code generation will take place automatically.