flutter is not a subtype of type ‘Map<String, dynamic>‘
Navigator.of(viewService.context).pushNamed('home',arguments:{});//这里传入空
·
Navigator.of(viewService.context)
.pushNamed(
'home',
arguments:{});
//这里传入空的{}时会报is not a subtype of type 'Map<String, dynamic>'的错误
把{} 改成Map<String, dynamic>()或者不传arguments就行了
更多推荐
已为社区贡献2条内容
所有评论(0)