パッケージ、リポジトリ、アプリカテゴリを検索

animated_text_lerp のカバー
パッケージ詳細v2.0.0

animated_text_lerp

数値または文字列テキストの間をアニメーションするためのシンプルなウィジェット。数値の増減アニメーション、通貨価値アニメーション、文字列コンテンツの変化アニメーションに役立ちます。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
2050
いいね数
60
Pub ポイント
150

パッケージをインストール

flutter pub add animated_text_lerp

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

AnimatedTextLerp は、数値または文字列の値の間をなめらかにアニメーションするためのシンプルなウィジェットを提供する Flutter パッケージです。増加または減少する数値、通貨の更新、視覚的な連続性を持つテキストコンテンツの変更など、動的テキストのスムーズな遷移を可能にします。ダッシュボード、カウンター、リアルタイムデータ表示に最適で、複雑なアニメーションなしに滑らかな視覚効果を実現するために補間(lerp)を利用しています。このパッケージは Android、iOS、Web、macOS、Windows、Linux などの主要プラットフォームすべてをサポートしています。

用途

  • リアルタイム数カウンター
  • 通貨価値の更新
  • 動的テキストのトランジション
  • ダッシュボードメトリクス
  • 読み込みプログレスインジケーター
  • アニメーション統計

主な機能

  • lerp を使用したスムーズなアニメーション
  • 数値と文字列の両方をサポートしています
  • 最小限のセットアップが必要
  • クロスプラットフォーム互換性
  • カスタマイズ可能な期間とカーブ
  • 組み込みのイージング関数

適している対象

  • シンプルなアニメーションカウンター
  • データ可視化ウィジェット
  • ユーザーインターフェースの向上
  • 教育アプリ
  • 財務ダッシュボード

注意事項

  • 複雑なアニメーションには適していない
  • 基本的なプロパティ以外のカスタマイズは限定的
  • 小さなテキスト変更に最適
  • 高頻度の更新ではパフォーマンスに影響する可能性があります
  • 文字列フォーマットの取り扱いに注意が必要です

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

pub package

Simple widgets to animate between number or string text. Useful for number increase/decrease animation, currency value animation or string content changing animation.

Features

  • Similar to a simple Text widget.
  • Animating between number (int or double) with AnimatedNumberText.
  • Animating between string, which will lerp each character respectively with AnimatedStringText.
  • TextStyle animation supported.
  • Think of Flutter's pre-built animated widget like AnimatedOpacity, AnimatedAlign, ..., but with text.

Getting started

  • First import it:
import 'package:animated_text_lerp/animated_text_lerp.dart';

Usage

AnimatedNumberText

The widget support lerping between number values. Just setState with the current value and the widget will start animating to it.

AnimatedNumberText(
  value, // int or double
  curve: Curves.easeIn,
  duration: const Duration(seconds: 1),
  style: const TextStyle(fontSize: 30),
  formatter: (value) {
    final formatted =
    intl.NumberFormat.currency(locale: "en").format(value);
    return formatted;
  },
)

AnimatedStringText

The widget support lerping between string values. Just setState with the current value and the widget will start animating to it. Each character will lerp to the new corresponding one respectively.

AnimatedStringText(
  value, // string
  curve: Curves.easeIn,
  duration: const Duration(seconds: 1),
  style: const TextStyle(fontSize: 30),
)

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。