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
dialog 在点击mask时,可以使用onMask来监听是否点击了Mask。但是在触发返回事件时,例如BackButton或物理键返回。 其中物理键返回只能使用backDismiss来配置是否可以返回, 而BackButton可以手动进行是否返回的逻辑处理,例如在返回时需要检测表单是否正确,如果正确可以返回如果错误则无法返回。但是如果想要BackButton和物理键返回使用相同的业务逻辑,就必须手动封装一层PopScope了。 当然还有一种情况是,点击mask、BackButton、物理键返回都需要进行相同的返回检验,这样的话,onMask和BackButton是可以进行检验业务的,但是物理键返回却要手动再封装一个PopScope才能进行校验业务。
mask
onMask
Mask
BackButton
物理键返回
backDismiss
PopScope
点击mask
希望能够内置PopScope,这样的话在处理类似的返回校验业务时,就能够更加便捷的调用相同逻辑了。
The text was updated successfully, but these errors were encountered:
dependencies: flutter_smart_dialog: ^4.9.8+2
Sorry, something went wrong.
xdd666t
No branches or pull requests
dialog
在点击
mask
时,可以使用onMask
来监听是否点击了Mask
。但是在触发返回事件时,例如BackButton
或物理键返回
。其中
物理键返回
只能使用backDismiss
来配置是否可以返回,而
BackButton
可以手动进行是否返回的逻辑处理,例如在返回时需要检测表单是否正确,如果正确可以返回如果错误则无法返回。但是如果想要BackButton
和物理键返回
使用相同的业务逻辑,就必须手动封装一层PopScope
了。当然还有一种情况是,
点击mask
、BackButton
、物理键返回
都需要进行相同的返回检验,这样的话,onMask
和BackButton
是可以进行检验业务的,但是物理键返回
却要手动再封装一个PopScope
才能进行校验业务。希望能够内置
PopScope
,这样的话在处理类似的返回校验业务时,就能够更加便捷的调用相同逻辑了。The text was updated successfully, but these errors were encountered: