From 0046aeecce76d9de6f18884b00b0976b27f1692d Mon Sep 17 00:00:00 2001
From: Czarek Nakamoto <cyjan@mrcyjanek.net>
Date: Mon, 17 Mar 2025 18:27:10 +0100
Subject: [PATCH] fix asset loader trying to load empty string

---
 lib/src/widgets/picker.dart | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/src/widgets/picker.dart b/lib/src/widgets/picker.dart
index ed5c05be6..14d8b9cf1 100644
--- a/lib/src/widgets/picker.dart
+++ b/lib/src/widgets/picker.dart
@@ -503,7 +503,7 @@ class _PickerState<Item> extends State<Picker<Item>> {
 
   Widget? _getItemIcon(Item item) {
     if (item is Currency) {
-      if (item.iconPath != null) {
+      if (item.iconPath != null && item.iconPath != "") {
         return Image.asset(
           item.iconPath!,
           height: 20.0,