flutter_typing_ai 1.0.1 copy "flutter_typing_ai: ^1.0.1" to clipboard
flutter_typing_ai: ^1.0.1 copied to clipboard

A smart Flutter widget that simulates human-like typing with typos, markdown, sound, and more.

๐Ÿง  flutter_typing_ai #

A smart Flutter widget that simulates human-like typing with realistic delays, typos, markdown rendering, and sound effects โ€” perfect for chatbots, storytelling, or AI assistants.

version likes score


โœจ Features #

  • โฑ๏ธ Realistic typing speed with random delays between characters.
  • ๐Ÿ˜… Human-like typos (with smart correction behavior).
  • ๐Ÿ”Š Optional keyboard click sound per character.
  • ๐Ÿ” Supports stream-based typing (Stream<String>).
  • ๐Ÿงพ Markdown support (bold, italics, code, etc.).

๐Ÿš€ Getting Started #

1. Add the dependency #

dependencies:
  flutter_typing_ai: ^1.0.0

2. Import it #

import 'package:flutter_typing_ai/flutter_typing_ai.dart';

3. Example #

// Static text typing
TypingText(
  text: "Hello, I type like a real human... ๐Ÿค–",
  style: TextStyle(fontSize: 20),
  simulateTypos: true,
  enableSound: true,
  useMarkdown: false,
)
// Stream-based typing
TypingText(
  textStream: yourStreamOfText,
  useMarkdown: true,
)

๐Ÿ“š Parameters #

Parameter Type Default Description
text String? null The static text to be typed out character by character.
textStream Stream<String>? null A stream of text chunks to type dynamically, useful for live updates.
style TextStyle - Text style to apply to the typed text.
simulateTypos bool false Enables simulation of human-like typos and corrections.
enableSound bool false Enables keyboard click sound effect during typing.
useMarkdown bool false Enables Markdown rendering for rich text formatting (bold, italic, code, etc.).
minDelay Duration Duration(milliseconds: 30) Minimum delay between typing each character, to simulate typing speed variance.
maxDelay Duration Duration(milliseconds: 150) Maximum delay between typing each character, to simulate typing speed variance.

๐Ÿ“„ License #

MIT License ยฉ 2025 Rezaqi Adib

๐Ÿ“ฆ Example App #

Check out the full example in the example folder for a complete demo.

๐Ÿ’ก Use Cases #

  • ๐Ÿค– Chatbots & AI Assistants
  • ๐Ÿ“š Storytelling / interactive fiction
  • ๐Ÿงช Typing effects in tutorials or onboarding
  • ๐ŸŽฎ Narrative games

๐Ÿ› ๏ธ Contributing #

Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.

1
likes
130
points
29
downloads

Publisher

unverified uploader

Weekly Downloads

A smart Flutter widget that simulates human-like typing with typos, markdown, sound, and more.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_markdown

More

Packages that depend on flutter_typing_ai