flutter - 使用动态参数导航 Flutter 应用程序
问题描述
我正在尝试从我的主页路由到 webview 页面。如果我点击任何按钮,它工作正常。但是如果我单击抽屉菜单项,它只会显示错误而不是显示该页面。错误:
setState() or markNeedsBuild() called during build.
This Overlay widget cannot be marked as needing to build because the framework is already in the process of building widgets.
我从抽屉菜单点击 webview 调用:
Navigator.pushNamed(context, '/details',
arguments: ScreenArguments(
'Pay Now',
"https://www.test.com/"+_customerID,
));
你能建议我这里的主要问题在哪里以及如何解决它。提前致谢
解决方案
推荐阅读
- python - Gunicorn 在访问静态文件时抛出错误 403
- mysql - MySQL中的游标 - 他们是否创建临时表
- spring - 如何在运行时更改 log4j 中的日志记录级别而不重新启动码头服务器?
- c# - 无法从类中调用方法
- java - 在基本应用程序中使用动态应用程序功能
- php - 试图以 symfony 中的访问权限禁止的方式访问套接字
- c++ - 对于char * varable,如何在debug模式下查看其值
- swift - UIView 的背景颜色在完成后不断恢复为原始颜色
- scala - 如何使用 JSON4S 反序列化 Scala 树
- java - 如何使用 PdfBox 缩放 pdf 文件