Skip to content
New issue

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

在4.9.8+5版本下,结合Flutter_boost,showLoading 未屏蔽返回键 #248

Open
xcyoung opened this issue Feb 7, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@xcyoung
Copy link

xcyoung commented Feb 7, 2025

版本信息

  • Flutter版本:3.16.9
  • flutter_smart_dialog版本:4.9.8+5

描述bug/需求

结合fluttter_boost,打开flutter页面,请求数据,使用 SmartDialog.showLoading(backDismiss: false),在未完成请求之前,点击物理键返回,可以直接返回,没有拦截
使用上述issue提供的demo,在4.9.8+5版本下,结合flutter_boost无法实现拦截返回键。

源码发现,新版本引入了backType参数,但是在flutter_boost的兼容逻辑中,并没有对backType进行判断处理。
Image

xdd666t added a commit that referenced this issue Feb 8, 2025
@xdd666t
Copy link
Member

xdd666t commented Feb 8, 2025

  • 试下新版本
dependencies:
  flutter_smart_dialog: ^4.9.8+6

@xdd666t xdd666t self-assigned this Feb 8, 2025
@xdd666t xdd666t added the bug Something isn't working label Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants