From 4c5fb5a7b2b594de7e8f644229028571593ef687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Den=C3=A8le?= Date: Thu, 3 Oct 2024 15:28:09 +0200 Subject: [PATCH] Fallback to the shadow value of the IconTheme --- lib/src/decorated_icon.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/decorated_icon.dart b/lib/src/decorated_icon.dart index 35f9d70..9f54437 100644 --- a/lib/src/decorated_icon.dart +++ b/lib/src/decorated_icon.dart @@ -23,7 +23,7 @@ class DecoratedIcon extends StatelessWidget { final iconOpacity = iconTheme.opacity ?? 1.0; final border = decoration?.border; final gradient = decoration?.gradient; - final shadows = icon.shadows; + final shadows = icon.shadows ?? iconTheme.shadows; Color iconColor = icon.color ?? iconTheme.color!; if (iconOpacity != 1.0) {