Fixes crash in Flutter Sprites label (#3942)

This commit is contained in:
Viktor Lidholt 2016-05-16 13:40:14 -07:00
parent 7d2519f073
commit e1e773af4f

View File

@ -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;