diff --git a/lib/screens/home_screen.dart b/lib/screens/home_screen.dart index f2504dd7..104b4c91 100644 --- a/lib/screens/home_screen.dart +++ b/lib/screens/home_screen.dart @@ -33,6 +33,7 @@ class HomeScreen extends StatelessWidget { ); Navigator.of(context).push(route); }, + emptyText: "Why not add your first\n Journal Entry?", ); bool shouldShowBadge = @@ -141,6 +142,7 @@ class NoteSearch extends SearchDelegate<Note> { ); Navigator.of(context).push(route); }, + emptyText: "No Search Results Found", ); return journalList; } diff --git a/lib/widgets/journal_list.dart b/lib/widgets/journal_list.dart index f9aae047..1d483d5c 100644 --- a/lib/widgets/journal_list.dart +++ b/lib/widgets/journal_list.dart @@ -12,10 +12,12 @@ typedef void NoteSelectedFunction(int noteIndex); class JournalList extends StatelessWidget { final NoteSelectedFunction noteSelectedFunction; final List<Note> notes; + final String emptyText; JournalList({ @required this.notes, @required this.noteSelectedFunction, + @required this.emptyText, }); @override @@ -23,7 +25,7 @@ class JournalList extends StatelessWidget { if (notes.isEmpty) { return Center( child: Text( - "Why not add your first\n Journal Entry?", + emptyText, textAlign: TextAlign.center, style: TextStyle( fontSize: 28.0,