mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Fix all dart analyze warnings in the Flutter frontend
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
cb2b3c6af7
commit
f34dfe8386
@@ -15,10 +15,12 @@ class FriendlyDateFormatter {
|
||||
);
|
||||
|
||||
if (timeSince.inMinutes < 60) return '${timeSince.inMinutes} minutes ago';
|
||||
if (dateTimeWithoutTime == today)
|
||||
if (dateTimeWithoutTime == today) {
|
||||
return 'Today at ${DateFormat.Hm().format(dateTime)}';
|
||||
if (dateTimeWithoutTime == yesterday)
|
||||
}
|
||||
if (dateTimeWithoutTime == yesterday) {
|
||||
return 'Yesterday at ${DateFormat.Hm().format(dateTime)}';
|
||||
}
|
||||
|
||||
return DateFormat.yMMMMd().add_Hm().format(dateTime);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user