macos_ui
macos_ui copied to clipboard
(ResizablePane) Add `onResized` call back
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
Video Without ResizablePane
Rendering without ResizablePane
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.
Is there a reason why you couldn’t solve this problem using a LayoutBuilder?