sliding_up_panel
sliding_up_panel copied to clipboard
`isPanelClosed` and `isPanelOpen` always returning false
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
Any updates on this issue?
still no update, I got this bug too on my dev apps
This is my workaround for now. Hope you find it useful.
void togglePanel() { panelController.panelPosition.round() == 1 ? panelController.close() : panelController.open(); }
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