upgrade deps

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-23 17:56:26 +08:00
parent 70b55e5fdd
commit 0b495f100f
9 changed files with 68 additions and 57 deletions

View File

@@ -175,7 +175,7 @@
<activity <activity
android:name="com.yalantis.ucrop.UCropActivity" android:name="com.yalantis.ucrop.UCropActivity"
android:screenOrientation="portrait" android:screenOrientation="portrait"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/> android:theme="@style/Ucrop.CropTheme"/>
<receiver <receiver
android:name="com.ryanheise.audioservice.MediaButtonReceiver" android:name="com.ryanheise.audioservice.MediaButtonReceiver"

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Ucrop.CropTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
</style>
</resources>

View File

@@ -21,4 +21,6 @@
<item name="android:windowBackground">?android:colorBackground</item> <item name="android:windowBackground">?android:colorBackground</item>
<item name="android:windowLayoutInDisplayCutoutMode" tools:targetApi="o_mr1">shortEdges</item> <item name="android:windowLayoutInDisplayCutoutMode" tools:targetApi="o_mr1">shortEdges</item>
</style> </style>
<style name="Ucrop.CropTheme" parent="Theme.AppCompat.Light.NoActionBar"/>
</resources> </resources>

View File

@@ -498,7 +498,7 @@ class Stat {
Stat.fromJson(Map<String, dynamic> json) { Stat.fromJson(Map<String, dynamic> json) {
aid = json["aid"]; aid = json["aid"];
view = json["view"]; view = json["view"] == -1 ? 0 : json["view"];
danmaku = json["danmaku"]; danmaku = json["danmaku"];
reply = json["reply"]; reply = json["reply"];
favorite = json["favorite"]; favorite = json["favorite"];

View File

@@ -2,7 +2,6 @@ import 'dart:async';
import 'dart:io'; import 'dart:io';
import 'dart:math'; import 'dart:math';
import 'package:PiliPlus/common/constants.dart';
import 'package:PiliPlus/common/widgets/button/icon_button.dart'; import 'package:PiliPlus/common/widgets/button/icon_button.dart';
import 'package:PiliPlus/http/msg.dart'; import 'package:PiliPlus/http/msg.dart';
import 'package:PiliPlus/models/common/image_preview_type.dart'; import 'package:PiliPlus/models/common/image_preview_type.dart';
@@ -304,7 +303,7 @@ abstract class CommonPublishPageState<T extends CommonPublishPage>
}, },
onLongPress: onClear, onLongPress: onClear,
child: ClipRRect( child: ClipRRect(
borderRadius: StyleString.mdRadius, borderRadius: const BorderRadius.all(Radius.circular(4)),
child: Image( child: Image(
height: height, height: height,
fit: BoxFit.fitHeight, fit: BoxFit.fitHeight,

View File

@@ -91,41 +91,44 @@ class _CreateDynPanelState extends CommonPublishPageState<CreateDynPanel> {
Widget _buildImageList(ThemeData theme) => Obx( Widget _buildImageList(ThemeData theme) => Obx(
() => SizedBox( () => SizedBox(
height: 100, height: 100,
child: ListView.separated( child: SingleChildScrollView(
scrollDirection: Axis.horizontal, scrollDirection: Axis.horizontal,
physics: const AlwaysScrollableScrollPhysics(
parent: BouncingScrollPhysics(),
),
padding: const EdgeInsets.symmetric(horizontal: 16), padding: const EdgeInsets.symmetric(horizontal: 16),
itemCount: pathList.length == limit ? limit : pathList.length + 1, child: Row(
itemBuilder: (context, index) { spacing: 10,
if (pathList.length != limit && index == pathList.length) { children: [
return Material( ...List.generate(
borderRadius: const BorderRadius.all(Radius.circular(12)), pathList.length, (index) => buildImage(index, 100)),
child: InkWell( if (pathList.length != limit)
borderRadius: const BorderRadius.all(Radius.circular(12)), Builder(
onTap: () => onPickImage(() { builder: (context) {
if (pathList.isNotEmpty && !enablePublish.value) { const borderRadius =
enablePublish.value = true; BorderRadius.all(Radius.circular(10));
} return Material(
}), borderRadius: borderRadius,
child: Ink( child: InkWell(
width: 100, borderRadius: borderRadius,
height: 100, onTap: () => onPickImage(() {
decoration: BoxDecoration( if (pathList.isNotEmpty && !enablePublish.value) {
borderRadius: enablePublish.value = true;
const BorderRadius.all(Radius.circular(12)), }
color: theme.colorScheme.secondaryContainer, }),
), child: Ink(
child: const Center(child: Icon(Icons.add, size: 35)), width: 100,
), height: 100,
decoration: BoxDecoration(
borderRadius: borderRadius,
color: theme.colorScheme.secondaryContainer,
),
child:
const Center(child: Icon(Icons.add, size: 35)),
),
),
);
},
), ),
); ],
} else { ),
return buildImage(index, 100);
}
},
separatorBuilder: (context, index) => const SizedBox(width: 10),
), ),
), ),
); );

View File

@@ -93,15 +93,16 @@ class _ReplyPageState extends CommonPublishPageState<ReplyPage> {
return Container( return Container(
height: 85, height: 85,
padding: const EdgeInsets.only(bottom: 10), padding: const EdgeInsets.only(bottom: 10),
child: ListView.separated( child: SingleChildScrollView(
scrollDirection: Axis.horizontal, scrollDirection: Axis.horizontal,
physics: const AlwaysScrollableScrollPhysics(
parent: BouncingScrollPhysics(),
),
padding: const EdgeInsets.symmetric(horizontal: 15), padding: const EdgeInsets.symmetric(horizontal: 15),
itemCount: pathList.length, child: Row(
itemBuilder: (context, index) => buildImage(index, 75), spacing: 10,
separatorBuilder: (context, index) => const SizedBox(width: 10), children: List.generate(
pathList.length,
(index) => buildImage(index, 75),
),
),
), ),
); );
} else { } else {

View File

@@ -130,10 +130,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: audio_session name: audio_session
sha256: "2b7fff16a552486d078bfc09a8cde19f426dc6d6329262b684182597bec5b1ac" sha256: "8f96a7fecbb718cb093070f868b4cdcb8a9b1053dce342ff8ab2fde10eb9afb7"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.1.25" version: "0.2.2"
auto_orientation: auto_orientation:
dependency: "direct main" dependency: "direct main"
description: description:
@@ -590,10 +590,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: fl_chart name: fl_chart
sha256: "74959b99b92b9eebeed1a4049426fd67c4abc3c5a0f4d12e2877097d6a11ae08" sha256: "577aeac8ca414c25333334d7c4bb246775234c0e44b38b10a82b559dd4d764e7"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.69.2" version: "1.0.0"
flex_seed_scheme: flex_seed_scheme:
dependency: "direct main" dependency: "direct main"
description: description:
@@ -932,10 +932,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: image_cropper name: image_cropper
sha256: "266760ed426d7121f0ada02c672bfe5c1b5c714e908328716aee756f045709dc" sha256: "4e9c96c029eb5a23798da1b6af39787f964da6ffc78fd8447c140542a9f7c6fc"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "8.1.0" version: "9.1.0"
image_cropper_for_web: image_cropper_for_web:
dependency: transitive dependency: transitive
description: description:
@@ -1358,18 +1358,18 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: permission_handler name: permission_handler
sha256: "59adad729136f01ea9e35a48f5d1395e25cba6cea552249ddbe9cf950f5d7849" sha256: "2d070d8684b68efb580a5997eb62f675e8a885ef0be6e754fb9ef489c177470f"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "11.4.0" version: "12.0.0+1"
permission_handler_android: permission_handler_android:
dependency: transitive dependency: transitive
description: description:
name: permission_handler_android name: permission_handler_android
sha256: d3971dcdd76182a0c198c096b5db2f0884b0d4196723d21a866fc4cdea057ebc sha256: "1e3bc410ca1bf84662104b100eb126e066cb55791b7451307f9708d4007350e6"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "12.1.0" version: "13.0.1"
permission_handler_apple: permission_handler_apple:
dependency: transitive dependency: transitive
description: description:

View File

@@ -65,7 +65,7 @@ dependencies:
# 设备信息 # 设备信息
device_info_plus: ^11.2.0 device_info_plus: ^11.2.0
# 权限 # 权限
permission_handler: ^11.3.1 permission_handler: ^12.0.0+1
# 分享 # 分享
# share_plus: ^10.0.2 # share_plus: ^10.0.2
share_plus: share_plus:
@@ -116,7 +116,7 @@ dependencies:
# 媒体通知 # 媒体通知
audio_service: ^0.18.15 audio_service: ^0.18.15
audio_session: ^0.1.23 audio_session: ^0.2.2
# 音量、亮度、屏幕控制 # 音量、亮度、屏幕控制
flutter_volume_controller: ^1.3.3 flutter_volume_controller: ^1.3.3
@@ -184,13 +184,13 @@ dependencies:
intl: ^0.20.2 intl: ^0.20.2
archive: ^4.0.0 archive: ^4.0.0
flutter_svg: ^2.0.14 flutter_svg: ^2.0.14
image_cropper: ^8.0.2 image_cropper: ^9.1.0
#解压直播消息 #解压直播消息
brotli: ^0.6.0 brotli: ^0.6.0
expandable: ^5.0.1 expandable: ^5.0.1
flex_seed_scheme: ^3.4.1 flex_seed_scheme: ^3.4.1
live_photo_maker: ^0.0.6 live_photo_maker: ^0.0.6
fl_chart: ^0.69.2 fl_chart: ^1.0.0
synchronized: ^3.3.0 synchronized: ^3.3.0
document_file_save_plus: ^2.0.0 document_file_save_plus: ^2.0.0
webdav_client: ^1.2.2 webdav_client: ^1.2.2