Offline Support

This commit is contained in:
2026-04-27 06:20:39 +08:00
parent 7d8851a94a
commit 48cd3bcd60
121 changed files with 14798 additions and 2214 deletions
+5 -1
View File
@@ -682,7 +682,11 @@ class _ScheduleTile extends ConsumerWidget {
ref.invalidate(dutySchedulesProvider);
} catch (e) {
if (!context.mounted) return;
showErrorSnackBar(context, 'Update failed: $e');
if (isOfflineSaveError(e)) {
showSuccessSnackBar(context, 'Schedule saved offline — will sync when connected.');
} else {
showErrorSnackBar(context, 'Update failed: $e');
}
}
}