flowtoken_flutter 0.1.1 copy "flowtoken_flutter: ^0.1.1" to clipboard
flowtoken_flutter: ^0.1.1 copied to clipboard

Flutter port of FlowToken — smooth animations for streaming LLM text and markdown. Inspired by https://github.com/Ephibbs/flowtoken

FlowToken Flutter 🌊 #

Flutter port of FlowToken — smooth animations for streaming LLM text and markdown.

Inspired by the original React library; uses gpt_markdown for static rendering.

Install #

dependencies:
  flowtoken_flutter:
    git:
      url: https://github.com/undivisible/flowtoken_flutter
      ref: main

Usage #

import 'package:flowtoken_flutter/flowtoken_flutter.dart';

// Streaming assistant reply
AnimatedMarkdown(
  content: streamBuffer,
  separator: FlowTokenSeparator.diff,
  animation: FlowTokenAnimation.fadeIn,
)

// Completed message — no animation
AnimatedMarkdown(
  content: message,
  animation: null,
)

Animations #

fadeIn, blurIn, dropIn, slideUp, slideInFromLeft, fadeAndScale, blurAndSharpen

License #

ISC — see FlowToken for the original concept.

0
likes
150
points
879
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter port of FlowToken — smooth animations for streaming LLM text and markdown. Inspired by https://github.com/Ephibbs/flowtoken

Repository (GitHub)
View/report issues

License

ISC (license)

Dependencies

flutter, gpt_markdown, url_launcher

More

Packages that depend on flowtoken_flutter