flutter-slide-to-act
flutter-slide-to-act copied to clipboard
Adding checkAnimationEnabled property?
The submittedIcon property admits a Widget.
I thought that is great cause I can show a Circular Progress Indicator instead of the check_icon. But I cannot find a way to avoid the animation to spoil the effect.
Is there any posibility of adding a property in order to control the animation to occur? Something like:
final bool checkAnimationEnabled;
const SlideAction({
//the other props
this.checkAnimationEnabled = true
});
if (checkAnimationEnabled)
Positioned.fill(
right: 0,
child: Transform(
transform: Matrix4.rotationY(
_checkAnimationDx * (pi / 2)),
alignment: Alignment.centerRight,
child: Container(
color: widget.outerColor ??
Theme.of(context).colorScheme.secondary,
),
),
),
Thanks in advance