mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 18:03:14 +08:00
JournalList: Show the filename as the title when no metadata is allowed
Fixes #72
This commit is contained in:
@ -144,7 +144,7 @@ class _JournalListState extends State<JournalList> {
|
||||
|
||||
Widget _buildRow(BuildContext context, Note note) {
|
||||
var textTheme = Theme.of(context).textTheme;
|
||||
var title = note.title;
|
||||
var title = note.canHaveMetadata ? note.title : note.fileName;
|
||||
Widget titleWidget = Text(title, style: textTheme.title);
|
||||
if (title.isEmpty) {
|
||||
var date = note.modified ?? note.created ?? note.fileLastModified;
|
||||
|
Reference in New Issue
Block a user