【问题标题】:WillPopScope not working with go_router web FlutterWillPopScope 不适用于 go_router web Flutter
【发布时间】: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


    【解决方案1】:

    我遇到了同样的问题。

    似乎在Github 上有关于这个问题的持续线程。 正在跟踪该问题here

    【讨论】:

      猜你喜欢
      • 2020-08-13
      • 2021-10-03
      • 2020-10-29
      • 2021-12-04
      • 2020-04-12
      • 1970-01-01
      • 2020-11-22
      • 2023-02-02
      • 2023-01-03
      相关资源
      最近更新 更多