mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
chore: clean up
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user