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

Background overlay #4

Open
WieFel opened this issue Nov 13, 2023 · 1 comment
Open

Background overlay #4

WieFel opened this issue Nov 13, 2023 · 1 comment

Comments

@WieFel
Copy link

WieFel commented Nov 13, 2023

Hi,

thanks for this cool library. I really like it and it is very customizable!

However, one feature I am missing: a background overlay when the FAB is in active state.
Can that be added somehow?

@Robbendebiene
Copy link
Owner

Hi, I agree that it would be a good fit for the package.

I'm thinking of an overlayBuilder or backdropBuilder parameter:

Widget overlayBuilder(BuildContext context, bool isActive, VoidCallback toggle)

This way one should be able to

  • add a colored box as the overlay
  • add a gesture detector to hide the overlay on tap
  • animate the overlay based on the isActive value

Unfortunatly I currently don't have enough time to add this, but PR is welcome :)

It could probably simply be added here with another check like

if (widget.overlayBuilder != null) overlayBuilder(overlayContext, isActive, toggle),

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