diff --git a/lib/views/advertisement/components/ads_list_widget.dart b/lib/views/advertisement/components/ads_list_widget.dart index 3f20576..7b4ffc1 100644 --- a/lib/views/advertisement/components/ads_list_widget.dart +++ b/lib/views/advertisement/components/ads_list_widget.dart @@ -281,24 +281,24 @@ class _AdCardState extends State { // Utils.statusContainerChip(text: adDetails.statuslabel ?? "", chipColor: Utils.getChipColorByAdStatus(adDetails.adPostStatus!)), // ], if (isAdsFragment && - adDetails.adPostStatus! == AdPostStatus.sold && - adDetails.statuslabel != null && - adDetails.statuslabel!.isNotEmpty) ...[ + widget.adDetails.adPostStatus! == AdPostStatus.sold && + widget.adDetails.statuslabel != null && + widget.adDetails.statuslabel!.isNotEmpty) ...[ Utils.statusContainerChip( text: isArabic - ? (adDetails.statuslabelN ?? "") - : (adDetails.statuslabel ?? ""), - chipColor: Utils.getChipColorByAdStatus(adDetails.adPostStatus!), + ? (widget.adDetails.statuslabelN ?? "") + : (widget.adDetails.statuslabel ?? ""), + chipColor: Utils.getChipColorByAdStatus(widget.adDetails.adPostStatus!), ), ] else if (isAdsFragment && !context.read().isExploreAdsTapped && - adDetails.statuslabel != null && - adDetails.statuslabel!.isNotEmpty) ...[ + widget.adDetails.statuslabel != null && + widget.adDetails.statuslabel!.isNotEmpty) ...[ Utils.statusContainerChip( text: isArabic - ? (adDetails.statuslabelN ?? "") - : (adDetails.statuslabel ?? ""), - chipColor: Utils.getChipColorByAdStatus(adDetails.adPostStatus!), + ? (widget.adDetails.statuslabelN ?? "") + : (widget.adDetails.statuslabel ?? ""), + chipColor: Utils.getChipColorByAdStatus(widget.adDetails.adPostStatus!), ), ], // Show Accident Free chip for explore ads when isAccidentFree is true diff --git a/pubspec.lock b/pubspec.lock index 516fca5..8a3bd1e 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -93,10 +93,10 @@ packages: dependency: transitive description: name: characters - sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 + sha256: faf38497bda5ead2a8c7615f4f7939df04333478bf32e4173fcb06d428b5716b url: "https://pub.dev" source: hosted - version: "1.4.0" + version: "1.4.1" clock: dependency: transitive description: @@ -817,26 +817,26 @@ packages: dependency: transitive description: name: matcher - sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 + sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861 url: "https://pub.dev" source: hosted - version: "0.12.17" + version: "0.12.19" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec + sha256: "9c337007e82b1889149c82ed242ed1cb24a66044e30979c44912381e9be4c48b" url: "https://pub.dev" source: hosted - version: "0.11.1" + version: "0.13.0" meta: dependency: transitive description: name: meta - sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c + sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349" url: "https://pub.dev" source: hosted - version: "1.16.0" + version: "1.18.0" mime: dependency: transitive description: @@ -1286,10 +1286,10 @@ packages: dependency: transitive description: name: test_api - sha256: "522f00f556e73044315fa4585ec3270f1808a4b186c936e612cab0b565ff1e00" + sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e" url: "https://pub.dev" source: hosted - version: "0.7.6" + version: "0.7.11" timezone: dependency: transitive description: @@ -1483,5 +1483,5 @@ packages: source: hosted version: "6.5.0" sdks: - dart: ">=3.8.0-0 <4.0.0" + dart: ">=3.10.0-0 <4.0.0" flutter: ">=3.24.0"