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

A flutter package that aims to simplify versatile typing animation with reset, freeze and unfreeze functionality.

example/lib/main.dart

import 'package:example/widgets/widgets.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: 18),
    );

    return MaterialApp(
      title: 'Flutter TypeThis Demo',
      theme: ThemeData(primarySwatch: Colors.deepPurple),
      home: Scaffold(
        appBar: AppBar(
          title: const Text('TypeThis Example'),
          backgroundColor: Colors.grey[200],
        ),
        body: Center(
          child: CustomDecoratedBox(
            typeThisWidget: typeThisWidget,
            onResetPressed: () => typeThisWidget.controller.reset(),
            onFreezePressed: () => typeThisWidget.controller.freeze(),
            onUnfreezePressed: () => typeThisWidget.controller.unfreeze(),
          ),
        ),
      ),
    );
  }
}
33
likes
0
pub points
74%
popularity

Publisher

verified publisherthecodexhub.dev

A flutter package that aims to simplify versatile typing animation with reset, freeze and unfreeze functionality.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

flutter

More

Packages that depend on typethis