File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import '../../constants/paddings.dart';
1010import '../../constants/sizes.dart' ;
1111import '../../enums/swipe_direction.dart' ;
1212import '../../extensions/color_extension.dart' ;
13+ import '../../extensions/date_time_extensions.dart' ;
1314import '../../preferences/enums/bin_swipe_action.dart' ;
1415import '../../preferences/enums/layout.dart' ;
1516import '../../preferences/enums/swipe_action.dart' ;
@@ -163,6 +164,7 @@ class _NoteTileState extends ConsumerState<NoteTile> {
163164 final layout = ref.watch (preferencesProvider.select ((preferences) => preferences.layout));
164165
165166 final bodyMediumTextTheme = Theme .of (context).textTheme.bodyMedium;
167+ final labelSmallTextTheme = Theme .of (context).textTheme.labelSmall;
166168
167169 final showTitle =
168170 // Do not show only the title and the preview content is not empty
@@ -200,6 +202,15 @@ class _NoteTileState extends ConsumerState<NoteTile> {
200202 ? Theme .of (context).textTheme.titleLarge
201203 : Theme .of (context).textTheme.titleMedium,
202204 ),
205+ // Date
206+ Text (
207+ widget.note.editedTime.yMMMMd_at_Hm,
208+ maxLines: 1 ,
209+ overflow: TextOverflow .ellipsis,
210+ style: labelSmallTextTheme? .copyWith (
211+ color: labelSmallTextTheme.color? .subdued,
212+ ),
213+ ),
203214 // Subtitle
204215 if (showTitle)
205216 Text (
You can’t perform that action at this time.
0 commit comments