mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-19 00:26:18 +08:00
mod: reenable multi seek
Closes #365 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -34,17 +34,17 @@ class BackwardSeekIndicatorState extends State<BackwardSeekIndicator> {
|
|||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
// void increment() {
|
void increment() {
|
||||||
// timer?.cancel();
|
timer?.cancel();
|
||||||
// timer = Timer(const Duration(milliseconds: 400), () {
|
timer = Timer(const Duration(milliseconds: 400), () {
|
||||||
// widget.onSubmitted.call(value);
|
widget.onSubmitted.call(value);
|
||||||
// });
|
});
|
||||||
// widget.onChanged.call(value);
|
// widget.onChanged.call(value);
|
||||||
// // 重复点击 快退秒数累加10
|
// 重复点击 快退秒数累加10
|
||||||
// setState(() {
|
setState(() {
|
||||||
// value += const Duration(seconds: 10);
|
value += const Duration(seconds: 10);
|
||||||
// });
|
});
|
||||||
// }
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
@@ -59,10 +59,10 @@ class BackwardSeekIndicatorState extends State<BackwardSeekIndicator> {
|
|||||||
end: Alignment.centerRight,
|
end: Alignment.centerRight,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// child: InkWell(
|
|
||||||
// splashColor: const Color(0x44767676),
|
|
||||||
// onTap: increment,
|
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
|
child: InkWell(
|
||||||
|
splashColor: const Color(0x44767676),
|
||||||
|
onTap: increment,
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
@@ -83,7 +83,7 @@ class BackwardSeekIndicatorState extends State<BackwardSeekIndicator> {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
// ),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,17 +34,17 @@ class ForwardSeekIndicatorState extends State<ForwardSeekIndicator> {
|
|||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
// void increment() {
|
void increment() {
|
||||||
// timer?.cancel();
|
timer?.cancel();
|
||||||
// timer = Timer(const Duration(milliseconds: 400), () {
|
timer = Timer(const Duration(milliseconds: 400), () {
|
||||||
// widget.onSubmitted.call(value);
|
widget.onSubmitted.call(value);
|
||||||
// });
|
});
|
||||||
// widget.onChanged.call(value);
|
// widget.onChanged.call(value);
|
||||||
// // 重复点击 快进秒数累加10
|
// 重复点击 快进秒数累加10
|
||||||
// setState(() {
|
setState(() {
|
||||||
// value += const Duration(seconds: 10);
|
value += const Duration(seconds: 10);
|
||||||
// });
|
});
|
||||||
// }
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
@@ -59,10 +59,10 @@ class ForwardSeekIndicatorState extends State<ForwardSeekIndicator> {
|
|||||||
end: Alignment.centerRight,
|
end: Alignment.centerRight,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// child: InkWell(
|
|
||||||
// splashColor: const Color(0x44767676),
|
|
||||||
// onTap: increment,
|
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
|
child: InkWell(
|
||||||
|
splashColor: const Color(0x44767676),
|
||||||
|
onTap: increment,
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
@@ -83,7 +83,7 @@ class ForwardSeekIndicatorState extends State<ForwardSeekIndicator> {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
// ),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user