We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c07a0e3 commit fd42bfeCopy full SHA for fd42bfe
lib/src/styled_element.dart
@@ -188,7 +188,7 @@ StyledElement parseStyledElement(
188
ExpressionMapping.namedColorToColor(element.attributes['color']!) :
189
null,
190
fontFamily: element.attributes['face']?.split(",").first,
191
- fontSize: numberToFontSize(element.attributes['size'] ?? ''),
+ fontSize: element.attributes['size'] != null ? numberToFontSize(element.attributes['size']!) : null,
192
);
193
break;
194
case "h1":
0 commit comments