Skip to content

修改pushNamed<String>泛型参数为dynamic,解决点击报错: "type 'MaterialPageRoute<dyna…#1

Open
chaangliu wants to merge 1 commit into
jzoom:masterfrom
chaangliu:master
Open

修改pushNamed<String>泛型参数为dynamic,解决点击报错: "type 'MaterialPageRoute<dyna…#1
chaangliu wants to merge 1 commit into
jzoom:masterfrom
chaangliu:master

Conversation

@chaangliu
Copy link
Copy Markdown

在点击例子中的第一个按钮「直接使用name跳转」时,出现了错误:type 'MaterialPageRoute<dynamic>' is not a subtype of type 'Route<String>’,经过修改、测试已经可以成功跳转。

环境:

Flutter 0.7.3 • channel beta • https://github.com/flutter/flutter.git
Framework • revision 3b309bda07 (5 weeks ago) • 2018-08-28 12:39:24 -0700
Engine • revision af42b6dc95
Tools • Dart 2.1.0-dev.1.0.flutter-ccb16f7282

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant