mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-24 10:08:41 +00:00
@@ -11,7 +11,6 @@ import 'package:get/get.dart';
|
||||
|
||||
class BlackListController
|
||||
extends CommonListController<BlackListData, BlackListItem> {
|
||||
int pageSize = 50;
|
||||
RxInt total = (-1).obs;
|
||||
|
||||
@override
|
||||
@@ -52,5 +51,5 @@ class BlackListController
|
||||
|
||||
@override
|
||||
Future<LoadingState<BlackListData>> customGetData() =>
|
||||
BlackHttp.blackList(pn: page, ps: pageSize);
|
||||
BlackHttp.blackList(pn: page);
|
||||
}
|
||||
|
||||
@@ -67,7 +67,6 @@ class DynamicsController extends GetxController
|
||||
var res = await FollowHttp.followings(
|
||||
vmid: accountService.mid,
|
||||
pn: allFollowedUpsPage,
|
||||
ps: 50,
|
||||
orderType: 'attention',
|
||||
);
|
||||
if (res.isSuccess) {
|
||||
@@ -108,7 +107,6 @@ class DynamicsController extends GetxController
|
||||
final f2 = FollowHttp.followings(
|
||||
vmid: accountService.mid,
|
||||
pn: allFollowedUpsPage,
|
||||
ps: 50,
|
||||
orderType: 'attention',
|
||||
);
|
||||
final res0 = await f1;
|
||||
|
||||
@@ -8,7 +8,6 @@ import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||
|
||||
class FansController extends CommonListController<FansData, FansItemModel> {
|
||||
FansController(this.mid);
|
||||
int ps = 20;
|
||||
int total = 0;
|
||||
int mid;
|
||||
|
||||
@@ -27,7 +26,6 @@ class FansController extends CommonListController<FansData, FansItemModel> {
|
||||
Future<LoadingState<FansData>> customGetData() => FanHttp.fans(
|
||||
vmid: mid,
|
||||
pn: page,
|
||||
ps: ps,
|
||||
orderType: 'attention',
|
||||
);
|
||||
|
||||
|
||||
@@ -48,13 +48,12 @@ class FollowChildController
|
||||
@override
|
||||
Future<LoadingState<FollowData>> customGetData() {
|
||||
if (tagid != null) {
|
||||
return MemberHttp.followUpGroup(mid, tagid, page, 20);
|
||||
return MemberHttp.followUpGroup(mid: mid, tagid: tagid, pn: page);
|
||||
}
|
||||
|
||||
return FollowHttp.followingsNew(
|
||||
vmid: mid,
|
||||
pn: page,
|
||||
ps: 20,
|
||||
orderType: orderType.value.type,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -8,13 +8,11 @@ class HotKeyword extends StatelessWidget {
|
||||
final double width;
|
||||
final List<SearchTrendingItemModel> hotSearchList;
|
||||
final Function? onClick;
|
||||
final bool showMore;
|
||||
const HotKeyword({
|
||||
super.key,
|
||||
required double width,
|
||||
required this.hotSearchList,
|
||||
this.onClick,
|
||||
this.showMore = true,
|
||||
}) : width = width / 2 - 4;
|
||||
|
||||
@override
|
||||
|
||||
@@ -42,42 +42,42 @@ class _SettingPageState extends State<SettingPage> {
|
||||
final RxBool _noAccount = Accounts.accountMode.isEmpty.obs;
|
||||
late bool _isPortrait;
|
||||
|
||||
final List<_SettingsModel> _items = [
|
||||
const _SettingsModel(
|
||||
final List<_SettingsModel> _items = const [
|
||||
_SettingsModel(
|
||||
type: SettingType.privacySetting,
|
||||
subtitle: '黑名单、无痕模式',
|
||||
icon: Icons.privacy_tip_outlined,
|
||||
),
|
||||
const _SettingsModel(
|
||||
_SettingsModel(
|
||||
type: SettingType.recommendSetting,
|
||||
subtitle: '推荐来源(web/app)、刷新保留内容、过滤器',
|
||||
icon: Icons.explore_outlined,
|
||||
),
|
||||
const _SettingsModel(
|
||||
_SettingsModel(
|
||||
type: SettingType.videoSetting,
|
||||
subtitle: '画质、音质、解码、缓冲、音频输出等',
|
||||
icon: Icons.video_settings_outlined,
|
||||
),
|
||||
const _SettingsModel(
|
||||
_SettingsModel(
|
||||
type: SettingType.playSetting,
|
||||
subtitle: '双击/长按、全屏、后台播放、弹幕、字幕、底部进度条等',
|
||||
icon: Icons.touch_app_outlined,
|
||||
),
|
||||
const _SettingsModel(
|
||||
_SettingsModel(
|
||||
type: SettingType.styleSetting,
|
||||
subtitle: '横屏适配(平板)、侧栏、列宽、首页、动态红点、主题、字号、图片、帧率等',
|
||||
icon: Icons.style_outlined,
|
||||
),
|
||||
const _SettingsModel(
|
||||
_SettingsModel(
|
||||
type: SettingType.extraSetting,
|
||||
subtitle: '震动、搜索、收藏、ai、评论、动态、代理、更新检查等',
|
||||
icon: Icons.extension_outlined,
|
||||
),
|
||||
const _SettingsModel(
|
||||
_SettingsModel(
|
||||
type: SettingType.webdavSetting,
|
||||
icon: MdiIcons.databaseCogOutline,
|
||||
),
|
||||
const _SettingsModel(
|
||||
_SettingsModel(
|
||||
type: SettingType.about,
|
||||
icon: Icons.info_outline,
|
||||
),
|
||||
|
||||
@@ -1435,7 +1435,7 @@ class VideoDetailController extends GetxController
|
||||
return;
|
||||
}
|
||||
|
||||
void setSub(subtitle) {
|
||||
void setSub(String subtitle) {
|
||||
plPlayerController.videoPlayerController?.setSubtitleTrack(
|
||||
SubtitleTrack.data(
|
||||
subtitle,
|
||||
|
||||
@@ -870,19 +870,17 @@ class HeaderControlState extends State<HeaderControl> {
|
||||
try {
|
||||
final res = await Dio().get(
|
||||
item.subtitleUrl!.http2https,
|
||||
options: Options(
|
||||
responseType: ResponseType.bytes,
|
||||
),
|
||||
options: Options(responseType: ResponseType.bytes),
|
||||
);
|
||||
if (res.statusCode == 200) {
|
||||
final name =
|
||||
'${videoIntroController.videoDetail.value.title}-${videoDetailCtr.bvid}-${videoDetailCtr.cid.value}-${item.lanDoc}';
|
||||
'${videoIntroController.videoDetail.value.title}-${videoDetailCtr.bvid}-${videoDetailCtr.cid.value}-${item.lanDoc}.json';
|
||||
try {
|
||||
DocumentFileSavePlusPlatform.instance
|
||||
.saveMultipleFiles(
|
||||
dataList: [res.data],
|
||||
fileNameList: [name],
|
||||
mimeTypeList: ['text/plain'],
|
||||
mimeTypeList: [Headers.jsonContentType],
|
||||
);
|
||||
if (Platform.isAndroid) {
|
||||
SmartDialog.showToast('已保存');
|
||||
@@ -894,7 +892,7 @@ class HeaderControlState extends State<HeaderControl> {
|
||||
XFile.fromData(
|
||||
res.data,
|
||||
name: name,
|
||||
mimeType: 'text/plain',
|
||||
mimeType: Headers.jsonContentType,
|
||||
),
|
||||
],
|
||||
sharePositionOrigin: await Utils.isIpad()
|
||||
|
||||
Reference in New Issue
Block a user