From 7d223509c8da177de4c036fb308f27e36ec167e1 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Thu, 5 Dec 2019 17:38:40 +0100 Subject: [PATCH] JournalListing: Show Folder name in title --- lib/screens/journal_listing.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/screens/journal_listing.dart b/lib/screens/journal_listing.dart index 2d680a1c..540a3e44 100644 --- a/lib/screens/journal_listing.dart +++ b/lib/screens/journal_listing.dart @@ -45,9 +45,11 @@ class JournalListingScreen extends StatelessWidget { emptyText: "Why not add your first\n Journal Entry?", ); + var title = notesFolder.parent == null ? "Notes" : notesFolder.name; + return Scaffold( appBar: AppBar( - title: const Text('GitJournal'), + title: Text(title), leading: GJAppBarMenuButton(), actions: [ IconButton(