mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-09-15 07:53:13 +08:00
Show +1 notification badge after user has made a journal entry
This commit is contained in:
@ -33,9 +33,11 @@ class HomeScreen extends StatelessWidget {
|
||||
},
|
||||
);
|
||||
|
||||
bool shouldShowBadge =
|
||||
!appState.remoteGitRepoConfigured && appState.hasJournalEntries;
|
||||
var appBarMenuButton = BadgeIconButton(
|
||||
icon: const Icon(Icons.menu),
|
||||
itemCount: appState.remoteGitRepoConfigured ? 0 : 1,
|
||||
itemCount: shouldShowBadge ? 1 : 0,
|
||||
onPressed: () {
|
||||
_scaffoldKey.currentState.openDrawer();
|
||||
},
|
||||
|
Reference in New Issue
Block a user