Offline Support
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user