We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No description provided.
The text was updated successfully, but these errors were encountered:
有具体代码么?
Sorry, something went wrong.
利用 pageRoutes 路由 进行页面的跳转 从 A —> B —> C —> D —> E 然后想要从 E处理过数据后直接返回到B 利用Navigator.popUntil(context, ModalRoute.withName('/B'));
在onGenerateRoute return MaterialPageRoute的时候,加上settings参数 例如
onGenerateRoute
MaterialPageRoute
settings
onGenerateRoute: (RouteSettings settings) { return MaterialPageRoute<Object>( builder: (BuildContext context) { return routes.buildPage(settings.name, settings.arguments); }, settings: settings); }
Navigator.of(ctx.context) .popUntil((route) => route.settings?.name == '/B');
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: