896 B
896 B
Setup
Backend Base URL
Build-time (recommended):
flutter run --dart-define=BACKEND_BASE_URL=https://api.example.com
Runtime override (for future settings screens):
AppConfig.overrideBackendBaseUrl('https://staging.example.com');
Run With Fake Gateway
Use fake gateway for local/offline development:
flutter run --dart-define=USE_FAKE_BACKEND=true
Local Persistence Backend
Default local store:
Hive(USE_HIVE_LOCAL_DB=trueby default)- first-run migration imports legacy
shared_preferencespayload when present
Optional migration path:
flutter run --dart-define=USE_HIVE_LOCAL_DB=true
Use legacy mode explicitly if needed:
flutter run --dart-define=USE_HIVE_LOCAL_DB=false
Run Tests
flutter test
Generate Code
dart run build_runner build --delete-conflicting-outputs