opt change episode

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-03 10:42:26 +08:00
parent 14fd660ce2
commit cf835e330b
20 changed files with 223 additions and 298 deletions

View File

@@ -26,7 +26,7 @@ class BackwardSeekIndicatorState extends State<BackwardSeekIndicator> {
super.initState();
duration = Duration(seconds: widget.duration);
timer = Timer(const Duration(milliseconds: 400), () {
widget.onSubmitted.call(duration);
widget.onSubmitted(duration);
});
}
@@ -39,7 +39,7 @@ class BackwardSeekIndicatorState extends State<BackwardSeekIndicator> {
void increment() {
timer?.cancel();
timer = Timer(const Duration(milliseconds: 400), () {
widget.onSubmitted.call(duration);
widget.onSubmitted(duration);
});
setState(() {
duration += Duration(seconds: widget.duration);

View File

@@ -26,7 +26,7 @@ class ForwardSeekIndicatorState extends State<ForwardSeekIndicator> {
super.initState();
duration = Duration(seconds: widget.duration);
timer = Timer(const Duration(milliseconds: 400), () {
widget.onSubmitted.call(duration);
widget.onSubmitted(duration);
});
}
@@ -39,7 +39,7 @@ class ForwardSeekIndicatorState extends State<ForwardSeekIndicator> {
void increment() {
timer?.cancel();
timer = Timer(const Duration(milliseconds: 400), () {
widget.onSubmitted.call(duration);
widget.onSubmitted(duration);
});
setState(() {
duration += Duration(seconds: widget.duration);