flutter is not a subtype of type ‘Map<String, dynamic>‘

tech2023-06-05  118

Navigator.of(viewService.context) .pushNamed( 'home', arguments:{}); //这里传入空的{}时会报is not a subtype of type 'Map<String, dynamic>'的错误 把{} 改成Map<String, dynamic>()或者不传arguments就行了
最新回复(0)