Navigator.of(context).popUntil((route) {
// Check if the current route is NOT a DialogRoute. // This means we stop popping when we hit a regular page/widget route. return route is! DialogRoute;});
沒有留言:
發佈留言