flutter_streaming_text_markdown library

A Flutter package for displaying streaming text with Markdown support.

This package provides widgets for creating animated text displays with markdown formatting. It's perfect for creating typing animations, chat interfaces, or any text that needs to appear gradually with style.

The main widget is StreamingTextMarkdown, which combines markdown rendering with customizable typing animations.

Example usage:

StreamingTextMarkdown(
  text: '''# Welcome! 👋
  This is a **demo** of streaming text with *markdown* support.''',
  typingSpeed: Duration(milliseconds: 50),
  fadeInEnabled: true,
)

Classes

DefaultStreamProvider
A professional default implementation of StreamProvider.
LLMAnimationPresets
Animation presets optimized for LLM text streaming.
StreamConfig
Professional configuration for stream providers.
StreamData
Professional representation of streaming data.
StreamingText
A widget that displays streaming text with real-time updates and markdown support.
StreamingTextConfig
Configuration class for streaming text animations
StreamingTextController
Controller for programmatically controlling StreamingText animations.
StreamingTextMarkdown
A widget that displays streaming text with Markdown support.
StreamingTextTheme
Theme extension for StreamingTextMarkdown widget
StreamProvider
A professional interface for handling streaming data in AI applications.

Enums

AnimationSpeed
Speed presets for quick configuration
StreamDataType
Professional enumeration of stream data types.
StreamingTextState
Represents the current state of a streaming text animation

Extensions

StreamingTextStateExtension on StreamingTextState
Extension methods for StreamingTextState
StreamingTextThemeExtension on BuildContext
Extension method to easily access StreamingTextTheme from BuildContext

Exceptions / Errors

StreamException
Professional exception class for stream-related errors.