dynamic update

This commit is contained in:
hannathkadher
2024-10-14 11:11:11 +04:00
parent df3b3131be
commit 3f9bd10582
2 changed files with 22 additions and 9 deletions

View File

@ -26,6 +26,7 @@ class SpaceCardWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return GestureDetector(
behavior: HitTestBehavior.opaque,
onPanUpdate: (details) {
// Call the provided callback to update the position
onPanUpdate(index, details.delta);