typewritertext 2.2.0 copy "typewritertext: ^2.2.0" to clipboard
typewritertext: ^2.2.0 copied to clipboard

A simple typewriter text animation wrapper for flutter. Supports iOS, Android, web, Windows, macOS, and Linux.

example/lib/main.dart

import 'package:auto_size_text/auto_size_text.dart';
import 'package:flutter/material.dart';
import 'package:typewritertext/typewritertext.dart';

void main() {
  runApp(MaterialApp(
      title: 'Typewritertext Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(primarySwatch: Colors.blue),
      home: const MyApp()));
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body: Padding(
            padding: const EdgeInsets.all(20.0),
            child: Center(
                child: Column(
                    crossAxisAlignment: CrossAxisAlignment.start,
                    children: [
                  TypeWriterText(
                      repeat: false,
                      text: Text("Hello and Welcome.",
                          textAlign: TextAlign.left,
                          style: Theme.of(context).textTheme.titleMedium),
                      duration: const Duration(milliseconds: 50)),
                  TypeWriterText(
                      repeat: false,
                      text: Text("My name is Chris McBrien. ",
                          textAlign: TextAlign.left,
                          style: Theme.of(context).textTheme.headlineLarge),
                      duration: const Duration(milliseconds: 100)),
                  TypeWriterText(
                      repeat: false,
                      text: Text("Builder of things. ",
                          textAlign: TextAlign.left,
                          style: Theme.of(context).textTheme.headlineLarge),
                      duration: const Duration(milliseconds: 50)),
                  Padding(
                      padding: const EdgeInsets.fromLTRB(0, 10, 0, 10),
                      child: TypeWriterText.builder(
                          "I'm a full-stack web and salesforce developer, schrum master, and solution architext. I'm a full-stack web and salesforce developer, schrum master, and solution architext. I'm a full-stack web and salesforce developer, schrum master, and solution architext. I'm a full-stack web and salesforce developer, schrum master, and solution architext.",
                          repeat: false, builder: (context, value) {
                        return AutoSizeText(
                          value,
                          maxLines: 2,
                          minFontSize: 2.0,
                          textAlign: TextAlign.left,
                          style: const TextStyle(fontSize: 20.0),
                        );
                      }, duration: const Duration(milliseconds: 50)))
                ]))));
  }
}
137
likes
0
pub points
95%
popularity

Publisher

verified publisherinidia.app

A simple typewriter text animation wrapper for flutter. Supports iOS, Android, web, Windows, macOS, and Linux.

Repository (GitHub)
View/report issues

Topics

#utility

Funding

Consider supporting this project:

www.buymeacoffee.com

License

unknown (license)

Dependencies

flutter

More

Packages that depend on typewritertext