update about page, add share button but not working

This commit is contained in:
2024-10-25 16:37:20 +05:30
parent ca13f575a2
commit fdff2bcfee
10 changed files with 135 additions and 67 deletions

View File

@@ -73,6 +73,8 @@ class GlobalModel extends ChangeNotifier {
String rawHash = md5.convert(utf8.encode(rawData)).toString();
if (remoteHash != rawHash) {
print("Local data is out of date, updating local");
print("Old Hash: $rawHash");
print("New Hash: $remoteHash");
// Donwload new data and save it.
rawData = await getLatestData();
Map returnData = jsonDecode(rawData);