flutter-slide-to-act icon indicating copy to clipboard operation
flutter-slide-to-act copied to clipboard

Adding checkAnimationEnabled property?

Open Jose-Develaw opened this issue 10 months ago • 0 comments

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

Jose-Develaw avatar Apr 22 '24 11:04 Jose-Develaw