mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-30 03:19:11 +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) {
|
Widget _buildRow(BuildContext context, Note note) {
|
||||||
var textTheme = Theme.of(context).textTheme;
|
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);
|
Widget titleWidget = Text(title, style: textTheme.title);
|
||||||
if (title.isEmpty) {
|
if (title.isEmpty) {
|
||||||
var date = note.modified ?? note.created ?? note.fileLastModified;
|
var date = note.modified ?? note.created ?? note.fileLastModified;
|
||||||
|
Reference in New Issue
Block a user