From 16788bf9b21f33d0d867b864866ac26e433ee2bf Mon Sep 17 00:00:00 2001 From: Faiz Hashmi Date: Tue, 30 Jul 2024 10:25:13 +0300 Subject: [PATCH 1/2] added getTimeAgo on request page --- lib/views/requests/request_detail_page.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/views/requests/request_detail_page.dart b/lib/views/requests/request_detail_page.dart index 8656a29..efb65cb 100644 --- a/lib/views/requests/request_detail_page.dart +++ b/lib/views/requests/request_detail_page.dart @@ -228,7 +228,11 @@ class RequestDetailPage extends StatelessWidget { "${requestDetail.city ?? ""} ${requestDetail.countryName}".toText( color: MyColors.lightTextColor, ), - requestDetail.createdOn.getTimeAgo().toText(color: MyColors.lightTextColor), + if (requestDetail.createdOn != null) ...[ + DateTime.parse(requestDetail.createdOn!).getTimeAgo().toText( + color: MyColors.lightTextColor, + ), + ], ], ), ], @@ -254,7 +258,7 @@ class RequestDetailPage extends StatelessWidget { Row( children: [ Utils.statusContainerChip( - text: (LocaleKeys.offer.tr() + "${requestDetail.requestStatusName}"), + text: ("${LocaleKeys.offer.tr()} ${requestDetail.requestStatusName}"), chipColor: MyColors.grey98Color.withOpacity(0.3), textColor: MyColors.lightTextColor, ), From 4c6a7f51c6de71fde7727a2b46559f2ea9a0784e Mon Sep 17 00:00:00 2001 From: Faiz Hashmi Date: Tue, 30 Jul 2024 10:35:16 +0300 Subject: [PATCH 2/2] path: /Volumes/Data/Projects/Flutter/car_common_app added --- pubspec.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index c9d71d3..5e34888 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -40,7 +40,8 @@ dependencies: # path: C:/Users/mirza.shafique/AndroidStudioProjects/mc_common_app mc_common_app: - path: /Users/amir/StudioProjects/car_common_app + # path: /Users/amir/StudioProjects/car_common_app + path: /Volumes/Data/Projects/Flutter/car_common_app