aagarwal1012 / Animated-Text-Kit

🔔 A flutter package to create cool and beautiful text animations. [Flutter Favorite Package]
https://animated-text-kit.web.app
MIT License
1.64k stars 306 forks source link

Request For Alignment Function #314

Closed anmol420 closed 1 year ago

anmol420 commented 1 year ago

I actually tried the FadeAnimatedText function and it worked perfect, but when I tried aligning it to center then, it did not worked.

Please add some feature to make the code align !

I am also adding my code and the output for your reference. Maybe it is a issue from my end as I tried this for first time.

Code -

Center(
      child: Column(
        mainAxisSize: MainAxisSize.min,
        children: [
          DefaultTextStyle(
            style: const TextStyle(
              fontSize: 32,
              fontWeight: FontWeight.bold,
            ),
            textAlign: TextAlign.center,
            child: AnimatedTextKit(
              animatedTexts: [
                FadeAnimatedText("Happy Birthday !"),
                FadeAnimatedText("May God Bless You !"),
                FadeAnimatedText("Always Stay Happy & Creative !"),
              ],
              onTap: () {},
            ),
          ),
        ],
      ),
    );

Output (Issue In The Third Line, Although I Applied textAlign ) - output

anmol420 commented 1 year ago

I found the way of doing it. Sorry Raising The Issue !