Add some FIXMEs

This commit is contained in:
Vishesh Handa
2020-01-31 16:17:30 +01:00
parent 95dce61479
commit f9a2f4c875
2 changed files with 2 additions and 0 deletions

View File

@ -125,6 +125,7 @@ class Note with ChangeNotifier implements Comparable<Note> {
return _loadState;
}
// FIXME: This could throw an exception!
final string = await file.readAsString();
data = _serializer.decode(string);

View File

@ -96,6 +96,7 @@ class NotesFolder with ChangeNotifier implements Comparable<NotesFolder> {
// FIXME: This asynchronously loads everything. Maybe it should just list them, and the individual _entities
// should be loaded as required?
// FIXME: This loads everything in one go. In some cases there can be too many files open and we hit the limit.
Future<void> loadRecursively() async {
await load();
_entities.forEach((e) {