morphing_text 0.1.0+1 copy "morphing_text: ^0.1.0+1" to clipboard
morphing_text: ^0.1.0+1 copied to clipboard

outdated

Text animations inspired by https://github.com/lexrus/LTMorphingLabel

Morphing Text #

It is a collection of text animations inspired by LTMorphingLabel.

Animations #

ScaleMorphingText #

ScaleMorphingText(
    texts: text,
    loopForever: true,
    onComplete: () {},
    textStyle: TextStyle(color: Colors.black, fontSize: 40.0),
),

All Parameters #

Type Parameter Description Default
List<String> texts List of String which will show the text -
TextStyle textStyle Styling of texts DefaultTextStyle
Duration speed Define the speed of changing of each text 500 milliseconds
Duration pause Define the pause between each transition 1500 milliseconds
bool loopForever When true animations will repeat indefinitely false
int loopCount Number of time animation will repeat itself 1
void onComplete When loopCount is completed it is called -
Curve fadeInCurve Curve which controls opacity from 0 to 1 Curves.easeInExpo
Curve fadeOutCurve Curve which controls opacity from 1 to 0 Curves.easeOut
Curve progressCurve Curve which controls movement of text and scale changes Curves.easeIn

Changing Curves is purely experimental, select proper curves as per your need or leave them at default

Installation #

Add in your pubspec.yaml

dependencies:
  morphing_text: <latest>

install packages

flutter packages get

Then import it in your main

import 'package: morphing_text/morphing_text.dart';

Want to Contribute? #

A help is always welcomed, check our CONTRIBUTING.md

52
likes
0
pub points
75%
popularity

Publisher

verified publisherdarshanrander.com

Text animations inspired by https://github.com/lexrus/LTMorphingLabel

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on morphing_text