[我目前正在如上图所示,正在处理这个flutter应用程序示例。但是,当我点击“计算”以导航到下一个屏幕时,出现黑屏,如下所示
这里是GitHub Repo链接:enter image description here
需要帮助!
这是我最喜欢的浏览步骤:
1)将url作为静态成本添加到到达的页面(以避免输入错误)
2)验证您在主页上的路线是否正确:static const routeName = '/your-page';
3)确保您调用了正确的函数:routes: { YourPage.routeName: (ctx) => YourPage(), },
4)检查是否已在导航源页面中导入YourPage: