akshathjain / sliding_up_panel

A draggable Flutter widget that makes implementing a SlidingUpPanel much easier!
https://pub.dartlang.org/packages/sliding_up_panel
Other
1.38k stars 378 forks source link

Gesture detectors in the panel stop working when putting the app in background and then back into the foreground #212

Open arubin18 opened 3 years ago

arubin18 commented 3 years ago

Describe the bug I am currently using the sliding up panel to display a panel in addition to a map screen. When putting the app in the background, going to another app, then returning to the app, the gesture detectors inside the panel stopped working but the panel was still able to slide up and down. A hacky solution that I implemented was to close the panel using a panel controller when the app returns to the foreground and then use the onPanelClosed listener to show the panel using the panel controller. This fixes the issue but it is somewhat disorienting to a user as you can see the panel closing and opening very quickly. I also tried rebuilding the panel widget inside the sliding up panel but this did not fix the issue.

To Reproduce I am currently using an iPhone XR, and this problem has been recreated on other iOS devices. To reproduce the problem, use a sliding up panel with gesture detectors inside the panel, go to your phone's home screen, click on another app, and then return to the original app.

Smartphone (please complete the following information):

chanindev commented 3 years ago

I am having the same issue! please someone help.

dimysa commented 3 years ago

This issue is the same as https://github.com/flutter/flutter/issues/69729 and I think this is not a problem with this package. It's not repeated on the latest beta or on the dev channel (you can use it as workaround).

skvasov commented 3 years ago

Same issue for me. Guys, did you manage to fix it?

Flutter (Channel stable, 1.22.5, on macOS 11.2 20D64 darwin-x64, locale en-BY)