sliding_up_panel icon indicating copy to clipboard operation
sliding_up_panel copied to clipboard

Buttons inside the collapsed panel is not working at some time.

Open yocyocdearwolves opened this issue 4 years ago • 3 comments

I have noticed that when the widget rebuilds and the panel is open the buttons inside the collapsed panel will not work anymore. Everything works fine until you use rebuilding methods like setState or you navigate to a new screen when the panel is open.

yocyocdearwolves avatar Sep 23 '20 11:09 yocyocdearwolves

So I just face the same issue: I am using GetX for state management, i couldn't use setState(){} for no reason.

GetBuilder<ControllerName>( builder: (_) => SlidingUpPanel( onPanelOpened: (){ /// Re-render elements for no reason :P _.refreshPage(); } ), ... ) ChangeNotifierProvider

You can find onPanelOpened where you need to re-render the screen again either you are using Provider. You just need to call update() of GetX OR update() OR SetState(){}.

mr-muhammad-rehan avatar Dec 08 '20 09:12 mr-muhammad-rehan

Thanks, this solved my problem.

ccastroelo avatar Feb 01 '21 19:02 ccastroelo

So I just face the same issue: I am using GetX for state management, i couldn't use setState(){} for no reason.

GetBuilder( builder: (_) => SlidingUpPanel( onPanelOpened: (){ /// Re-render elements for no reason :P _.refreshPage(); } ), ... ) ChangeNotifierProvider

You can find onPanelOpened where you need to re-render the screen again either you are using Provider. You just need to call update() of GetX OR update() OR SetState(){}.

I'm also facing the problem, when I opened the panel, sometimes buttons inside the panel cannot be tapped. And when I closed the panel, buttons in collapsed widget, sometimes cannot tapped either.

Like you, I'm also using GetX for state management, but I don't understand, what did _.refreshPage() do?

ShookLyngs avatar May 04 '21 07:05 ShookLyngs