Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding checkAnimationEnabled property? #24

Open
Jose-Develaw opened this issue Apr 22, 2024 · 0 comments
Open

Adding checkAnimationEnabled property? #24

Jose-Develaw opened this issue Apr 22, 2024 · 0 comments

Comments

@Jose-Develaw
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant