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

odometer のカバー
パッケージ詳細v3.0.0

odometer

数字の遷移やカウンターのアニメーションに使用できる、非常にカスタマイズ可能なウィジェットです。

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

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

flutter pub add odometer

パッケージ概要

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

Odometerは、滑らかな数字の遷移やカウンターのアニメーションを実現する高度にカスタマイズ可能なウィジェットを提供するFlutterパッケージです。開発者はカウントダウン、スコアカウンター、または動的な値の更新など、視覚的に魅力的な数値表示を、洗練されたアニメーション効果とともに作成できます。このパッケージは、桁のサイズ、色、間隔、アニメーション期間などのさまざまなスタイルオプションをサポートしており、ダッシュボード、ゲーム、リアルタイムデータのビジュアライゼーションに最適です。パフォーマンスを重視して構築されており、Android、iOS、Web、macOS、Windows、Linuxの各プラットフォームでシームレスに動作します。

用途

  • リアルタイムスコアトラッキング
  • カウントダウンタイマー
  • 動的データ表示
  • ダッシュボードメトリクス
  • ゲームスコアカウンター
  • アニメーション統計

主な機能

  • スムーズな数値遷移アニメーション
  • カスタマイズ可能な数字の外観
  • 設定可能なアニメーション速度
  • 負の数のサポート
  • レスポンシブデザインの統合
  • クロスプラットフォーム互換性

適している対象

  • ゲーム化機能
  • データ可視化ダッシュボード
  • インタラクティブなUI要素
  • 教育アプリ
  • ライブイベントトラッカー

注意事項

  • 多数のインスタンスがあるとパフォーマンスに影響する可能性があります
  • 高頻度の更新に対応するための慎重な調整が必要です
  • 数値のみに制限されます
  • 数値でない遷移には適していません
  • 安定したデータソースと併用するのが最適です

元の README

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

Build Status pub stars style: lint

Odometer

The package which was inspired by the package Odometer js.

Examples of counter animation customization are made using this package:

Examples Gif

In this package you will find pre-built widgets:

  • AnimatedSlideOdometerNumber
  • SlideOdometerTransition

and high modifiable widgets:

  • AnimatedOdometer
  • OdometerTransition

AnimatedSlideOdometerNumber

The ImplicitlyAnimatedWidget uses the AnimatedOdometer with the sliding and fading digits transitions.

   AnimatedSlideOdometerNumber(
     numberTextStyle: TextStyle(fontSize: 15),
     odometerNumber: OdometerNumber(_counter),
     duration: Duration(seconds: 1))

SlideOdometerTransition

The ExplicitlyAnimatedWidget uses the OdometerTransition with the sliding and fading digits transitions.

    SlideOdometerTransition(
      numberTextStyle: TextStyle(fontSize: 15),
      odometerAnimation: _odometerAnimation,
      duration: Duration(seconds: 1))

Base widgets AnimatedOdometer and OdometerTransition

The AnimatedOdometer is based on implicit animation, and the OdometerTransition is based on explicit animation. To customize the odometer, you need to use two OdometerAnimationTransitionBuilders for new and old numbers. You will have access to:

  • The digit
  • The digit place
  • The animation progress of this digit

カテゴリー

ソースリポジトリ

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

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