mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 08:08:19 +08:00
opt play all
Closes #1383 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -4,8 +4,10 @@ import 'package:PiliPlus/http/loading_state.dart';
|
||||
import 'package:PiliPlus/models/common/later_view_type.dart';
|
||||
import 'package:PiliPlus/models/common/video/source_type.dart';
|
||||
import 'package:PiliPlus/models_new/later/list.dart';
|
||||
import 'package:PiliPlus/pages/later/base_controller.dart';
|
||||
import 'package:PiliPlus/pages/later/controller.dart';
|
||||
import 'package:PiliPlus/pages/later/widgets/video_card_h_later.dart';
|
||||
import 'package:PiliPlus/utils/extension.dart';
|
||||
import 'package:PiliPlus/utils/grid.dart';
|
||||
import 'package:PiliPlus/utils/page_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -29,6 +31,7 @@ class _LaterViewChildPageState extends State<LaterViewChildPage>
|
||||
LaterController(widget.laterViewType),
|
||||
tag: widget.laterViewType.type.toString(),
|
||||
);
|
||||
late final _baseCtr = Get.putOrFind(LaterBaseController.new);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -75,17 +78,19 @@ class _LaterViewChildPageState extends State<LaterViewChildPage>
|
||||
cid: cid,
|
||||
cover: videoItem.pic,
|
||||
title: videoItem.title,
|
||||
extraArguments: {
|
||||
'oid': videoItem.aid,
|
||||
'sourceType': SourceType.watchLater,
|
||||
'count': _laterController
|
||||
.baseCtr
|
||||
.counts[LaterViewType.all],
|
||||
'favTitle': '稍后再看',
|
||||
'mediaId': _laterController.accountService.mid,
|
||||
'desc': false,
|
||||
'isContinuePlaying': index != 0,
|
||||
},
|
||||
extraArguments: _baseCtr.isPlayAll.value
|
||||
? {
|
||||
'oid': videoItem.aid,
|
||||
'sourceType': SourceType.watchLater,
|
||||
'count': _laterController
|
||||
.baseCtr
|
||||
.counts[LaterViewType.all],
|
||||
'favTitle': '稍后再看',
|
||||
'mediaId': _laterController.accountService.mid,
|
||||
'desc': false,
|
||||
'isContinuePlaying': index != 0,
|
||||
}
|
||||
: null,
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user