mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Fixes crash in Flutter Sprites label (#3942)
This commit is contained in:
parent
7d2519f073
commit
e1e773af4f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user