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

A package to simulate AI typing text.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
      ),
      body: const Padding(
        padding: EdgeInsets.all(16.0),
        child: Column(
          mainAxisSize: MainAxisSize.max,
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment: CrossAxisAlignment.start,
          children: <Widget>[
            AiTypingText(
              Text(
                  'Hello, World!\n\nThis is a package to simulate AI typing text.'),
              interval: Duration(milliseconds: 100),
              delay: Duration(milliseconds: 800),
              maxFluctuation: Duration(milliseconds: 100),
              enabled: true,
            ),
          ],
        ),
      ),
    );
  }
}
1
likes
150
points
38
downloads

Publisher

unverified uploader

Weekly Downloads

A package to simulate AI typing text.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on ai_typing