Skip to content

Commit d90ffbd

Browse files
committed
Small refactor mergeFlutterTheme method
1 parent a1de658 commit d90ffbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/theme/sidebarx_theme.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ class SidebarXTheme {
9898
iconTheme: iconTheme ?? theme.iconTheme,
9999
selectedIconTheme: selectedIconTheme ??
100100
theme.iconTheme.copyWith(color: theme.primaryColor),
101-
hoverIconTheme: hoverIconTheme ??
102-
theme.iconTheme.copyWith(color: theme.primaryColor),
103101
textStyle: textStyle ?? theme.textTheme.bodyMedium,
104102
selectedTextStyle: selectedTextStyle ??
105103
theme.textTheme.bodyMedium?.copyWith(color: theme.primaryColor),
@@ -114,6 +112,8 @@ class SidebarXTheme {
114112
hoverColor: hoverColor ?? theme.hoverColor,
115113
hoverTextStyle: hoverTextStyle ??
116114
theme.textTheme.bodyMedium?.copyWith(color: theme.primaryColor),
115+
hoverIconTheme: hoverIconTheme ??
116+
theme.iconTheme.copyWith(color: theme.primaryColor),
117117
);
118118
return mergedTheme;
119119
}

0 commit comments

Comments
 (0)