Commit e1e773af authored by Viktor Lidholt's avatar Viktor Lidholt

Fixes crash in Flutter Sprites label (#3942)

parent 7d2519f0
......@@ -37,6 +37,7 @@ class Label extends Node {
if (_painter == null) {
_painter = new TextPainter(text: new TextSpan(style: _textStyle, text: _text))
..layout();
_width = _painter.size.width;
}
Offset offset = Offset.zero;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment