Set some save button progress bar and toast message

This commit is contained in:
fhkhd
2024-01-28 03:27:43 +03:30
parent f07050c299
commit 8cb5900977
15 changed files with 610 additions and 505 deletions
+12
View File
@@ -18,6 +18,18 @@ class Auth with ChangeNotifier {
return token != null;
}
bool isloading = false;
void resetLoading() {
isloading = false;
notifyListeners();
}
void setLoading() {
isloading = true;
notifyListeners();
}
String? get token {
if (_expiaryDate != null &&
_expiaryDate!.isAfter(DateTime.now()) &&