diff --git a/lib/presentation/shared/circle_character.dart b/lib/presentation/shared/circle_character.dart index ac0631f57..510080616 100644 --- a/lib/presentation/shared/circle_character.dart +++ b/lib/presentation/shared/circle_character.dart @@ -24,7 +24,7 @@ class CircleCharacter extends StatelessWidget { return CircleItem( image: image, forDrag: forDrag, - onTap: (_) => _gotoCharacterPage(context), + onTap: (img) => onTap != null ? onTap(img) : _gotoCharacterPage(context), radius: radius, ); } diff --git a/lib/presentation/shared/circle_weapon.dart b/lib/presentation/shared/circle_weapon.dart index 02a190da6..c01f62209 100644 --- a/lib/presentation/shared/circle_weapon.dart +++ b/lib/presentation/shared/circle_weapon.dart @@ -25,7 +25,7 @@ class CircleWeapon extends StatelessWidget { image: image, radius: radius, forDrag: forDrag, - onTap: (_) => _gotoWeaponPage(context), + onTap: (img) => onTap != null ? onTap(img) : _gotoWeaponPage(context), ); }