refactor: Update Note and Category models to use 'id' instead of 'uuid', and adjust related database operations
- Changed 'uuid' to 'id' in Note and Category models for consistency. - Updated database operations in NoteRepository to reflect the new 'id' field. - Modified sync models to accommodate changes in Note and Category structures. - Adjusted the handling of notes and categories during synchronization. - Refactored the note editor and home screen to use the new 'id' field. - Ensured that the 'isDirty' flag is properly set and utilized across models.
This commit is contained in:
+2
-2
@@ -753,14 +753,14 @@ class _NotesAppState extends State<NotesApp>
|
||||
}
|
||||
});
|
||||
}
|
||||
} catch (e) {
|
||||
} catch (e, st) {
|
||||
if (!mounted) {
|
||||
return;
|
||||
}
|
||||
|
||||
setState(() {
|
||||
_syncStatus = SyncStatus.error;
|
||||
_syncErrorMessage = e.toString();
|
||||
_syncErrorMessage = '$e\n\nStackTrace: $st';
|
||||
_syncProgress = null;
|
||||
_syncDetailMessage = null;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user