Skip to content

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

chore: fix timeline page bottom sheet layout

Predidit0141db52b342
diff --git a/lib/pages/timeline/timeline_page.dart b/lib/pages/timeline/timeline_page.dart
index 960525a8..fbe49971 100644
--- a/lib/pages/timeline/timeline_page.dart
+++ b/lib/pages/timeline/timeline_page.dart
@@ -374,21 +374,21 @@ class _TimelinePageState extends State<TimelinePage>
ListTile(
title: const Text('按热度排序'),
onTap: () {
- Navigator.pop(context);
+ KazumiDialog.dismiss();
timelineController.changeSortType(3);
},
),
ListTile(
title: const Text('按评分排序'),
onTap: () {
- Navigator.pop(context);
+ KazumiDialog.dismiss();
timelineController.changeSortType(2);
},
),
ListTile(
title: const Text('按时间排序'),
onTap: () {
- Navigator.pop(context);
+ KazumiDialog.dismiss();
timelineController.changeSortType(1);
},
),
@@ -451,7 +451,11 @@ class _TimelinePageState extends State<TimelinePage>
),
floatingActionButton: FloatingActionButton.extended(
onPressed: () async {
- showModalBottomSheet(
+ KazumiDialog.showBottomSheet(
+ backgroundColor: Theme.of(context).colorScheme.surface,
+ shape: const RoundedRectangleBorder(
+ borderRadius: BorderRadius.vertical(top: Radius.circular(28)),
+ ),
isScrollControlled: true,
constraints: BoxConstraints(
maxHeight: (MediaQuery.sizeOf(context).height >=
@@ -464,7 +468,6 @@ class _TimelinePageState extends State<TimelinePage>
: MediaQuery.of(context).size.width,
),
clipBehavior: Clip.antiAlias,
- backgroundColor: Theme.of(context).scaffoldBackgroundColor,
context: context,
builder: (context) {
return showTimelineOptionTabBar(
@@ -522,7 +525,8 @@ class _TimelinePageState extends State<TimelinePage>
var filteredList = bangumiList;
if (timelineController.notShowAbandonedBangumis) {
- final abandonedBangumiIds = timelineController.loadAbandonedBangumiIds();
+ final abandonedBangumiIds =
+ timelineController.loadAbandonedBangumiIds();
filteredList = filteredList
.where((item) => !abandonedBangumiIds.contains(item.id))
.toList();