Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

reverse previous snackbar when push (workaround for #533)

Prediditb4325e0c0750
diff --git a/lib/bean/dialog/dialog_helper.dart b/lib/bean/dialog/dialog_helper.dart
index 7677df76..3be19ec0 100644
--- a/lib/bean/dialog/dialog_helper.dart
+++ b/lib/bean/dialog/dialog_helper.dart
@@ -131,7 +131,11 @@ class KazumiDialogObserver extends NavigatorObserver {
@override
void didPush(Route<dynamic> route, Route<dynamic>? previousRoute) {
super.didPush(route, previousRoute);
- _removeCurrentSnackBar(previousRoute);
+ /// workaround for #533
+ /// we can't remove snackbar when push a new route
+ /// otherwise, framework will throw an exception, and can't be caught
+ /// need other way to remove snackbar here
+ // _removeCurrentSnackBar(previousRoute);
if (_isKazumiDialogRoute(route)) {
_kazumiDialogRoutes.add(route);
currentContext = route.navigator?.context;