Open saksham-gt opened 3 years ago
@sudo-saksham did you find any solution?
nope.
do you find any solution ?
@sudo-saksham
no. @Harsh4598
Hey, try to pass ScrollController
from panel into your SingleChildScrollView.
From example
panelBuilder: (scrollController) => _panel(scrollController),
_panel(ScrollController sc) => SingleChildScrollView( controller: sc, ....
@kurtiev thanks... it does work! I had a listView inside that panel and in its controller property i passed the Panels controller. Now when I scroll down it only shuts after the list hits the end and cant scroll any further. but it would be nice to know whats the logic behind that.
After you pass the Panel's scrollcontroller to the ListView what really happens... does the panels scrollcontroller not kick in untill the list hits the end???
The issue for two different list view in slidup panel when i scroll down towards to the bottom the panel will close ....
Use the scroll contro. It will help you .
On Wed, Feb 9, 2022 at 11:57 PM cc-appdev @.***> wrote:
The issue for two different list view in slidup panel when i scroll down towards to the bottom the panel will close ....
— Reply to this email directly, view it on GitHub https://github.com/akshathjain/sliding_up_panel/issues/252#issuecomment-1034493984, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKS5VKJWECAQU4SXGKRVY7LU2NAVJANCNFSM45LG5WPQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
-- Sent from Gmail Mobile
ScrollController
@kurtiev @YohanWadia @appdeveploment @Harsh4598 how to pass the scrollontroller , I don't get it panel builder accepts no arguments
Describe the bug I used
SlideUpPanel()
to make a transition from collapsed toisPanelOpen
mode, but sinceisPanelOpen
mode contains anCustomScrollView
and henceAppBar
andbody
, thebody
contains a list, so there is no issue when I open the panel and scroll down (i.e towards the bottom of list), but as I scroll up (towardsAppBar
/ top of the list), the panel collapses along with list being scrolled up, if the list is little bit long, then the panel will collapse before the list reaches its top, hence is very irritating.To Reproduce Steps to reproduce the behavior:
In
panelBuilder
: include aListView
of say 50itemCount
, and scroll to the bottom of the list, then scroll Up towards top of the list, the panel will collapse along with list being scrolledExpected behavior I expect the panel to not collapse the screen until top of the list is reached.
Smartphone (please complete the following information):
Sample
main.dart
Please provide a samplemain.dart
that reproduces this issue. The code provided here should be able to be run on its own without any external dependencies.