chore: clean up

opt: pages

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-19 18:05:02 +08:00
parent e5f3c3c922
commit a2ef4e6f84
99 changed files with 697 additions and 2097 deletions

View File

@@ -3,13 +3,11 @@ import 'dart:async';
import 'package:flutter/material.dart';
class BackwardSeekIndicator extends StatefulWidget {
// final void Function(Duration) onChanged;
final ValueChanged<Duration> onSubmitted;
final int duration;
const BackwardSeekIndicator({
super.key,
// required this.onChanged,
required this.onSubmitted,
required this.duration,
});
@@ -43,8 +41,6 @@ class BackwardSeekIndicatorState extends State<BackwardSeekIndicator> {
timer = Timer(const Duration(milliseconds: 400), () {
widget.onSubmitted.call(duration);
});
// widget.onChanged.call(value);
// 重复点击 快退秒数累加10
setState(() {
duration += Duration(seconds: widget.duration);
});

View File

@@ -50,9 +50,7 @@ class BottomControl extends StatelessWidget implements PreferredSizeWidget {
return Padding(
padding: const EdgeInsets.only(left: 10, right: 10, bottom: 7),
child: Semantics(
// label: '${(value / max * 100).round()}%',
value: '${(value / max * 100).round()}%',
// enabled: false,
child: Stack(
clipBehavior: Clip.none,
alignment: Alignment.bottomCenter,

View File

@@ -3,13 +3,11 @@ import 'dart:async';
import 'package:flutter/material.dart';
class ForwardSeekIndicator extends StatefulWidget {
// final void Function(Duration) onChanged;
final ValueChanged<Duration> onSubmitted;
final int duration;
const ForwardSeekIndicator({
super.key,
// required this.onChanged,
required this.onSubmitted,
required this.duration,
});
@@ -43,8 +41,6 @@ class ForwardSeekIndicatorState extends State<ForwardSeekIndicator> {
timer = Timer(const Duration(milliseconds: 400), () {
widget.onSubmitted.call(duration);
});
// widget.onChanged.call(value);
// 重复点击 快进秒数累加10
setState(() {
duration += Duration(seconds: widget.duration);
});

View File

@@ -77,8 +77,6 @@ class PlayOrPauseButtonState extends State<PlayOrPauseButton>
player.playOrPause();
}
},
// iconSize: widget.iconSize ?? _theme(context).buttonBarButtonSize,
// color: widget.iconColor ?? _theme(context).buttonBarButtonColor,
child: Center(
child: AnimatedIcon(
semanticLabel:
@@ -89,8 +87,6 @@ class PlayOrPauseButtonState extends State<PlayOrPauseButton>
icon: AnimatedIcons.play_pause,
color: Colors.white,
size: 20,
// size: widget.iconSize ?? _theme(context).buttonBarButtonSize,
// color: widget.iconColor ?? _theme(context).buttonBarButtonColor,
),
),
),