Closed gvenusleo closed 10 months ago
找到原因了, 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.
考虑使用 https://github.com/PonnamKarthik/FlutterToast 代替 SnackBar 。
设置的 2 秒后自动消失,在 moto MYUI 5 和其他类原生系统上失效。