sliding_up_panel icon indicating copy to clipboard operation
sliding_up_panel copied to clipboard

Fixes issue where panel body would always be the height of the screen

Open josh-burton opened this issue 5 years ago • 6 comments

MediaQuery.of(context).size.height always returns the full screen height, rather than the height of the widgets parent.

If there is an appbar in a scaffold for example, the panel’s body height should only be as big as its parent, not the height of the screen.

By using Positioned.fill, the body will now fill the stack and be sized correctly.

josh-burton avatar Jul 29 '19 04:07 josh-burton

So, I change this code in my app libraries for testing, and they fix all size problems with a widget in SlidingPanel(body: that I want to put above a BottomBar, previously I solve with use of padding, but iOS(& Android Q) devices with gesture navigation have a different bottombar height, so the padding doesn't work well on that devices.

The problem is that SlidingPanel(parallaxEnabled:true doesn't work properly... I think that Positioned.fill is changing the body size with every panel sliding coordinate.

Also, SlidingPanel(panel: keep taking the entire screen size

hectorAguero avatar Aug 06 '19 15:08 hectorAguero

@josh-burton there is a conflict here.

Maybe you fix it to speed up the PR approve?

cream-cheeze avatar Jul 01 '21 13:07 cream-cheeze

I've rebased and reapplied the fix. It has been 2 years so I'm not holding out hope this will be merged though.

josh-burton avatar Jul 01 '21 18:07 josh-burton

@akshathjain What is the reason of not merging this? What has to be changed in the PR for it to get merged?

sladomic avatar Jul 27 '21 07:07 sladomic

Any updates? Does a workaround exists?

AngeloAvv avatar Oct 12 '21 12:10 AngeloAvv

So, I change this code in my app libraries for testing, and they fix all size problems with a widget in SlidingPanel(body: that I want to put above a BottomBar, previously I solve with use of padding, but iOS(& Android Q) devices with gesture navigation have a different bottombar height, so the padding doesn't work well on that devices.

The problem is that SlidingPanel(parallaxEnabled:true doesn't work properly... I think that Positioned.fill is changing the body size with every panel sliding coordinate.

Also, SlidingPanel(panel: keep taking the entire screen size

did you solve this parallax problem ? @hectorAguero

shahmirzali49 avatar Aug 08 '22 10:08 shahmirzali49