improving splash

This commit is contained in:
2026-07-12 17:57:22 +02:00
parent f04fc15fb9
commit ea04dea7bc
4 changed files with 6 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ flutter run --dart-define=APP_ENV=live
```bash ```bash
flutter build web --dart-define=APP_ENV=live flutter build web --dart-define=APP_ENV=live
flutter build apk --dart-define=APP_ENV=live --dart-define=BASE_URL=https://payapi.velocityafrica.net/api flutter build apk --dart-define=APP_ENV=live --dart-define=BASE_URL=https://payapi.velocityafrica.net/api
flutter build appdundle --dart-define=APP_ENV=live --dart-define=BASE_URL=https://payapi.velocityafrica.net/api flutter build appbundle --dart-define-from-file=config.json
``` ```
### Quick pre-release checks ### Quick pre-release checks

4
config.json Normal file
View File

@@ -0,0 +1,4 @@
{
"APP_ENV": "live",
"BASE_URL": "https://payapi.velocityafrica.net/api"
}

View File

@@ -247,7 +247,6 @@ class _SplashScreenState extends State<SplashScreen>
/// user can install the latest version. No cache clearing needed. /// user can install the latest version. No cache clearing needed.
void _showMobileUpdateSheet(SplashProvider provider, String version) { void _showMobileUpdateSheet(SplashProvider provider, String version) {
final message = final message =
provider.updatePayload?['message']?.toString() ??
'A new version of the app is available. Please download the latest version from the store.'; 'A new version of the app is available. Please download the latest version from the store.';
final downloadUrl = provider.downloadUrl; final downloadUrl = provider.downloadUrl;

View File

@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts # In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix. # of the product and file versions while build-number is used as the build suffix.
version: 1.0.1+3 version: 1.0.2+4
environment: environment:
sdk: ^3.9.2 sdk: ^3.9.2