fix: bangumi

This commit is contained in:
bggRGjQaUbCoE
2024-10-02 10:00:21 +08:00
parent 01583253aa
commit 2bd19ec5f8
4 changed files with 17 additions and 15 deletions

View File

@@ -35,8 +35,7 @@ class ActionItem extends StatefulWidget {
State<ActionItem> createState() => ActionItemState();
}
class ActionItemState extends State<ActionItem>
with SingleTickerProviderStateMixin {
class ActionItemState extends State<ActionItem> with TickerProviderStateMixin {
AnimationController? controller;
Animation<double>? _animation;
@@ -58,7 +57,7 @@ class ActionItemState extends State<ActionItem>
controller?.reverse();
widget.callBack!(false);
}
if (duration <= 500 && !isCancel) {
if (duration <= 50 && !isCancel) {
feedBack();
widget.onTap!();
}