Skip to content

Commit 61fba97

Browse files
authored
#1412 we should be calling mergeMaps instead of just overriding as mergeMaps takes care of nested style properties recursively (#1413)
Co-authored-by: kmahmood74 <[email protected]>
1 parent 138f520 commit 61fba97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/framework/theme_manager.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ class EnsembleTheme {
268268
String key = '.$className'; // Prepend '.' to match the style keys
269269
var classStyle = styles[key];
270270
if (classStyle != null) {
271-
resolvedStyles = {...resolvedStyles, ...classStyle};
271+
resolvedStyles = mergeMaps(resolvedStyles, classStyle);
272272
}
273273
}
274274
return resolvedStyles;

0 commit comments

Comments
 (0)