Clicks go through
Opened this issue · 1 comments
Hi
I've set up a basic bar with:
StylishBottomBar(
fabLocation: StylishBarFabLocation.center,
hasNotch: true,
backgroundColor: Colors.white70,
currentIndex: currentMainTabIndex,
onTap: (index) {
_onItemTapped(index);
},
option: AnimatedBarOptions(
iconSize: 26,
barAnimation: BarAnimation.fade,
iconStyle: IconStyle.simple,
)
That should make it a bit transparent so you see what's behind. And that's the problem, whenever I have anything with a button behind, it will interact with it. It seems to interact with everything that is behind the bar. How can I stop this from happening? I've tried AbsorbPointer and everything but it will still go through. It seems the background bar is ignored and it won't stop it.
btw, I was able to modify the code to fix it for "hasNotch : false", inside bottom_bar I set the Material to type: MaterialType.transparency, and since Material "eats" clicks, it won't go through. But then I lose the option to set hasNotch to true, because I don't understand all that clipping code and how to make it not go through