typethis 0.1.0 copy "typethis: ^0.1.0" to clipboard
typethis: ^0.1.0 copied to clipboard

A flutter package that aims to simplify versatile typing animation with reset functionality.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    final typeThisWidget = TypeThis(
      string: 'Hi there! How are you doing?',
      speed: 100,
      style: const TextStyle(fontSize: 20),
    );

    return MaterialApp(
      title: 'Flutter TypeThis Demo',
      theme: ThemeData(
        primarySwatch: Colors.deepPurple,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: const Text('TypeThis Example'),
        ),
        body: Center(
          child: typeThisWidget,
        ),
        floatingActionButton: FloatingActionButton(
          onPressed: () => typeThisWidget.controller.reset(),
          child: const Icon(Icons.refresh),
        ),
      ),
    );
  }
}
36
likes
0
pub points
75%
popularity

Publisher

verified publisherthecodexhub.dev

A flutter package that aims to simplify versatile typing animation with reset functionality.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

flutter

More

Packages that depend on typethis