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

Added hold duration in rotate and fade animation #341

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aakash-pamnani
Copy link

Added holdDuration and animationDuration parameter in rotate animation and
holdDuration, fadeInDuration and fadeOutDuration in fade animation.
If works the will add in other animations also.

Video Sample

DefaultTextStyle(
                  style: TextStyle(
                    fontSize: 40.0,
                    fontFamily: 'Horizon',
                  ),
                  child: AnimatedTextKit(
                    animatedTexts: [
                      RotateAnimatedText('AWESOME',
                          holdDuration: Duration(seconds: 1)),
                      RotateAnimatedText('OPTIMISTIC'),
                      RotateAnimatedText(
                        'DIFFERENT',
                        textStyle: const TextStyle(
                          decoration: TextDecoration.underline,
                        ),
                        holdDuration: Duration(seconds: 5),
                      ),
                    ],
                    onTap: onTap,
                    isRepeatingAnimation: true,
                    totalRepeatCount: 10,
                  ),
                ),
Animated.Text.Kit.-.Google.Chrome.2024-06-05.01-09-26.mp4
DefaultTextStyle(
          style: const TextStyle(
            fontSize: 32.0,
            fontWeight: FontWeight.bold,
          ),
          child: AnimatedTextKit(
            animatedTexts: [
              FadeAnimatedText(
                'do IT!',
                holdDuration: Duration(seconds: 2),
                fadeInDuration: Duration(milliseconds: 5000),
              ),
              FadeAnimatedText('do it RIGHT!!',
                  holdDuration: Duration(seconds: 2)),
              FadeAnimatedText('do it RIGHT NOW!!!',
                  holdDuration: Duration(seconds: 2)),
            ],
            onTap: onTap,
          ),
        ),
AnimatedTextKit-GoogleChrome2024-06-0501-13-04-ezgif.com-video-cutter.mp4

Solves : #340

@aagarwal1012

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

Successfully merging this pull request may close these issues.

1 participant