Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slidable widget not closing properly #477

Closed
jostinakkara opened this issue May 10, 2024 · 1 comment
Closed

Slidable widget not closing properly #477

jostinakkara opened this issue May 10, 2024 · 1 comment

Comments

@jostinakkara
Copy link

jostinakkara commented May 10, 2024

The Slidable Widget was working fine when I stayed in the same page and tried to open and close the widget. But when I open the slidable and then navigate to another page upon clicking the Slidable(Slidable widget is wrapped around a Gesturedetector) and then navigate back and close the widget by dragging, the widget is not closing properly. The SlidableAction widgets gets removed but the size of the Slidable widget remains the same as it was when opened(as specified using the extendratio property).The widget closes properly when rebuild/scroll but without rebuilding it stays the same.This issue was seen in the emulator although I am not sure if it is the same when running on a actual device.

@jostinakkara
Copy link
Author

I found a temporary solution. I replaced the child of Slidable widget from ListTile to a Container widget and the issue was gone. Looks like Listtile widget has some issues with rebuilding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant