@@ -7,6 +7,7 @@ import 'package:material_design_icons_flutter/material_design_icons_flutter.dart
77import 'package:scrollable_positioned_list/scrollable_positioned_list.dart' ;
88
99import '../../utils/storage.dart' ;
10+ import 'my_dialog.dart' ;
1011
1112class ListSheet {
1213 ListSheet ({
@@ -26,19 +27,16 @@ class ListSheet {
2627 final BuildContext context;
2728
2829 void buildShowBottomSheet () {
29- SmartDialog .show (
30- alignment: MediaQuery .of (context).orientation == Orientation .portrait
31- ? Alignment .bottomRight
32- : Alignment .topRight,
33- useSystem: true ,
34- builder: (BuildContext context) => ListSheetContent (
35- episodes: episodes,
36- bvid: bvid,
37- aid: aid,
38- currentCid: currentCid,
39- changeFucCall: changeFucCall,
40- // onClose: SmartDialog.dismiss,
41- ));
30+ MyDialog .showCorner (
31+ context,
32+ ListSheetContent (
33+ episodes: episodes,
34+ bvid: bvid,
35+ aid: aid,
36+ currentCid: currentCid,
37+ changeFucCall: changeFucCall,
38+ // onClose: SmartDialog.dismiss,
39+ ));
4240 }
4341}
4442
@@ -130,20 +128,22 @@ class _ListSheetContentState extends State<ListSheetContent> {
130128 // semanticLabel: "正在播放:",
131129 // )
132130 // : null,
133- title: Text (
134- title,
135- style: TextStyle (
136- fontSize: 14 ,
137- color: isCurrentIndex
138- ? primary
139- : Theme .of (context).colorScheme.onSurface,
140- ),
141- semanticsLabel: isCurrentIndex ? "正在播放:$title " : title,
142- ),
143- trailing: Row (
131+ title: Row (
144132 mainAxisSize: MainAxisSize .min,
145133 children: [
134+ Expanded (
135+ child: Text (
136+ title,
137+ style: TextStyle (
138+ fontSize: 14 ,
139+ color: isCurrentIndex
140+ ? primary
141+ : Theme .of (context).colorScheme.onSurface,
142+ ),
143+ semanticsLabel: isCurrentIndex ? "正在播放:$title " : title,
144+ )),
146145 if (episode.badge != null ) ...[
146+ const SizedBox (width: 10 ),
147147 if (episode.badge == '会员' )
148148 Image .asset (
149149 'assets/images/big-vip.png' ,
@@ -154,8 +154,13 @@ class _ListSheetContentState extends State<ListSheetContent> {
154154 const SizedBox (width: 10 ),
155155 ],
156156 if (! (episode.runtimeType.toString () == 'EpisodeItem' &&
157- (episode.longTitle != null && episode.longTitle != '' )))
158- Text ('${index + 1 }/${widget .episodes !.length }' ),
157+ (episode.longTitle != null && episode.longTitle != '' ))) ...[
158+ const SizedBox (width: 10 ),
159+ Text (
160+ '${index + 1 }/${widget .episodes !.length }' ,
161+ style: const TextStyle (fontSize: 13 ),
162+ ),
163+ ]
159164 ],
160165 ),
161166 );
@@ -171,8 +176,8 @@ class _ListSheetContentState extends State<ListSheetContent> {
171176 color: Theme .of (context).colorScheme.surface,
172177 borderRadius: const BorderRadius .all (Radius .circular (12 )),
173178 ),
174- margin: const EdgeInsets .symmetric (horizontal: 8 , vertical: 30 ),
175- padding: const EdgeInsets .all ( 6 ),
179+ // margin: const EdgeInsets.symmetric(horizontal: 8, vertical: 30),
180+ padding: const EdgeInsets .only (left : 6 , top : 3 , bottom : 10 ),
176181 child: Column (
177182 children: [
178183 Container (
@@ -226,6 +231,8 @@ class _ListSheetContentState extends State<ListSheetContent> {
226231 ),
227232 Divider (
228233 height: 1 ,
234+ indent: 10 ,
235+ endIndent: 20 ,
229236 color: Theme .of (context).dividerColor.withOpacity (0.1 ),
230237 ),
231238 const SizedBox (height: 1 ),
@@ -245,6 +252,8 @@ class _ListSheetContentState extends State<ListSheetContent> {
245252 },
246253 itemScrollController: itemScrollController,
247254 separatorBuilder: (_, index) => Divider (
255+ indent: 18 ,
256+ endIndent: 25 ,
248257 height: 1 ,
249258 color: Theme .of (context).dividerColor.withOpacity (0.1 ),
250259 ),
0 commit comments