【发布时间】:2022-10-17 04:08:36
【问题描述】:
WillPopScope(
onWillPop: () async {
log('WillPopScope: working in call');
return new Future(() => true);
}
child: Scaffold()
)
我正在使用 go_router 来浏览 Web 中的页面。这里的 onWillPop 似乎从未被调用过。在 WEB 上按下后退按钮时我们如何收听。
【问题讨论】:
标签: flutter flutter-web flutter-go-router