sliding_up_panel icon indicating copy to clipboard operation
sliding_up_panel copied to clipboard

`isPanelClosed` and `isPanelOpen` always returning false

Open desimmons opened this issue 3 years ago • 4 comments

Describe the bug isPanelClosed and isPanelOpen always returning false because panelPosition is returning none integer values close to (but not exactly equal to) 0 or 1: panelPosition: 9.313225537987968e-12 panelPosition: 0.9999999999906868

desimmons avatar Sep 06 '21 19:09 desimmons

Any updates on this issue?

g-jindal2001 avatar Jan 08 '22 16:01 g-jindal2001

still no update, I got this bug too on my dev apps

HafizAlwi avatar Jun 06 '22 09:06 HafizAlwi

This is my workaround for now. Hope you find it useful.

void togglePanel() { panelController.panelPosition.round() == 1 ? panelController.close() : panelController.open(); }

bastiaand avatar Jul 05 '22 21:07 bastiaand

This is my workaround for now. Hope you find it useful.

void togglePanel() { panelController.panelPosition.round() == 1 ? panelController.close() : panelController.open(); }

worked for me thanks

Mohit8G avatar Mar 03 '23 13:03 Mohit8G