From f6672234f907bf2670ef5a3178964cf0f0221410 Mon Sep 17 00:00:00 2001 From: Denis Gladky Date: Mon, 9 Oct 2023 16:08:10 +0300 Subject: [PATCH] Update packages/flame/lib/src/components/input/advanced_button_component.dart Co-authored-by: Lukas Klingsbo --- .../lib/src/components/input/advanced_button_component.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flame/lib/src/components/input/advanced_button_component.dart b/packages/flame/lib/src/components/input/advanced_button_component.dart index cbd709923cf..01798e3ef9f 100644 --- a/packages/flame/lib/src/components/input/advanced_button_component.dart +++ b/packages/flame/lib/src/components/input/advanced_button_component.dart @@ -209,7 +209,7 @@ class AdvancedButtonComponent extends PositionComponent } @protected - void addSkin(ButtonState state) { + void setSkin(ButtonState state) { (skinsMap[state] ?? defaultSkin)?.parent = skinContainer; }