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

flutter_progress_hud のカバー
パッケージ詳細v2.0.2

flutter_progress_hud

フェードアニメーションを備えた高度にカスタマイズ可能なモーダル進行状況インジケーター。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
2.9万
いいね数
131
Pub ポイント
150

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

flutter pub add flutter_progress_hud

パッケージ概要

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

Flutter向けに高度にカスタマイズ可能なモーダルプログレスインジケーターで、スムーズなフェードアニメーション付きのロードオーバーレイを表示します。非同期処理中のロード状態を簡単に表示・非表示できるため、進行中のプロセスを示すことでユーザー体験を向上させます。メッセージ、色、形状をカスタマイズ可能で、モバイル、Web、デスクトップなどさまざまなプラットフォームに対応しています。フォームやAPI呼び出し、または視覚フィードバックが必要な任意の操作に最適です。

用途

  • APIリクエスト中にロード状態を表示する
  • フォーム送信の進行状況を表示する
  • データ取得中のユーザーエクスペリエンスの向上
  • バックグラウンドタスク中にフィードバックを提供する
  • 長時間実行される操作における処理状態の表示

主な機能

  • フェードインおよびフェードアウトアニメーション
  • カスタマイズ可能なメッセージと外観
  • 複数のプラットフォームをサポートしています
  • 簡単な表示/非表示メソッド
  • カスタマイズ可能なオーバーレイカラーと不透明度
  • デバイス間でのレスポンシブデザイン

適している対象

  • 頻繁な非同期操作を使用するアプリの開発者
  • ユーザー体験を重視するチーム
  • 一貫した読み込みインジケーターを必要とするプロジェクト
  • 複数のプラットフォームをターゲットにするアプリ
  • 洗練されたフィードバックを必要とするUI重視のアプリケーション

注意事項

  • 他のUI要素との重複を避けるために、注意深く管理する必要がある場合があります
  • カスタマイズオプションは、シンプルな使用事例における複雑さを増加させる可能性があります
  • 非常に頻繁な表示/非表示サイクルへのパフォーマンスへの影響
  • モーダルでないロードシナリオには適していません
  • サードパーティの代替品と比べて、組み込みテーマが限られている

元の README

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

pub package

Flutter Progress HUD

Highly customizable modal progress indicator with fade animation.

Preview

Usage

Wrap with ProgressHUD the widget on top of which you want to show the modal indicator.

ProgressHUD(
  child: HomePage(),
)

Get a reference of ProgressHUD

final progress = ProgressHUD.of(context);

Show indeterminate progress

progress.show();

Or a progress with text

progress.showWithText('Loading...');

Then dismiss

progress.dismiss();

Example (full)

ProgressHUD(
        child: Builder(
          builder: (context) => Center(
                child: Column(
                  children: <Widget>[
                    RaisedButton(
                      child: Text('Show for a second'),
                      onPressed: () {
                        final progress = ProgressHUD.of(context);
                        progress.show();
                        Future.delayed(Duration(seconds: 1), () {
                          progress.dismiss();
                        });
                      },
                    ),
                    RaisedButton(
                      child: Text('Show with text'),
                      onPressed: () {
                        final progress = ProgressHUD.of(context);
                        progress.showWithText('Loading...');
                        Future.delayed(Duration(seconds: 1), () {
                          progress.dismiss();
                        });
                      },
                    ),
                  ],
                ),
              ),
        ),
      ),

Customization

Attribute Name Default Value Description
indicatorColor Colors.white When using the default indicator widget, this is how you set its color
indicatorWidget A basic CircularProgressIndicator Custom indicator widget
backgroundColor Colors.black54 Indicator background color
backgroundRadius Radius.circular(8.0) Indicator background radius
borderColor Colors.white Indicator background border color
borderWidth 0.0 Indicator background border width
barrierEnabled true You can disable the modal barrier if you want to allow touches while the progress is shown
barrierColor Colors.black12 Color of the Barrier displayed behind the indicator
textStyle TextStyle(color: Colors.white, fontSize: 14.0) TextStyle for the Text displayed below the indicator
padding EdgeInsets.all(16.0)} Indicator content padding

カテゴリー

ソースリポジトリ

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