animated_text 1.0.0 copy "animated_text: ^1.0.0" to clipboard
animated_text: ^1.0.0 copied to clipboard

outdated

Animated_Text for Flutter provides animated translation between the words by reusing the similar alphabets between them.

example/lib/main.dart

import 'package:animated_text/animated_text.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  bool play = true;
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Text Animations'),
      ),
      body: Container(
        color: Colors.yellow,
        child: Column(
          children: <Widget>[
            Container(
              width: MediaQuery.of(context).size.width,
              decoration: BoxDecoration(
                image: DecorationImage(
                    image: AssetImage('assets/three.jpg'), fit: BoxFit.fill),
              ),
              height: 300,
              child: new AnimatedText(
                alignment: Alignment.center,
                speed: Duration(milliseconds: 1000),
                controller: AnimatedTextController.loop,
                displayTime: Duration(milliseconds: 2000),
                wordList: ['flutter', 'future'],
                repeatCount: 10,
                textStyle: TextStyle(
                    color: Colors.white,
                    fontSize: 55,
                    fontWeight: FontWeight.w700),
                onAnimate: (index) {
                  print("index:" + index.toString());
                },
                onFinished: () {
                  print("Animtion finished");
                },
              ),
            ),
          ],
        ),
      ),
    );
  }
}
182
likes
0
points
27
downloads

Publisher

verified publisherjustkawal.dev

Weekly Downloads

Animated_Text for Flutter provides animated translation between the words by reusing the similar alphabets between them.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on animated_text