Skip to content

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

fix: make adaptive bottom sheet drag handle optional

Prediditd90f7c6056d1
diff --git a/lib/bean/dialog/adaptive_bottom_sheet.dart b/lib/bean/dialog/adaptive_bottom_sheet.dart
index 923ed31d..5c003708 100644
--- a/lib/bean/dialog/adaptive_bottom_sheet.dart
+++ b/lib/bean/dialog/adaptive_bottom_sheet.dart
@@ -33,13 +33,14 @@ Future<T?> showAdaptiveBottomSheet<T>({
double maxHeightFactor = 0.75,
double compactLandscapeMaxHeightFactor = 0.9,
Color? backgroundColor,
+ bool showDragHandle = false,
}) {
return showModalBottomSheet<T>(
context: context,
builder: builder,
isScrollControlled: true,
useSafeArea: true,
- showDragHandle: false,
+ showDragHandle: showDragHandle,
constraints: adaptiveBottomSheetConstraints(
context,
maxHeightFactor: maxHeightFactor,
diff --git a/lib/pages/info/info_page.dart b/lib/pages/info/info_page.dart
index 82f48101..0a58c0b4 100644
--- a/lib/pages/info/info_page.dart
+++ b/lib/pages/info/info_page.dart
@@ -495,6 +495,7 @@ class _InfoPageState extends State<InfoPage> with TickerProviderStateMixin {
showAdaptiveBottomSheet<void>(
backgroundColor:
Theme.of(context).scaffoldBackgroundColor,
+ showDragHandle: true,
context: context,
builder: (context) {
return SourceSheet(