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

SnackBar 在类原生系统上不会自动消失 #13

Closed
gvenusleo opened this issue Aug 21, 2023 · 2 comments
Closed

SnackBar 在类原生系统上不会自动消失 #13

gvenusleo opened this issue Aug 21, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@gvenusleo
Copy link
Owner

设置的 2 秒后自动消失,在 moto MYUI 5 和其他类原生系统上失效。

@gvenusleo gvenusleo added the bug Something isn't working label Aug 21, 2023
@gvenusleo
Copy link
Owner Author

找到原因了, https://api.flutter.dev/flutter/material/SnackBar-class.html

A SnackBar with an action will not time out when TalkBack or VoiceOver are enabled. This is controlled by AccessibilityFeatures.accessibleNavigation.

@gvenusleo
Copy link
Owner Author

考虑使用 https://github.com/PonnamKarthik/FlutterToast 代替 SnackBar 。

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

1 participant