remove warning
This commit is contained in:
@ -1,10 +1,7 @@
|
|||||||
import 'dart:developer';
|
|
||||||
|
|
||||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:pilipala/common/constants.dart';
|
import 'package:pilipala/common/constants.dart';
|
||||||
import 'package:pilipala/common/widgets/badge.dart';
|
|
||||||
import 'package:pilipala/common/widgets/stat/danmu.dart';
|
import 'package:pilipala/common/widgets/stat/danmu.dart';
|
||||||
import 'package:pilipala/common/widgets/stat/up.dart';
|
import 'package:pilipala/common/widgets/stat/up.dart';
|
||||||
import 'package:pilipala/common/widgets/stat/view.dart';
|
import 'package:pilipala/common/widgets/stat/view.dart';
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
// ignore_for_file: avoid_print
|
||||||
|
|
||||||
import 'package:dio/dio.dart';
|
import 'package:dio/dio.dart';
|
||||||
import 'package:connectivity_plus/connectivity_plus.dart';
|
import 'package:connectivity_plus/connectivity_plus.dart';
|
||||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
import 'package:dio/dio.dart';
|
|
||||||
import 'package:pilipala/common/constants.dart';
|
import 'package:pilipala/common/constants.dart';
|
||||||
import 'package:pilipala/http/api.dart';
|
import 'package:pilipala/http/api.dart';
|
||||||
import 'package:pilipala/http/constants.dart';
|
|
||||||
import 'package:pilipala/http/init.dart';
|
import 'package:pilipala/http/init.dart';
|
||||||
import 'package:pilipala/models/model_hot_video_item.dart';
|
import 'package:pilipala/models/model_hot_video_item.dart';
|
||||||
import 'package:pilipala/models/user/fav_detail.dart';
|
import 'package:pilipala/models/user/fav_detail.dart';
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
// ignore_for_file: constant_identifier_names
|
||||||
|
|
||||||
enum VideoQuality {
|
enum VideoQuality {
|
||||||
speed240,
|
speed240,
|
||||||
flunt360,
|
flunt360,
|
||||||
|
|||||||
@ -7,7 +7,6 @@ import 'package:pilipala/http/search.dart';
|
|||||||
import 'package:pilipala/http/video.dart';
|
import 'package:pilipala/http/video.dart';
|
||||||
import 'package:pilipala/models/bangumi/info.dart';
|
import 'package:pilipala/models/bangumi/info.dart';
|
||||||
import 'package:pilipala/models/user/fav_folder.dart';
|
import 'package:pilipala/models/user/fav_folder.dart';
|
||||||
import 'package:pilipala/models/video_detail_res.dart';
|
|
||||||
import 'package:pilipala/pages/video/detail/index.dart';
|
import 'package:pilipala/pages/video/detail/index.dart';
|
||||||
import 'package:pilipala/pages/video/detail/reply/index.dart';
|
import 'package:pilipala/pages/video/detail/reply/index.dart';
|
||||||
import 'package:pilipala/utils/feed_back.dart';
|
import 'package:pilipala/utils/feed_back.dart';
|
||||||
|
|||||||
@ -388,7 +388,7 @@ class _BangumiInfoState extends State<BangumiInfo> {
|
|||||||
ActionItem(
|
ActionItem(
|
||||||
icon: const Icon(FontAwesomeIcons.comment),
|
icon: const Icon(FontAwesomeIcons.comment),
|
||||||
selectIcon: const Icon(FontAwesomeIcons.reply),
|
selectIcon: const Icon(FontAwesomeIcons.reply),
|
||||||
onTap: () => videoDetailCtr.tabCtr!.animateTo(1),
|
onTap: () => videoDetailCtr.tabCtr.animateTo(1),
|
||||||
selectStatus: false,
|
selectStatus: false,
|
||||||
loadingStatus: false,
|
loadingStatus: false,
|
||||||
text: !widget.loadingStatus
|
text: !widget.loadingStatus
|
||||||
|
|||||||
@ -3,12 +3,10 @@ import 'dart:async';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/rendering.dart';
|
import 'package:flutter/rendering.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:hive/hive.dart';
|
|
||||||
import 'package:pilipala/common/constants.dart';
|
import 'package:pilipala/common/constants.dart';
|
||||||
import 'package:pilipala/common/widgets/http_error.dart';
|
import 'package:pilipala/common/widgets/http_error.dart';
|
||||||
import 'package:pilipala/pages/main/index.dart';
|
import 'package:pilipala/pages/main/index.dart';
|
||||||
import 'package:pilipala/pages/rcmd/view.dart';
|
import 'package:pilipala/pages/rcmd/view.dart';
|
||||||
import 'package:pilipala/utils/storage.dart';
|
|
||||||
|
|
||||||
import 'controller.dart';
|
import 'controller.dart';
|
||||||
import 'widgets/bangumu_card_v.dart';
|
import 'widgets/bangumu_card_v.dart';
|
||||||
@ -121,10 +119,10 @@ class _BangumiPageState extends State<BangumiPage>
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return SizedBox();
|
return const SizedBox();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return SizedBox();
|
return const SizedBox();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
@ -1,17 +1,14 @@
|
|||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:custom_sliding_segmented_control/custom_sliding_segmented_control.dart';
|
import 'package:custom_sliding_segmented_control/custom_sliding_segmented_control.dart';
|
||||||
import 'package:flutter/cupertino.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/rendering.dart';
|
import 'package:flutter/rendering.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:hive/hive.dart';
|
import 'package:hive/hive.dart';
|
||||||
import 'package:pilipala/common/skeleton/dynamic_card.dart';
|
import 'package:pilipala/common/skeleton/dynamic_card.dart';
|
||||||
import 'package:pilipala/common/widgets/http_error.dart';
|
import 'package:pilipala/common/widgets/http_error.dart';
|
||||||
import 'package:pilipala/common/widgets/network_img_layer.dart';
|
|
||||||
import 'package:pilipala/models/dynamics/result.dart';
|
import 'package:pilipala/models/dynamics/result.dart';
|
||||||
import 'package:pilipala/pages/main/index.dart';
|
import 'package:pilipala/pages/main/index.dart';
|
||||||
import 'package:pilipala/pages/mine/index.dart';
|
|
||||||
import 'package:pilipala/utils/feed_back.dart';
|
import 'package:pilipala/utils/feed_back.dart';
|
||||||
import 'package:pilipala/utils/storage.dart';
|
import 'package:pilipala/utils/storage.dart';
|
||||||
|
|
||||||
|
|||||||
@ -73,7 +73,7 @@ class _LivePageState extends State<LivePage> {
|
|||||||
padding:
|
padding:
|
||||||
const EdgeInsets.fromLTRB(0, StyleString.safeSpace, 0, 0),
|
const EdgeInsets.fromLTRB(0, StyleString.safeSpace, 0, 0),
|
||||||
sliver: FutureBuilder(
|
sliver: FutureBuilder(
|
||||||
future: _liveController.queryLiveList('init'),
|
future: _futureBuilderFuture,
|
||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
if (snapshot.connectionState == ConnectionState.done) {
|
if (snapshot.connectionState == ConnectionState.done) {
|
||||||
Map data = snapshot.data as Map;
|
Map data = snapshot.data as Map;
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:pilipala/http/constants.dart';
|
import 'package:pilipala/http/constants.dart';
|
||||||
import 'package:pilipala/http/live.dart';
|
import 'package:pilipala/http/live.dart';
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
import 'dart:async';
|
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:hive/hive.dart';
|
import 'package:hive/hive.dart';
|
||||||
|
|||||||
@ -2,7 +2,6 @@ import 'package:flutter/cupertino.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:loading_more_list/loading_more_list.dart';
|
import 'package:loading_more_list/loading_more_list.dart';
|
||||||
import 'package:pilipala/common/widgets/pull_to_refresh_header.dart';
|
|
||||||
import 'package:pilipala/common/widgets/video_card_h.dart';
|
import 'package:pilipala/common/widgets/video_card_h.dart';
|
||||||
import 'package:pilipala/models/member/archive.dart';
|
import 'package:pilipala/models/member/archive.dart';
|
||||||
import 'package:pilipala/pages/member/archive/index.dart';
|
import 'package:pilipala/pages/member/archive/index.dart';
|
||||||
@ -152,7 +151,6 @@ class LoadMoreListSource extends LoadingMoreBase<VListItemModel> {
|
|||||||
if (res['status']) {
|
if (res['status']) {
|
||||||
addAll(res['data'].list.vlist);
|
addAll(res['data'].list.vlist);
|
||||||
}
|
}
|
||||||
print(length);
|
|
||||||
if (length < res['data'].page['count']) {
|
if (length < res['data'].page['count']) {
|
||||||
isSuccess = true;
|
isSuccess = true;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -120,7 +120,7 @@ class _MemberDynamicPanelState extends State<MemberDynamicPanel>
|
|||||||
class LoadMoreListSource extends LoadingMoreBase<DynamicItemModel> {
|
class LoadMoreListSource extends LoadingMoreBase<DynamicItemModel> {
|
||||||
final _dynamicController = Get.put(MemberDynamicPanelController());
|
final _dynamicController = Get.put(MemberDynamicPanelController());
|
||||||
|
|
||||||
// @override
|
@override
|
||||||
Future<bool> loadData([bool isloadMoreAction = false]) async {
|
Future<bool> loadData([bool isloadMoreAction = false]) async {
|
||||||
bool isSuccess = false;
|
bool isSuccess = false;
|
||||||
var res = await _dynamicController.getMemberDynamic();
|
var res = await _dynamicController.getMemberDynamic();
|
||||||
|
|||||||
@ -6,7 +6,6 @@ import 'package:get/get.dart';
|
|||||||
import 'package:pilipala/common/constants.dart';
|
import 'package:pilipala/common/constants.dart';
|
||||||
import 'package:pilipala/common/widgets/network_img_layer.dart';
|
import 'package:pilipala/common/widgets/network_img_layer.dart';
|
||||||
import 'package:pilipala/models/common/theme_type.dart';
|
import 'package:pilipala/models/common/theme_type.dart';
|
||||||
import 'package:pilipala/utils/storage.dart';
|
|
||||||
import 'controller.dart';
|
import 'controller.dart';
|
||||||
|
|
||||||
class MinePage extends StatelessWidget {
|
class MinePage extends StatelessWidget {
|
||||||
|
|||||||
@ -132,6 +132,7 @@ class _ImagePreviewState extends State<ImagePreview>
|
|||||||
|
|
||||||
_doubleClickAnimationController.forward();
|
_doubleClickAnimationController.forward();
|
||||||
},
|
},
|
||||||
|
// ignore: body_might_complete_normally_nullable
|
||||||
loadStateChanged: (ExtendedImageState state) {
|
loadStateChanged: (ExtendedImageState state) {
|
||||||
if (state.extendedImageLoadState == LoadState.loading) {
|
if (state.extendedImageLoadState == LoadState.loading) {
|
||||||
final ImageChunkEvent? loadingProgress =
|
final ImageChunkEvent? loadingProgress =
|
||||||
|
|||||||
@ -79,7 +79,7 @@ class _RcmdPageState extends State<RcmdPage>
|
|||||||
? EdgeInsets.zero
|
? EdgeInsets.zero
|
||||||
: const EdgeInsets.fromLTRB(0, StyleString.safeSpace, 0, 0),
|
: const EdgeInsets.fromLTRB(0, StyleString.safeSpace, 0, 0),
|
||||||
sliver: FutureBuilder(
|
sliver: FutureBuilder(
|
||||||
future: _rcmdController.queryRcmdFeed('init'),
|
future: _futureBuilderFuture,
|
||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
if (snapshot.connectionState == ConnectionState.done) {
|
if (snapshot.connectionState == ConnectionState.done) {
|
||||||
Map data = snapshot.data as Map;
|
Map data = snapshot.data as Map;
|
||||||
|
|||||||
@ -49,7 +49,7 @@ class _SearchPanelState extends State<SearchPanel>
|
|||||||
scrollController.position.maxScrollExtent - 100) {
|
scrollController.position.maxScrollExtent - 100) {
|
||||||
if (!_isLoadingMore) {
|
if (!_isLoadingMore) {
|
||||||
_isLoadingMore = true;
|
_isLoadingMore = true;
|
||||||
await _searchPanelController!.onSearch(type: 'onLoad');
|
await _searchPanelController.onSearch(type: 'onLoad');
|
||||||
_isLoadingMore = false;
|
_isLoadingMore = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:pilipala/models/common/search_type.dart';
|
import 'package:pilipala/models/common/search_type.dart';
|
||||||
import 'package:pilipala/pages/rcmd/index.dart';
|
|
||||||
import 'package:pilipala/pages/searchPanel/index.dart';
|
import 'package:pilipala/pages/searchPanel/index.dart';
|
||||||
import 'controller.dart';
|
import 'controller.dart';
|
||||||
|
|
||||||
|
|||||||
@ -67,7 +67,7 @@ class _PlaySettingState extends State<PlaySetting> {
|
|||||||
dense: false,
|
dense: false,
|
||||||
title: Text('默认画质', style: titleStyle),
|
title: Text('默认画质', style: titleStyle),
|
||||||
subtitle: Text(
|
subtitle: Text(
|
||||||
'当前画质' + VideoQualityCode.fromCode(defaultVideoQa)!.description!,
|
'当前画质${VideoQualityCode.fromCode(defaultVideoQa)!.description!}',
|
||||||
style: subTitleStyle,
|
style: subTitleStyle,
|
||||||
),
|
),
|
||||||
trailing: PopupMenuButton(
|
trailing: PopupMenuButton(
|
||||||
@ -92,7 +92,7 @@ class _PlaySettingState extends State<PlaySetting> {
|
|||||||
dense: false,
|
dense: false,
|
||||||
title: Text('默认音质', style: titleStyle),
|
title: Text('默认音质', style: titleStyle),
|
||||||
subtitle: Text(
|
subtitle: Text(
|
||||||
'当前音质' + AudioQualityCode.fromCode(defaultAudioQa)!.description!,
|
'当前音质${AudioQualityCode.fromCode(defaultAudioQa)!.description!}',
|
||||||
style: subTitleStyle,
|
style: subTitleStyle,
|
||||||
),
|
),
|
||||||
trailing: PopupMenuButton(
|
trailing: PopupMenuButton(
|
||||||
@ -117,8 +117,7 @@ class _PlaySettingState extends State<PlaySetting> {
|
|||||||
dense: false,
|
dense: false,
|
||||||
title: Text('默认解码格式', style: titleStyle),
|
title: Text('默认解码格式', style: titleStyle),
|
||||||
subtitle: Text(
|
subtitle: Text(
|
||||||
'当前解码格式' +
|
'当前解码格式${VideoDecodeFormatsCode.fromCode(defaultDecode)!.description!}',
|
||||||
VideoDecodeFormatsCode.fromCode(defaultDecode)!.description!,
|
|
||||||
style: subTitleStyle,
|
style: subTitleStyle,
|
||||||
),
|
),
|
||||||
trailing: PopupMenuButton(
|
trailing: PopupMenuButton(
|
||||||
@ -143,9 +142,7 @@ class _PlaySettingState extends State<PlaySetting> {
|
|||||||
dense: false,
|
dense: false,
|
||||||
title: Text('默认全屏方式', style: titleStyle),
|
title: Text('默认全屏方式', style: titleStyle),
|
||||||
subtitle: Text(
|
subtitle: Text(
|
||||||
'当前全屏方式:' +
|
'当前全屏方式:${FullScreenModeCode.fromCode(defaultFullScreenMode)!.description}',
|
||||||
FullScreenModeCode.fromCode(defaultFullScreenMode)!
|
|
||||||
.description,
|
|
||||||
style: subTitleStyle,
|
style: subTitleStyle,
|
||||||
),
|
),
|
||||||
trailing: PopupMenuButton(
|
trailing: PopupMenuButton(
|
||||||
|
|||||||
@ -7,10 +7,6 @@ class SettingPage extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
TextStyle subTitleStyle = Theme.of(context)
|
|
||||||
.textTheme
|
|
||||||
.labelMedium!
|
|
||||||
.copyWith(color: Theme.of(context).colorScheme.outline);
|
|
||||||
final SettingController settingController = Get.put(SettingController());
|
final SettingController settingController = Get.put(SettingController());
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
|
|||||||
@ -19,8 +19,8 @@ class SetSelectItem extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _SetSelectItemState extends State<SetSelectItem> {
|
class _SetSelectItemState extends State<SetSelectItem> {
|
||||||
Box Setting = GStrorage.setting;
|
Box setting = GStrorage.setting;
|
||||||
late var currentVal;
|
late dynamic currentVal;
|
||||||
late int currentIndex;
|
late int currentIndex;
|
||||||
late List menus;
|
late List menus;
|
||||||
late List<PopupMenuEntry> popMenuItems;
|
late List<PopupMenuEntry> popMenuItems;
|
||||||
@ -33,7 +33,7 @@ class _SetSelectItemState extends State<SetSelectItem> {
|
|||||||
case 'defaultVideoQa':
|
case 'defaultVideoQa':
|
||||||
defaultVal = VideoQuality.values.last.description;
|
defaultVal = VideoQuality.values.last.description;
|
||||||
List<VideoQuality> list = menus = VideoQuality.values.reversed.toList();
|
List<VideoQuality> list = menus = VideoQuality.values.reversed.toList();
|
||||||
currentVal = Setting.get(widget.setKey, defaultValue: defaultVal);
|
currentVal = setting.get(widget.setKey, defaultValue: defaultVal);
|
||||||
currentIndex =
|
currentIndex =
|
||||||
list.firstWhere((i) => i.description == currentVal).index;
|
list.firstWhere((i) => i.description == currentVal).index;
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ class _SetSelectItemState extends State<SetSelectItem> {
|
|||||||
case 'defaultAudioQa':
|
case 'defaultAudioQa':
|
||||||
defaultVal = AudioQuality.values.last.description;
|
defaultVal = AudioQuality.values.last.description;
|
||||||
List<AudioQuality> list = menus = AudioQuality.values.reversed.toList();
|
List<AudioQuality> list = menus = AudioQuality.values.reversed.toList();
|
||||||
currentVal = Setting.get(widget.setKey, defaultValue: defaultVal);
|
currentVal = setting.get(widget.setKey, defaultValue: defaultVal);
|
||||||
currentIndex =
|
currentIndex =
|
||||||
list.firstWhere((i) => i.description == currentVal).index;
|
list.firstWhere((i) => i.description == currentVal).index;
|
||||||
|
|
||||||
@ -65,7 +65,7 @@ class _SetSelectItemState extends State<SetSelectItem> {
|
|||||||
break;
|
break;
|
||||||
case 'defaultDecode':
|
case 'defaultDecode':
|
||||||
defaultVal = VideoDecodeFormats.values[0].description;
|
defaultVal = VideoDecodeFormats.values[0].description;
|
||||||
currentVal = Setting.get(widget.setKey, defaultValue: defaultVal);
|
currentVal = setting.get(widget.setKey, defaultValue: defaultVal);
|
||||||
List<VideoDecodeFormats> list = menus = VideoDecodeFormats.values;
|
List<VideoDecodeFormats> list = menus = VideoDecodeFormats.values;
|
||||||
|
|
||||||
currentIndex =
|
currentIndex =
|
||||||
@ -82,7 +82,7 @@ class _SetSelectItemState extends State<SetSelectItem> {
|
|||||||
break;
|
break;
|
||||||
case 'defaultVideoSpeed':
|
case 'defaultVideoSpeed':
|
||||||
defaultVal = '1.0';
|
defaultVal = '1.0';
|
||||||
currentVal = Setting.get(widget.setKey, defaultValue: defaultVal);
|
currentVal = setting.get(widget.setKey, defaultValue: defaultVal);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -142,7 +142,6 @@ class VideoDetailController extends GetxController
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future playerInit({video, audio, seekToTime, duration}) async {
|
Future playerInit({video, audio, seekToTime, duration}) async {
|
||||||
print('data.timeLength:${data.timeLength}');
|
|
||||||
await plPlayerController.setDataSource(
|
await plPlayerController.setDataSource(
|
||||||
DataSource(
|
DataSource(
|
||||||
videoSource: video ?? videoUrl,
|
videoSource: video ?? videoUrl,
|
||||||
|
|||||||
@ -121,7 +121,6 @@ class IntroDetail extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
InlineSpan buildContent(BuildContext context, content) {
|
InlineSpan buildContent(BuildContext context, content) {
|
||||||
String desc = content.desc;
|
|
||||||
List descV2 = content.descV2;
|
List descV2 = content.descV2;
|
||||||
// type
|
// type
|
||||||
// 1 普通文本
|
// 1 普通文本
|
||||||
@ -146,7 +145,7 @@ class IntroDetail extends StatelessWidget {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
default:
|
default:
|
||||||
return TextSpan();
|
return const TextSpan();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return TextSpan(children: spanChilds);
|
return TextSpan(children: spanChilds);
|
||||||
|
|||||||
@ -2,7 +2,6 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:pilipala/http/reply.dart';
|
import 'package:pilipala/http/reply.dart';
|
||||||
import 'package:pilipala/models/common/reply_type.dart';
|
import 'package:pilipala/models/common/reply_type.dart';
|
||||||
import 'package:pilipala/models/video/reply/data.dart';
|
|
||||||
import 'package:pilipala/models/video/reply/item.dart';
|
import 'package:pilipala/models/video/reply/item.dart';
|
||||||
|
|
||||||
class VideoReplyReplyController extends GetxController {
|
class VideoReplyReplyController extends GetxController {
|
||||||
|
|||||||
@ -319,7 +319,6 @@ class _HeaderControlState extends State<HeaderControl> {
|
|||||||
|
|
||||||
/// 选择音质
|
/// 选择音质
|
||||||
void showSetAudioQa() {
|
void showSetAudioQa() {
|
||||||
List<FormatItem> videoFormat = videoInfo.supportFormats!;
|
|
||||||
AudioQuality currentAudioQa = widget.videoDetailCtr!.currentAudioQa;
|
AudioQuality currentAudioQa = widget.videoDetailCtr!.currentAudioQa;
|
||||||
|
|
||||||
List<AudioItem> audio = videoInfo.dash!.audio!;
|
List<AudioItem> audio = videoInfo.dash!.audio!;
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
// ignore_for_file: avoid_print
|
||||||
|
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:typed_data';
|
import 'dart:typed_data';
|
||||||
|
|
||||||
@ -66,6 +68,7 @@ class PlPlayerController {
|
|||||||
final Rx<BoxFit> _videoFit = Rx(BoxFit.fill);
|
final Rx<BoxFit> _videoFit = Rx(BoxFit.fill);
|
||||||
|
|
||||||
///
|
///
|
||||||
|
// ignore: prefer_final_fields
|
||||||
Rx<bool> _isSliderMoving = false.obs;
|
Rx<bool> _isSliderMoving = false.obs;
|
||||||
PlaylistMode _looping = PlaylistMode.none;
|
PlaylistMode _looping = PlaylistMode.none;
|
||||||
bool _autoPlay = false;
|
bool _autoPlay = false;
|
||||||
|
|||||||
@ -721,7 +721,6 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
},
|
},
|
||||||
child: BackwardSeekIndicator(
|
child: BackwardSeekIndicator(
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
print(value);
|
|
||||||
// _seekBarDeltaValueNotifier.value = -value;
|
// _seekBarDeltaValueNotifier.value = -value;
|
||||||
},
|
},
|
||||||
onSubmitted: (value) {
|
onSubmitted: (value) {
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
import 'dart:io';
|
|
||||||
import 'package:cookie_jar/cookie_jar.dart';
|
import 'package:cookie_jar/cookie_jar.dart';
|
||||||
import 'package:pilipala/http/init.dart';
|
import 'package:pilipala/http/init.dart';
|
||||||
import 'package:pilipala/utils/utils.dart';
|
import 'package:pilipala/utils/utils.dart';
|
||||||
|
|||||||
Reference in New Issue
Block a user