Skip to content

Commit

Permalink
feat: 播放页播放列表自动跳转到当前剧集
Browse files Browse the repository at this point in the history
  • Loading branch information
MiaoMint committed Aug 3, 2023
1 parent d724679 commit 6574030
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/pages/watch/widgets/playlist.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import 'package:fluent_ui/fluent_ui.dart' as fluent;
import 'package:flutter/material.dart';
import 'package:miru_app/widgets/platform_widget.dart';
import 'package:scrollable_positioned_list/scrollable_positioned_list.dart';

class PlayList extends StatelessWidget {
class PlayList extends fluent.StatelessWidget {
const PlayList({
Key? key,
required this.title,
Expand All @@ -19,8 +20,9 @@ class PlayList extends StatelessWidget {
return Container(
padding: const EdgeInsets.all(8),
color: Theme.of(context).colorScheme.background,
child: ListView.builder(
child: ScrollablePositionedList.builder(
itemCount: list.length,
initialScrollIndex: selectIndex,
itemBuilder: (context, index) {
final contact = list[index];
return PlaylistAndroidTile(
Expand All @@ -39,8 +41,9 @@ class PlayList extends StatelessWidget {
return Container(
padding: const EdgeInsets.all(16),
color: fluent.FluentTheme.of(context).micaBackgroundColor,
child: ListView.builder(
child: ScrollablePositionedList.builder(
itemCount: list.length,
initialScrollIndex: selectIndex,
itemBuilder: (context, index) {
final contact = list[index];
return fluent.ListTile.selectable(
Expand Down

0 comments on commit 6574030

Please sign in to comment.