Show +1 notification badge after user has made a journal entry

This commit is contained in:
Vishesh Handa
2019-02-14 01:11:35 +01:00
parent c9ddf67e46
commit 6fea27e0ca
3 changed files with 7 additions and 1 deletions

View File

@ -97,6 +97,7 @@ class StateContainerState extends State<StateContainer> {
setState(() {
appState.isLoadingFromDisk = false;
appState.notes = loadedNotes;
appState.hasJournalEntries = loadedNotes.isNotEmpty;
});
}).catchError((err, stack) {
setState(() {
@ -121,6 +122,7 @@ class StateContainerState extends State<StateContainer> {
setState(() {
appState.isLoadingFromDisk = false;
appState.notes = loadedNotes;
appState.hasJournalEntries = loadedNotes.isNotEmpty;
});
} catch (err, stack) {
setState(() {