JournalListing: Show Folder name in title

This commit is contained in:
Vishesh Handa
2019-12-05 17:38:40 +01:00
parent 47f417ab3a
commit 7d223509c8

View File

@ -45,9 +45,11 @@ class JournalListingScreen extends StatelessWidget {
emptyText: "Why not add your first\n Journal Entry?", emptyText: "Why not add your first\n Journal Entry?",
); );
var title = notesFolder.parent == null ? "Notes" : notesFolder.name;
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
title: const Text('GitJournal'), title: Text(title),
leading: GJAppBarMenuButton(), leading: GJAppBarMenuButton(),
actions: <Widget>[ actions: <Widget>[
IconButton( IconButton(