7/10/2
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user