diff --git a/lib/common/widgets/content_container.dart b/lib/common/widgets/content_container.dart index a9a1bf120..0abd4bf2a 100644 --- a/lib/common/widgets/content_container.dart +++ b/lib/common/widgets/content_container.dart @@ -34,7 +34,7 @@ class ContentContainer extends StatelessWidget { child: contentWidget!, ) else - Spacer(), + const Spacer(), if (bottomWidget != null) bottomWidget!, ], ), diff --git a/lib/http/html.dart b/lib/http/html.dart index eb1401c9b..100887e52 100644 --- a/lib/http/html.dart +++ b/lib/http/html.dart @@ -15,7 +15,7 @@ class HtmlHttp { Match match = regex.firstMatch(response.data)!; String matchedString = match.group(0)!; response = await Request().get( - 'https:$matchedString' + '/', + 'https:$matchedString/', extra: {'ua': 'pc'}, ); } diff --git a/lib/http/init.dart b/lib/http/init.dart index d446f86df..7840499f5 100644 --- a/lib/http/init.dart +++ b/lib/http/init.dart @@ -6,7 +6,7 @@ import 'package:cookie_jar/cookie_jar.dart'; import 'package:dio/dio.dart'; import 'package:dio/io.dart'; import 'package:dio_cookie_manager/dio_cookie_manager.dart'; -import 'package:dio_http2_adapter/dio_http2_adapter.dart'; +// import 'package:dio_http2_adapter/dio_http2_adapter.dart'; import 'package:hive/hive.dart'; import '../utils/storage.dart'; import '../utils/utils.dart'; diff --git a/lib/pages/whisper/view.dart b/lib/pages/whisper/view.dart index 4de197ca9..f2779a177 100644 --- a/lib/pages/whisper/view.dart +++ b/lib/pages/whisper/view.dart @@ -210,11 +210,11 @@ class _WhisperPageState extends State { ); } else { // 请求错误 - return SizedBox(); + return const SizedBox(); } } else { // 骨架屏 - return SizedBox(); + return const SizedBox(); } }, ) diff --git a/lib/plugin/pl_player/controller.dart b/lib/plugin/pl_player/controller.dart index 16d5befd0..fd3f02c9e 100644 --- a/lib/plugin/pl_player/controller.dart +++ b/lib/plugin/pl_player/controller.dart @@ -289,9 +289,8 @@ class PlPlayerController { _longPressSpeed.value = videoStorage .get(VideoBoxKey.longPressSpeedDefault, defaultValue: 2.0); } - final List speedsListTemp = videoStorage - .get(VideoBoxKey.customSpeedsList, defaultValue: []); - speedsList = List.from(speedsListTemp); + speedsList = List.from(videoStorage + .get(VideoBoxKey.customSpeedsList, defaultValue: [])); for (final PlaySpeed i in PlaySpeed.values) { speedsList.add(i.value); } diff --git a/lib/utils/wbi_sign.dart b/lib/utils/wbi_sign.dart index 68e2bf0ff..4f831f165 100644 --- a/lib/utils/wbi_sign.dart +++ b/lib/utils/wbi_sign.dart @@ -80,7 +80,7 @@ class WbiSign { String getMixinKey(String orig) { String temp = ''; for (int i = 0; i < mixinKeyEncTab.length; i++) { - temp += orig.split('')[mixinKeyEncTab[i] as int]; + temp += orig.split('')[mixinKeyEncTab[i]]; } return temp.substring(0, 32); }