|
|
@ -156,10 +156,11 @@ class TextLine extends StatelessWidget { |
|
|
|
double fontSize = double.tryParse(size.value); |
|
|
|
double fontSize = double.tryParse(size.value); |
|
|
|
if (fontSize != null) { |
|
|
|
if (fontSize != null) { |
|
|
|
res = res.merge(TextStyle(fontSize: fontSize)); |
|
|
|
res = res.merge(TextStyle(fontSize: fontSize)); |
|
|
|
} else |
|
|
|
} else { |
|
|
|
throw "Invalid size ${size.value}"; |
|
|
|
throw "Invalid size ${size.value}"; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Attribute color = textNode.style.attributes[Attribute.color.key]; |
|
|
|
Attribute color = textNode.style.attributes[Attribute.color.key]; |
|
|
|
if (color != null && color.value != null) { |
|
|
|
if (color != null && color.value != null) { |
|
|
|