You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's because these Buttons use InkWell, and InkWell uses a GestureDetector which prevents parent widgets from handling onTap (details here). The GestureDetector in the code below doesn't work.
:buttonIndexedBuilder!(_isSelected(i), i, context),
);
I have tried replacing GestureDetector.onTap with Listener.onPointerDown, but it couldn't distinguish long press events.
Finally I have to change button(Indexed)Builder to pass onTap argument as below:
When I use Button Widget such as FilledButton, ElevatedButton, etc., the internal selection event will not triggered.
It's because these Buttons use InkWell, and InkWell uses a GestureDetector which prevents parent widgets from handling onTap (details here). The GestureDetector in the code below doesn't work.
group_button/lib/src/group_button_body.dart
Lines 155 to 166 in fcb68fa
I have tried replacing GestureDetector.onTap with Listener.onPointerDown, but it couldn't distinguish long press events.
Finally I have to change button(Indexed)Builder to pass onTap argument as below:
So could you please fix this issue? Since I want the ripple effect of those Buttons.
The text was updated successfully, but these errors were encountered: