mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +08:00
JournalList: Use fileLastModified when no modified/created available
This commit is contained in:
@ -147,7 +147,7 @@ class _JournalListState extends State<JournalList> {
|
||||
var title = note.title;
|
||||
Widget titleWidget = Text(title, style: textTheme.title);
|
||||
if (title.isEmpty) {
|
||||
var date = note.modified ?? note.created;
|
||||
var date = note.modified ?? note.created ?? note.fileLastModified;
|
||||
if (date != null) {
|
||||
var formatter = DateFormat('dd MMM, yyyy ');
|
||||
var dateStr = formatter.format(date);
|
||||
|
Reference in New Issue
Block a user