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
fish-redux中 通过路由传递的参数,怎么在页面中接受使用呢?
Navigator.pushNamed(ctx.context, '/orderDetials', arguments: {'orderId': action.payload});
The text was updated successfully, but these errors were encountered:
可以参考 #60
Sorry, something went wrong.
`
onGenerateRoute: (RouteSettings settings) { WidgetBuilder builder; if (settings.name == '/orderDetials') { builder = (ctx) => OrderdetailsPage().buildPage(settings.arguments); } return new MaterialPageRoute(builder: builder, settings: settings); }
` 已经解决了,通过在MaterialApp 配置onGenerateRoute,然后设置 .buildPage(参数)就可以。 这里的路由‘/orderDetials’名称,不需要在routes里面注册
No branches or pull requests
fish-redux中 通过路由传递的参数,怎么在页面中接受使用呢?
Navigator.pushNamed(ctx.context, '/orderDetials',
arguments: {'orderId': action.payload});
The text was updated successfully, but these errors were encountered: