feat: add no image found icon and update references

taha_dev
taha 2 days ago
parent 2a8e9ec2fb
commit f2bf8edeb2

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="120" height="120" fill="#EFF1F3"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M33.2503 38.4816C33.2603 37.0472 34.4199 35.8864 35.8543 35.875H83.1463C84.5848 35.875 85.7503 37.0431 85.7503 38.4816V80.5184C85.7403 81.9528 84.5807 83.1136 83.1463 83.125H35.8543C34.4158 83.1236 33.2503 81.957 33.2503 80.5184V38.4816ZM80.5006 41.1251H38.5006V77.8751L62.8921 53.4783C63.9172 52.4536 65.5788 52.4536 66.6039 53.4783L80.5006 67.4013V41.1251ZM43.75 51.6249C43.75 54.5244 46.1005 56.8749 49 56.8749C51.8995 56.8749 54.25 54.5244 54.25 51.6249C54.25 48.7254 51.8995 46.3749 49 46.3749C46.1005 46.3749 43.75 48.7254 43.75 51.6249Z" fill="#687787"/>
</svg>

After

Width:  |  Height:  |  Size: 892 B

@ -400,6 +400,7 @@ class AppAssets {
static const String descriptionIcon = '$svgBasePath/description_icon.svg'; static const String descriptionIcon = '$svgBasePath/description_icon.svg';
static const String selectImageIcon = '$svgBasePath/select_image_icon.svg'; static const String selectImageIcon = '$svgBasePath/select_image_icon.svg';
static const String patientQRCodeIcon = '$svgBasePath/patient_qr_code_icon.svg'; static const String patientQRCodeIcon = '$svgBasePath/patient_qr_code_icon.svg';
static const String noImageFound = '$svgBasePath/no_image_found.svg';
// PNGS // // PNGS //
static const String hmgLogo = '$pngBasePath/hmg_logo.png'; static const String hmgLogo = '$pngBasePath/hmg_logo.png';

@ -863,7 +863,7 @@ class Utils {
return Utils.buildSvgWithAssets( return Utils.buildSvgWithAssets(
width: width ?? 24.w, width: width ?? 24.w,
height: height ?? 24.h, height: height ?? 24.h,
icon: AppAssets.no_visit_icon, icon: AppAssets.noImageFound,
); );
} }
final iconH = height ?? 24.h; final iconH = height ?? 24.h;
@ -877,7 +877,7 @@ class Utils {
errorBuilder: errorBuilder ?? errorBuilder: errorBuilder ??
(_, __, ___) { (_, __, ___) {
//todo_section change the error builder icon that it is returning //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);
}, },
), ),
); );

Loading…
Cancel
Save