typewritertext 2.3.1-new copy "typewritertext: ^2.3.1-new" to clipboard
typewritertext: ^2.3.1-new copied to clipboard

retracted

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 SelectionArea(
      child: 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.

Homepage
Repository (GitHub)
View/report issues

Topics

#utility #animation

Funding

Consider supporting this project:

ko-fi.com

License

unknown (license)

Dependencies

flutter

More

Packages that depend on typewritertext