Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions lib/src/animations/attention_seekers/rubber_band.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:flutter/material.dart';

import '../../types/animate_do_mixins.dart';
import '../../types/animate_do_types.dart';

Expand All @@ -11,6 +10,7 @@ class RubberBand extends StatefulWidget {
final Function(AnimationController)? controller;
final bool manualTrigger;
final bool animate;
final bool infinite;
final Function(AnimateDoDirection direction)? onFinish;
final Curve curve;

Expand All @@ -22,6 +22,7 @@ class RubberBand extends StatefulWidget {
this.controller,
this.manualTrigger = false,
this.animate = true,
this.infinite = false,
this.onFinish,
this.curve = Curves.easeOut,
}) : super(key: key) {
Expand Down Expand Up @@ -94,7 +95,7 @@ class RubberBandState extends State<RubberBand>
delay: widget.delay,
animate: widget.animate,
manualTrigger: widget.manualTrigger,
infinite: false,
infinite: widget.infinite,
onFinish: widget.onFinish,
controllerCallback: widget.controller,
);
Expand All @@ -107,7 +108,7 @@ class RubberBandState extends State<RubberBand>
delay: widget.delay,
animate: widget.animate,
manualTrigger: widget.manualTrigger,
infinite: false,
infinite: widget.infinite,
onFinish: widget.onFinish,
controllerCallback: widget.controller,
);
Expand Down Expand Up @@ -143,6 +144,7 @@ extension RubberBandExtension on Widget {
controller: controller,
manualTrigger: manualTrigger,
animate: animate,
infinite: infinite,
onFinish: onFinish,
curve: curve,
child: this,
Expand Down