This commit is contained in:
Hamza-Ayed
2024-07-10 20:54:27 +03:00
parent 43eb600fbf
commit a90ffd8050
10 changed files with 64 additions and 33 deletions

View File

@@ -18,15 +18,14 @@ class SplashScreenController extends GetxController
late Animation<double> zoomOutAnimation;
String packageInfo = '';
late String version = '1.5.48';
Future<void> checkForUpdate() async {
final packageInfo = await PackageInfo.fromPlatform();
final currentVersion = packageInfo.buildNumber;
final version1 = packageInfo.version;
print('currentVersion is : $currentVersion');
// Fetch the latest version from your server
version = version1.toString();
print('version: ${version}');
update();
}