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

rounded_loading_button のカバー
パッケージ詳細v2.1.0

rounded_loading_button

Flutter用のシンプルなアニメーションロードボタンウィジェットの実装

30日間ダウンロード
876
いいね数
539
Pub ポイント
60

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

flutter pub add rounded_loading_button

パッケージ概要

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

標準ボタンからロード状態へのスムーズな遷移を可能にする、円形プログレスインジケーターを備えたアニメーションローディングボタンウィジェットを提供するFlutterパッケージです。シンプルさと統合のしやすさを重視しており、非同期処理中のユーザーフィードバックを強化できます。色、サイズ、アニメーションの持続時間のカスタマイズが可能で、フォームやログイン画面、ユーザー確認が必要な任意のアクションに最適です。クリーンなDartコードで構築されており、現代的なFlutterアプリケーションにスムーズに統合されます。

用途

  • フォームの送信
  • ログインまたは登録フロー
  • API呼び出しのトリガー
  • ユーザー操作の確認
  • 読み込み状態フィードバック

主な機能

  • アニメーション付きロード遷移
  • カスタマイズ可能な色とサイズ
  • 円形プログレスインジケーター
  • シンプルな API インテグレーション
  • スムーズなアニメーション

適している対象

  • 初心者のFlutter開発者
  • UI中心のアプリケーション
  • インタラクティブフォーム
  • モバイルアプリのインターフェース
  • クイックプロトタイピング

注意事項

  • 制限されたプラットフォーム固有のカスタマイズ
  • 組み込みのエラーデータ状態なし
  • 非同期ロジックの手動処理が必要です
  • 複雑なボタンの動作には適していない
  • 外部アニメーションタイミングに依存する

元の README

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

rounded_loading_button

pub package build codecov style: effective dart License: MIT Awesome Flutter

RoundedLoadingButton is a Flutter package with a simple implementation of an animated loading button, complete with success and error animations.

Installation

Add this to your pubspec.yaml:

dependencies:
    rounded_loading_button: ^2.0.8

Usage

Import
import 'package:rounded_loading_button/rounded_loading_button.dart';
Simple Implementation
final RoundedLoadingButtonController _btnController = RoundedLoadingButtonController();

void _doSomething() async {
    Timer(Duration(seconds: 3), () {
        _btnController.success();
    });
}

RoundedLoadingButton(
    child: Text('Tap me!', style: TextStyle(color: Colors.white)),
    controller: _btnController,
    onPressed: _doSomething,
)

The Rounded Loading Button has many configurable properties, including:

  • duration - The duration of the button animation
  • loaderSize - The size of the CircularProgressIndicator
  • animateOnTap - Whether to trigger the loading animation on the tap event
  • resetAfterDuration - Reset the animation after specified duration, defaults to 15 seconds
  • errorColor - The color of the button when it is in the error state
  • successColor - The color of the button when it is in the success state
  • successIcon - The icon for the success state
  • failedIcon - The icon for the failed state

Contributions

All contributions are welcome!

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

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