| .. | ||
| 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) |
https://tloto.net |
| 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.
https://tloto.netorhttp://<PC_LAN_IP>:9080
flutter run --dart-define-from-file=dart_defines.dev.json
Release APK (production)
flutter build apk --release --dart-define-from-file=dart_defines.prod.example.json
Output: build/app/outputs/flutter-apk/app-release.apk
Older APKs built with redirectme, :9443, or 10.0.2.2 must be rebuilt for https://tloto.net.