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

(ResizablePane) Add onResized call back #501

Open
stMerlHin opened this issue Dec 6, 2023 · 1 comment
Open

(ResizablePane) Add onResized call back #501

stMerlHin opened this issue Dec 6, 2023 · 1 comment

Comments

@stMerlHin
Copy link
Contributor

stMerlHin commented Dec 6, 2023

Hey @GroovinChip , it's been a long time since I've heard from you. I hope you are doing well.

Use case

Am using a GridView with dynamic crossAxisCount computed using a factor on MediaQuery.of(conext).size.width.
The problem, my calculations are wrong every time the pan is resized.

Video With ResizablePane

with.pane.webm

Video Without ResizablePane

without.pan.webm

Proposal

Add something like onPaneRezided call back to ResizablePane which will provide the new size (height or width depending on the pane orientation) of the pane every time resizing action occurs.

@Adrian-Samoticha
Copy link
Member

Is there a reason why you couldn’t solve this problem using a LayoutBuilder?

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