カテゴリー・パッケージ・リポジトリを検索

activity_ring のカバー
パッケージ詳細v0.3.0

activity_ring

Apple Watchスタイルのリングでプログレスバーを作成するためのFlutterライブラリ。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
1810
いいね数
31
Pub ポイント
140

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

flutter pub add activity_ring

パッケージ概要

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

Flutter ライブラリで、Apple Watch 風の円形プログレスリングを作成できるようにします。視覚的に魅力的でアニメーション付きのリングは、コンパクトかつ直感的な方法で進行状況を表示し、目標、時間、完了割合の追跡に最適です。このパッケージは Android、iOS、Web、macOS、Windows、Linux など複数のプラットフォームをサポートしており、デバイス間で一貫した UI を実現します。アプリのテーマに合わせてカスタマイズ可能な色、ストローク幅、アニメーション効果も提供します。フィットネスアプリやダッシュボード、あるいはエレガントな進行状況の可視化が必要なあらゆるアプリに最適です。

用途

  • フィットネストラッキングアプリ
  • ダッシュボードウィジェット
  • 目標達成インジケーター
  • 時間ベースの進行状況表示
  • インタラクティブなUI要素

主な機能

  • Apple Watch風の円形プログレスリング
  • カスタマイズ可能な色とストローク幅
  • スムーズなアニメーション
  • クロスプラットフォーム対応
  • シンプルな API インテグレーション
  • レスポンシブデザイン

適している対象

  • フィットネスまたはウェルネスアプリを開発する開発者
  • 現代的なUIコンポーネントを探しているデザイナー
  • 視覚的な進行状況フィードバックが必要なアプリ
  • クロスプラットフォームアプリケーション
  • 目的指向型インターフェースを備えたプロジェクト

注意事項

  • Flutter の描画およびアニメーションシステムの理解が必要です
  • 低スペックデバイスではパフォーマンスチューニングが必要になる場合があります
  • 円形プログレスの可視化のみに制限されています
  • 複雑なデータ可視化には適していません

元の README

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

Activity Rings

pub package

Library to create Progress bars in Apple Watch style rings - Apple Watch Rings

To use, import package:activity_ring/activity_ring.dart.

This library is built with to be extremely customizable with low effort. Please check the API documentation if you get stuck anywhere.

Note: Do not let the auto brighten colors to exceed 3 rings as this will cause a runtime exception.

Example

There are several ways to create rings.

Using a single color
Ring(
  percent: 90,
  color: RingColorScheme(ringColor: Colors.red),
  radius: 80,
  width: 10,
  child: Center(child: Text('90%')),
)

RingColor

The above ring is automatically painted with gradients. To have a constant color just pass gradient: false to RingColorScheme.

Using a single gradient
Ring(
  percent: 90,
  color: RingColorScheme(ringGradient: [Colors.red, Colors.blue]),
  radius: 80,
  width: 10,
  child: Center(child: Text('90%')),
),

RingGradient

The above ring is automatically painted with gradient from colors given.

Using same color for a ring with different color for each ring
Ring(
  percent: 190,
  color: RingColorScheme(ringColors: [Colors.red, Colors.blue]),
  radius: 80,
  width: 10,
  child: Center(child: Text('190%')),
),

RingColors

The above ring is automatically painted with gradient from colors given, where each color in list represents that ring's color. To have a constant color just pass gradient: false to RingColorScheme.

Explicitly mentioning gradinet for each ring
Ring(
  percent: 190,
  color: RingColorScheme(ringGradients: [[Colors.red, Colors.yellow], [Colors.yellow, Colors.green]]),
  radius: 80,
  width: 10,
  child: Center(child: Text('190%')),
),

RingGradients

The above ring is automatically painted with gradient from colors given, where each color in list represents that ring's color. To have a constant color just pass gradient: false to RingColorScheme.

TODO

  • [ ] Create templates for apple colors
  • [ ] Add tests and coverage

カテゴリー

ソースリポジトリ

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

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