Fixing game crashes on web

This commit is contained in:
Erick Zanardo
2020-06-30 23:36:47 -03:00
parent 9f9aa7362a
commit c60e039f06
4 changed files with 34 additions and 25 deletions

View File

@ -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();
}