From f2bf8edeb2f6d418c0edb4459f98c2ad53d59f9a Mon Sep 17 00:00:00 2001 From: taha Date: Sun, 16 Aug 2026 15:40:22 +0300 Subject: [PATCH] feat: add no image found icon and update references --- assets/images/svg/no_image_found.svg | 5 +++++ lib/core/app_assets.dart | 1 + lib/core/utils/utils.dart | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 assets/images/svg/no_image_found.svg diff --git a/assets/images/svg/no_image_found.svg b/assets/images/svg/no_image_found.svg new file mode 100644 index 00000000..faea08cd --- /dev/null +++ b/assets/images/svg/no_image_found.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/lib/core/app_assets.dart b/lib/core/app_assets.dart index b4611890..1aed020e 100644 --- a/lib/core/app_assets.dart +++ b/lib/core/app_assets.dart @@ -400,6 +400,7 @@ class AppAssets { static const String descriptionIcon = '$svgBasePath/description_icon.svg'; static const String selectImageIcon = '$svgBasePath/select_image_icon.svg'; static const String patientQRCodeIcon = '$svgBasePath/patient_qr_code_icon.svg'; + static const String noImageFound = '$svgBasePath/no_image_found.svg'; // PNGS // static const String hmgLogo = '$pngBasePath/hmg_logo.png'; diff --git a/lib/core/utils/utils.dart b/lib/core/utils/utils.dart index c69c2146..b4e91854 100644 --- a/lib/core/utils/utils.dart +++ b/lib/core/utils/utils.dart @@ -863,7 +863,7 @@ class Utils { return Utils.buildSvgWithAssets( width: width ?? 24.w, height: height ?? 24.h, - icon: AppAssets.no_visit_icon, + icon: AppAssets.noImageFound, ); } final iconH = height ?? 24.h; @@ -877,7 +877,7 @@ class Utils { errorBuilder: errorBuilder ?? (_, __, ___) { //todo_section change the error builder icon that it is returning - return Utils.buildSvgWithAssets(width: iconW, height: iconH, icon: AppAssets.no_visit_icon); + return Utils.buildSvgWithAssets(width: iconW, height: iconH, icon: AppAssets.noImageFound); }, ), );