dismissible

Dismissible confirmDismiss in combination with new route navigation causes Flutter crash

二次信任 提交于 2020-01-13 20:27:54
问题 The context: I stumbled upon a minor crash while testing a ListView of Dismissible s in Flutter. When swiping a dismissible, a Dialog is shown using the confirmDismiss option, for confirmation. This all works well, however the UI crashes when testing an unlikely use case. On the page are several options to navigate to other (named) routes. When a dismissible is swiped, and during the animation an option to navigate to a new route is tapped, the crash happens. How to replicate the crash: