Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clicks go through #28

Open
joaquingrech opened this issue May 10, 2024 · 1 comment
Open

Clicks go through #28

joaquingrech opened this issue May 10, 2024 · 1 comment
Assignees

Comments

@joaquingrech
Copy link

joaquingrech commented May 10, 2024

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.

@joaquingrech
Copy link
Author

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

@MarsadMaqsood MarsadMaqsood self-assigned this May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants