macos_ui icon indicating copy to clipboard operation
macos_ui copied to clipboard

(ResizablePane) Add `onResized` call back

Open stMerlHin opened this issue 2 years ago • 1 comments

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

Rendering 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.

stMerlHin avatar Dec 06 '23 21:12 stMerlHin

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

Adrian-Samoticha avatar Apr 02 '24 15:04 Adrian-Samoticha