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

怎么主动关闭alert? #24

Open
81024198 opened this issue Apr 12, 2021 · 1 comment
Open

怎么主动关闭alert? #24

81024198 opened this issue Apr 12, 2021 · 1 comment

Comments

@81024198
Copy link

怎么主动关闭alert?
navigator.pop 无法关闭

@LeiYao123
Copy link

怎么主动关闭alert? navigator.pop 无法关闭

@81024198 这里面没有 alert 组件呀 ,如果是 Drawer 组件的话可以这样做

final close = weDrawer(context)(...);
close(); // 主动关闭

作者没有用 flutter 自带的 scaffold 的 drawer 属性,所以不能使用  navigator.pop 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants