diff --git a/lib/pages/video/post_panel/view.dart b/lib/pages/video/post_panel/view.dart index 768184db2..5b853abda 100644 --- a/lib/pages/video/post_panel/view.dart +++ b/lib/pages/video/post_panel/view.dart @@ -2,7 +2,7 @@ import 'dart:async'; import 'dart:math'; import 'package:PiliPlus/common/widgets/button/icon_button.dart'; -import 'package:PiliPlus/common/widgets/loading_widget/http_error.dart'; +import 'package:PiliPlus/common/widgets/loading_widget/loading_widget.dart'; import 'package:PiliPlus/common/widgets/pair.dart'; import 'package:PiliPlus/http/loading_state.dart'; import 'package:PiliPlus/http/sponsor_block.dart'; @@ -249,7 +249,7 @@ class _PostPanelState extends State @override Widget buildList(ThemeData theme) { if (list.isEmpty) { - return const HttpError(isSliver: false); + return scrollableError; } final bottom = MediaQuery.viewPaddingOf(context).bottom; Widget child = ListView.builder( diff --git a/lib/scripts/bottom_sheet_ios_flutter.patch b/lib/scripts/bottom_sheet_ios_flutter.patch index 087ee9b71..4946548c7 100644 --- a/lib/scripts/bottom_sheet_ios_flutter.patch +++ b/lib/scripts/bottom_sheet_ios_flutter.patch @@ -1,7 +1,16 @@ diff --git a/packages/flutter/lib/src/cupertino/route.dart b/packages/flutter/lib/src/cupertino/route.dart -index 5ce4479480e..d5fa9478210 100644 +index 5ce4479480e..2551c6613ae 100644 --- a/packages/flutter/lib/src/cupertino/route.dart +++ b/packages/flutter/lib/src/cupertino/route.dart +@@ -201,7 +201,7 @@ mixin CupertinoRouteTransitionMixin on PageRoute { + // gesture is detected. The returned controller handles all of the subsequent + // drag events. + static _CupertinoBackGestureController _startPopGesture(PageRoute route) { +- assert(route.popGestureEnabled); ++ assert(route.popGestureEnabled || route.popGestureEnabled_); + + return _CupertinoBackGestureController( + navigator: route.navigator!, @@ -252,6 +252,7 @@ mixin CupertinoRouteTransitionMixin on PageRoute { linearTransition: linearTransition, child: _CupertinoBackGestureDetector(