hasan-hm1/circular_menu

Wrong Button OnTap When radius <75

jemariads opened this issue · 2 comments

hi,

I found your widget have a bug, the on tap function button execute wrong button when CircularMenu Radius < 75.

Screen Shot 2020-05-20 at 22 13 05

When I tapped on black area on red button that execute orange button onTap.

btw thank you for great widget

Hi
Thank you for opening this issue,

This is happening because CircularMenuItem under the hood is RawMaterialButton which has a default padding makes the tappable area expands.

when the menu items get close to each other (for radius < 75 ), the tappable areas overlap causing this issue.

Please check the updated version which removes the default padding so that this issue won't happen anymore.

Thanks for the feedback.

thank you @hasan-hm1