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

Provide onScaleStart and onScaleEnd callbacks #10

Closed
ramtinq opened this issue Feb 27, 2023 · 0 comments
Closed

Provide onScaleStart and onScaleEnd callbacks #10

ramtinq opened this issue Feb 27, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ramtinq
Copy link
Contributor

ramtinq commented Feb 27, 2023

Thank you for this great and useful package.

I think some people may need a way to detect when zooming is being started, updated, and ended, so that they can update ui based on it; like changing the visibility of a bottom-navigation-bar.

So, these optional arguments could be added to the widget:

ZoomOverlay(
                onScaleStart: () {
                  ref.read(navigationBarHiddenProvider.notifier).state = true;
                },
                onScaleEnd: () {
                  ref.read(navigationBarHiddenProvider.notifier).state = false;
                },
@ramtinq ramtinq added the bug Something isn't working label Feb 27, 2023
@Mayb3Nots Mayb3Nots added enhancement New feature or request and removed bug Something isn't working labels Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants