We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var w = WillPopScope( child: Listener( behavior: HitTestBehavior.opaque, child: Center( child: Container( decoration: BoxDecoration( borderRadius: BorderRadius.circular(5), color: Colors.black.withOpacity(0.7), ), padding: const EdgeInsets.all(20), child: CircularProgressIndicator( valueColor: AlwaysStoppedAnimation(Colors.white), )), ), ), onWillPop: () async { print("onWillPop"); return false; }, ); showToastWidget(w, duration: Duration.zero, handleTouch: true);
需要屏蔽安卓点击物理返回键事件,这样写监听不到,有没有什么办法?
The text was updated successfully, but these errors were encountered:
Toast 插件和返回键 并没有关系,已经展示的toast 不会因为你点击了返回而消失。除非你手动控制该toastFuture销毁。因为Overlay是在 flutter 树之外的。 所以你如果需要监听返回应该在你自己的widget里面去监听。
Sorry, something went wrong.
No branches or pull requests
需要屏蔽安卓点击物理返回键事件,这样写监听不到,有没有什么办法?
The text was updated successfully, but these errors were encountered: