| .. | ||
| android | ||
| assets/brand | ||
| integration_test | ||
| ios | ||
| lib | ||
| test | ||
| web | ||
| .gitignore | ||
| .metadata | ||
| analysis_options.yaml | ||
| dart_defines.dev.example.json | ||
| dart_defines.prod.example.json | ||
| devtools_options.yaml | ||
| pubspec.lock | ||
| pubspec.yaml | ||
| README.md | ||
| TESTING.md | ||
Tloto Mobile
API URL (compile-time)
API_BASE_URL is set via --dart-define / --dart-define-from-file.
| Build | Default without dart-define |
|---|---|
Release (flutter build apk --release) |
http://prediqo.redirectme.net:9080 |
| Debug / emulator | http://10.0.2.2:9080 |
Local device / custom host
- Copy
dart_defines.dev.example.json→dart_defines.dev.json - Set your API base, e.g.
http://prediqo.redirectme.net:9080orhttp://<PC_LAN_IP>:9080
flutter run --dart-define-from-file=dart_defines.dev.json
Release APK (production)
# Uses built-in production default, or pin explicitly:
flutter build apk --release --dart-define-from-file=dart_defines.prod.example.json
Output: build/app/outputs/flutter-apk/app-release.apk
An older APK built with only the emulator default (10.0.2.2) cannot reach the VPS — rebuild and reinstall.