Mah*_*med 6 flutter flutter-web flutter-go-router
WillPopScope(
onWillPop: () async {
log('WillPopScope: working in call');
return new Future(() => true);
}
child: Scaffold()
)
Run Code Online (Sandbox Code Playgroud)
我正在使用 go_router 在 Web 页面中导航。这里的 onWillPop 似乎从未被调用过。当在 WEB 上按下后退按钮时,我们如何监听。
| 归档时间: |
|
| 查看次数: |
3225 次 |
| 最近记录: |