Skip to content

Commit

Permalink
Merge pull request #5 from SolidDevsKit/main
Browse files Browse the repository at this point in the history
Fallback to the shadows value of the IconTheme
  • Loading branch information
TesteurManiak authored Oct 7, 2024
2 parents f4d8292 + 79214b6 commit 81f90b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/decorated_icon.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 81f90b0

Please sign in to comment.