Update: 2026-06-25 00:50:19

This commit is contained in:
Hamza-Ayed
2026-06-25 00:50:19 +03:00
parent 0671388e15
commit eeb4e21f87
12 changed files with 178 additions and 130 deletions

View File

@@ -22,7 +22,7 @@ Future<void> checkForUpdate(BuildContext context) async {
final version = packageInfo.version;
Log.print('currentVersion is : $currentVersion');
// Fetch the latest version from your server
String latestVersion = box.read(BoxName.package);
String latestVersion = box.read(BoxName.package)?.toString() ?? '';
box.write(BoxName.packagInfo, version);
if (latestVersion.isNotEmpty && latestVersion != currentVersion) {