From 79e58cbb9d4e7d2ca387cecd716c54d6c653bc5d Mon Sep 17 00:00:00 2001 From: Thiago Carvalho <32248947+thiagocarvalhodev@users.noreply.github.com> Date: Thu, 26 Sep 2024 15:58:32 -0300 Subject: [PATCH] Update drive_detail_page.dart fix mobile view --- lib/pages/drive_detail/drive_detail_page.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pages/drive_detail/drive_detail_page.dart b/lib/pages/drive_detail/drive_detail_page.dart index 6c9485627..1441c48b3 100644 --- a/lib/pages/drive_detail/drive_detail_page.dart +++ b/lib/pages/drive_detail/drive_detail_page.dart @@ -27,6 +27,7 @@ import 'package:ardrive/core/activity_tracker.dart'; import 'package:ardrive/dev_tools/app_dev_tools.dart'; import 'package:ardrive/dev_tools/shortcut_handler.dart'; import 'package:ardrive/download/multiple_file_download_modal.dart'; +import 'package:ardrive/l11n/l11n.dart'; import 'package:ardrive/misc/resources.dart'; import 'package:ardrive/models/models.dart'; import 'package:ardrive/pages/drive_detail/components/drive_explorer_item_tile.dart'; @@ -45,7 +46,6 @@ import 'package:ardrive/sync/domain/cubit/sync_cubit.dart'; import 'package:ardrive/utils/app_localizations_wrapper.dart'; import 'package:ardrive/utils/compare_alphabetically_and_natural.dart'; import 'package:ardrive/utils/filesize.dart'; -import 'package:ardrive/utils/format_date.dart'; import 'package:ardrive/utils/logger.dart'; import 'package:ardrive/utils/mobile_screen_orientation.dart'; import 'package:ardrive/utils/mobile_status_bar.dart'; @@ -967,7 +967,7 @@ class ArDriveItemListTile extends StatelessWidget { ], Flexible( child: Text( - 'Last updated: ${formatDateToUtcString(item.lastUpdated)}', + 'Last updated: ${yMMdDateFormatter.format(item.lastUpdated)}', style: ArDriveTypography.body.xSmallRegular( color: ArDriveTheme.of(context) .themeData @@ -1382,7 +1382,7 @@ class ArDriveGridItem extends StatelessWidget { // last updated Flexible( child: Text( - '${appLocalizationsOf(context).lastUpdated}: ${formatDateToUtcString(item.lastUpdated)}', + '${appLocalizationsOf(context).lastUpdated}: ${yMMdDateFormatter.format(item.lastUpdated)}', style: ArDriveTypography.body .xSmallRegular() .copyWith(