pull/420/head
Erick Zanardo 3 years ago
parent 639f59af82
commit 1fce43bbcc

@ -231,11 +231,13 @@ class _MovePageArrow extends PositionComponent {
bool get active => children.whereType<ArrowIcon>().isNotEmpty;
set active(bool value) {
if (value) {
add(ArrowIcon(
add(
ArrowIcon(
position: Vector2.zero(),
direction: direction,
onTap: onTap,
),);
),
);
} else {
firstChild<ArrowIcon>()?.removeFromParent();
}

Loading…
Cancel
Save