Compare commits

...

3 Commits

Author SHA1 Message Date
dom
662ccfcf0a upgrade deps
Signed-off-by: dom <githubaccount56556@proton.me>
2026-03-19 20:34:36 +08:00
dom
b7ab3655c4 flutter 3.41.5
Signed-off-by: dom <githubaccount56556@proton.me>
2026-03-19 20:34:36 +08:00
Starfallen
eda04b32a4 fix(player): clamp loudnorm measured_thresh parameters to valid range (#1871)
Co-authored-by: ci <example@example.com>
2026-03-19 08:30:17 +00:00
5 changed files with 42 additions and 62 deletions

2
.fvmrc
View File

@@ -1,3 +1,3 @@
{ {
"flutter": "3.41.4" "flutter": "3.41.5"
} }

View File

@@ -15,7 +15,6 @@
* along with PiliPlus. If not, see <https://www.gnu.org/licenses/>. * along with PiliPlus. If not, see <https://www.gnu.org/licenses/>.
*/ */
import 'dart:io' show Platform;
import 'dart:math' show pi; import 'dart:math' show pi;
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@@ -95,29 +94,6 @@ class RenderLoadingIndicator extends RenderBox {
final radius = size.width / 2 - strokeWidth; final radius = size.width / 2 - strokeWidth;
final center = size.center(.zero); final center = size.center(.zero);
// TODO: remove
// https://github.com/flutter/flutter/issues/182708
// https://github.com/flutter/flutter/issues/183083
if (Platform.isIOS) {
context.canvas
..drawCircle(
center,
radius,
paint..color = Colors.white,
)
..drawCircle(
center,
radius - strokeWidth,
paint..color = const Color(0x80000000),
)
..drawArc(
Rect.fromCircle(center: center, radius: radius - padding),
startAngle,
progress * 2 * pi,
true,
paint..color = Colors.white,
);
} else {
context.canvas context.canvas
..drawCircle( ..drawCircle(
center, center,
@@ -142,7 +118,6 @@ class RenderLoadingIndicator extends RenderBox {
paint..style = .fill, paint..style = .fill,
); );
} }
}
@override @override
bool get isRepaintBoundary => true; bool get isRepaintBoundary => true;

View File

@@ -377,6 +377,11 @@ class Volume {
i -= measuredI; i -= measuredI;
measuredI = 0; measuredI = 0;
} }
num measuredThreshold = this.measuredThreshold;
if (measuredThreshold > 0) {
measuredThreshold = 0;
}
return 'LRA=$lra:I=$i:TP=$tp:offset=$offset:linear=true:measured_I=$measuredI:measured_LRA=$measuredLra:measured_TP=$measuredTp:measured_thresh=$measuredThreshold'; return 'LRA=$lra:I=$i:TP=$tp:offset=$offset:linear=true:measured_I=$measuredI:measured_LRA=$measuredLra:measured_TP=$measuredTp:measured_thresh=$measuredThreshold';
} }

View File

@@ -117,10 +117,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: audio_session name: audio_session
sha256: "8f96a7fecbb718cb093070f868b4cdcb8a9b1053dce342ff8ab2fde10eb9afb7" sha256: "7217b229db57cc4dc577a8abb56b7429a5a212b978517a5be578704bfe5e568b"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.2.2" version: "0.2.3"
auto_orientation: auto_orientation:
dependency: "direct main" dependency: "direct main"
description: description:
@@ -190,10 +190,10 @@ packages:
dependency: "direct dev" dependency: "direct dev"
description: description:
name: build_runner name: build_runner
sha256: "7981eb922842c77033026eb4341d5af651562008cdb116bdfa31fc46516b6462" sha256: "3552e5c2874ed47cf9ed9d6813ac71b2276ee07622f48530468b8013f1767e3f"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.12.2" version: "2.13.0"
built_collection: built_collection:
dependency: transitive dependency: transitive
description: description:
@@ -530,7 +530,7 @@ packages:
description: description:
path: "." path: "."
ref: mod ref: mod
resolved-ref: "11ef8f872482b31d570787e60c813e565dcfd011" resolved-ref: "8ba6a6a73691262bd006deec247311d136596032"
url: "https://github.com/bggRGjQaUbCoE/flutter_file_picker.git" url: "https://github.com/bggRGjQaUbCoE/flutter_file_picker.git"
source: git source: git
version: "11.0.0" version: "11.0.0"
@@ -1082,10 +1082,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: logger name: logger
sha256: a7967e31b703831a893bbc3c3dd11db08126fe5f369b5c648a36f821979f5be3 sha256: "25aee487596a6257655a1e091ec2ae66bc30e7af663592cc3a27e6591e05035c"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.6.2" version: "2.7.0"
logging: logging:
dependency: transitive dependency: transitive
description: description:
@@ -1241,10 +1241,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: native_toolchain_c name: native_toolchain_c
sha256: "92b2ca62c8bd2b8d2f267cdfccf9bfbdb7322f778f8f91b3ce5b5cda23a3899f" sha256: "6ba77bb18063eebe9de401f5e6437e95e1438af0a87a3a39084fbd37c90df572"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.17.5" version: "0.17.6"
nm: nm:
dependency: transitive dependency: transitive
description: description:
@@ -1569,10 +1569,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: sentry name: sentry
sha256: "605ad1f6f1ae5b72018cbe8fc20f490fa3bd53e58882e5579566776030d8c8c1" sha256: a49b4fb1cba576fe216347dc2a0e6d76076fb998e6012857db96f991c23b7b3c
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "9.14.0" version: "9.15.0"
share_plus: share_plus:
dependency: "direct main" dependency: "direct main"
description: description:
@@ -2063,4 +2063,4 @@ packages:
version: "3.1.3" version: "3.1.3"
sdks: sdks:
dart: ">=3.10.3 <4.0.0" dart: ">=3.10.3 <4.0.0"
flutter: "3.41.4" flutter: "3.41.5"

View File

@@ -21,7 +21,7 @@ version: 2.0.1+1
environment: environment:
sdk: ">=3.10.0" sdk: ">=3.10.0"
flutter: 3.41.4 # update `.fvmrc` config flutter: 3.41.5 # update `.fvmrc` config
# Dependencies specify other packages that your package needs in order to work. # Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions # To automatically upgrade your package dependencies to the latest versions