mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 04:18:25 +08:00
Fixing game crashes on web
This commit is contained in:
@ -27,8 +27,8 @@ class TextComponent extends PositionComponent {
|
||||
_updateBox();
|
||||
}
|
||||
|
||||
TextComponent(this._text, {TextConfig config = const TextConfig()}) {
|
||||
_config = config;
|
||||
TextComponent(this._text, {TextConfig config }) {
|
||||
_config = config ?? TextConfig();
|
||||
_updateBox();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user