首页 > 解决方案 > 使用动态参数导航 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,
        ));

你能建议我这里的主要问题在哪里以及如何解决它。提前致谢

标签: flutterwebviewnavigation-drawer

解决方案


推荐阅读