feat: support dynaudnorm & webp (#1186)

* feat: support dynaudnorm & webp

* Revert "remove audio_normalization"

This reverts commit 477b59ce89.

* feat: save webp

* mod: strokeWidth

* feat: webp preset

* feat: save webp select qa

* upgrade volume_controller
This commit is contained in:
My-Responsitories
2025-09-04 20:09:50 +08:00
committed by GitHub
parent f0828ea18c
commit e8a674ca2a
16 changed files with 792 additions and 328 deletions

View File

@@ -54,7 +54,7 @@ class ActionItem extends StatelessWidget {
animation: animation!,
builder: (context, child) => CustomPaint(
size: const Size.square(28),
painter: _ArcPainter(
painter: ArcPainter(
color: primary,
sweepAngle: animation!.value,
),
@@ -110,13 +110,15 @@ class ActionItem extends StatelessWidget {
}
}
class _ArcPainter extends CustomPainter {
const _ArcPainter({
class ArcPainter extends CustomPainter {
const ArcPainter({
required this.color,
required this.sweepAngle,
this.strokeWidth = 2,
});
final Color color;
final double sweepAngle;
final double strokeWidth;
@override
void paint(Canvas canvas, Size size) {
@@ -126,7 +128,7 @@ class _ArcPainter extends CustomPainter {
final paint = Paint()
..color = color
..strokeWidth = 2
..strokeWidth = strokeWidth
..style = PaintingStyle.stroke;
final rect = Rect.fromCircle(
@@ -140,7 +142,7 @@ class _ArcPainter extends CustomPainter {
}
@override
bool shouldRepaint(covariant _ArcPainter oldDelegate) {
bool shouldRepaint(covariant ArcPainter oldDelegate) {
return sweepAngle != oldDelegate.sweepAngle || color != oldDelegate.color;
}
}