diff --git a/change_log/1.0.9.1015.md b/change_log/1.0.9.1015.md new file mode 100644 index 00000000..8b71e183 --- /dev/null +++ b/change_log/1.0.9.1015.md @@ -0,0 +1,28 @@ +## 1.0.9 + + +### 新功能 ++ 自定义倍速、默认倍速 ++ 历史记录搜索 ++ 收藏夹搜索 ++ 历史记录多选删除 ++ 视频循环播放 ++ 免登录看1080P ++ 评论区视频链接跳转 ++ up主分组 ++ up主投稿搜索 + +### 修复 ++ 搜索视频标题乱码 ++ 屏幕帧率 ++ 动态页面渲染 + + + +### 优化 ++ 快进手势 ++ 视频简介链接匹配 ++ 视频全屏时安全区域 + +更多更新日志可在Github上查看 +问题反馈、功能建议请查看「关于」页面。 diff --git a/lib/pages/dynamics/widgets/additional_panel.dart b/lib/pages/dynamics/widgets/additional_panel.dart index ee26e73e..fa11f217 100644 --- a/lib/pages/dynamics/widgets/additional_panel.dart +++ b/lib/pages/dynamics/widgets/additional_panel.dart @@ -83,45 +83,53 @@ Widget addWidget(item, context, type, {floor = 1}) { ); case 'ADDITIONAL_TYPE_RESERVE': return dynamicProperty[type].state != -1 - ? Padding( - padding: const EdgeInsets.only(top: 8), - child: InkWell( - onTap: () {}, - child: Container( - width: double.infinity, - padding: const EdgeInsets.only( - left: 12, top: 10, right: 12, bottom: 10), - color: bgColor, - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - dynamicProperty[type].title, - maxLines: 1, - overflow: TextOverflow.ellipsis, + ? dynamicProperty[type].title != null + ? Padding( + padding: const EdgeInsets.only(top: 8), + child: InkWell( + onTap: () {}, + child: Container( + width: double.infinity, + padding: const EdgeInsets.only( + left: 12, top: 10, right: 12, bottom: 10), + color: bgColor, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + dynamicProperty[type].title, + maxLines: 1, + overflow: TextOverflow.ellipsis, + ), + const SizedBox(height: 1), + Text.rich( + TextSpan( + style: TextStyle( + color: Theme.of(context).colorScheme.outline, + fontSize: Theme.of(context) + .textTheme + .labelMedium! + .fontSize), + children: [ + if (dynamicProperty[type].desc1 != null) + TextSpan( + text: + dynamicProperty[type].desc1['text']), + const TextSpan(text: ' '), + if (dynamicProperty[type].desc2 != null) + TextSpan( + text: + dynamicProperty[type].desc2['text']), + ], + ), + ) + ], ), - const SizedBox(height: 1), - Text.rich( - TextSpan( - style: TextStyle( - color: Theme.of(context).colorScheme.outline, - fontSize: Theme.of(context) - .textTheme - .labelMedium! - .fontSize), - children: [ - TextSpan(text: dynamicProperty[type].desc1['text']), - const TextSpan(text: ' '), - TextSpan(text: dynamicProperty[type].desc2['text']), - ], - ), - ) - ], + // TextButton(onPressed: () {}, child: Text('123')) + ), ), - // TextButton(onPressed: () {}, child: Text('123')) - ), - ), - ) + ) + : const SizedBox() : const SizedBox(); case 'ADDITIONAL_TYPE_GOODS': // 商品 diff --git a/lib/plugin/pl_player/controller.dart b/lib/plugin/pl_player/controller.dart index df1d9eae..78845e60 100644 --- a/lib/plugin/pl_player/controller.dart +++ b/lib/plugin/pl_player/controller.dart @@ -377,7 +377,8 @@ class PlPlayerController { ); var pp = player.platform as NativePlayer; - + // 解除倍速限制 + await pp.setProperty("af", "scaletempo2=max-speed=8"); // 音轨 if (dataSource.audioSource != '' && dataSource.audioSource != null) { await pp.setProperty( diff --git a/lib/utils/utils.dart b/lib/utils/utils.dart index 4ccd689a..f571e10d 100644 --- a/lib/utils/utils.dart +++ b/lib/utils/utils.dart @@ -206,7 +206,7 @@ class Utils { static Future checkUpdata() async { SmartDialog.dismiss(); var currentInfo = await PackageInfo.fromPlatform(); - var result = await Request().get(Api.latestApp); + var result = await Request().get(Api.latestApp, extra: {'ua': 'mob'}); LatestDataModel data = LatestDataModel.fromJson(result.data); bool isUpdate = Utils.needUpdate(currentInfo.version, data.tagName!); if (isUpdate) { diff --git a/pubspec.yaml b/pubspec.yaml index daed5d17..4fb8df02 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.0.8 +version: 1.0.9 environment: sdk: ">=2.19.6 <3.0.0"