mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 18:38:36 +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;
|
var title = note.title;
|
||||||
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;
|
var date = note.modified ?? note.created ?? note.fileLastModified;
|
||||||
if (date != null) {
|
if (date != null) {
|
||||||
var formatter = DateFormat('dd MMM, yyyy ');
|
var formatter = DateFormat('dd MMM, yyyy ');
|
||||||
var dateStr = formatter.format(date);
|
var dateStr = formatter.format(date);
|
||||||
|
Reference in New Issue
Block a user