sliding_up_panel
sliding_up_panel copied to clipboard
Fixes issue where panel body would always be the height of the screen
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.
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
@josh-burton there is a conflict here.
Maybe you fix it to speed up the PR approve?
I've rebased and reapplied the fix. It has been 2 years so I'm not holding out hope this will be merged though.
@akshathjain What is the reason of not merging this? What has to be changed in the PR for it to get merged?
Any updates? Does a workaround exists?
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