flutter_in_action_2nd icon indicating copy to clipboard operation
flutter_in_action_2nd copied to clipboard

第二章-路由管理-2.4.5命名路由-命名路由参数传递-代码勘正

Open verybeautyTang opened this issue 2 years ago • 0 comments

image 第二章-路由管理-2.4.5命名路由-命名路由参数传递

这里有一句代码更新: class EchoRoute extends StatelessWidget { @override Widget build(BuildContext context) { // 这里之前是
var args = ModalRoute.of(context).settings.arguments; // 现在应该是用这样的用法 var args = ModalRoute.of(context)!.settings.arguments; ... } }

verybeautyTang avatar Jul 06 '23 02:07 verybeautyTang