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

パッケージ詳細v1.0.0

flutter_progress_button

flutter_progress_button は、無料でオープンソース(MIT ライセンス)の Material Flutter ボタンであり、さまざまなボタンスタイルの要件をサポートしています。使いやすく、カスタマイズ可能なように設計されています。

30日間ダウンロード
185
いいね数
22
Pub ポイント
30

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

flutter pub add flutter_progress_button

パッケージ概要

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

flutter_progress_button は、カスタマイズ可能なオープンソースの Material Design ボタンで、Flutter 向けに作成されています。さまざまなスタイルと進行状態をサポートしています。シンプルさと柔軟性を重視して設計されており、開発者がボタンにローディングインジケーター、成功状態、カスタムアニメーションを簡単に統合できるようにしています。MIT ライセンスで、あらゆる Flutter プロジェクトへのシームレスな統合を目的としています。フォーム送信やデータ取得などのアクション中に視覚フィードバックを提供することで、ユーザー体験を向上させます。

用途

  • ロード状態付きのフォーム送信
  • ユーザー認証フロー
  • データ保存操作
  • フィードバック付きのインタラクティブUI要素
  • カスタマイズ可能なボタンの遷移

主な機能

  • 読み込み状態および成功状態をサポートしています
  • 高度にカスタマイズ可能な外観
  • Flutter との簡単な統合
  • Material Design準拠
  • 状態間のアニメーション遷移

適している対象

  • インタラクティブなフォームを構築する開発者
  • 一貫したボタンスタイルが必要なチーム
  • 操作に対する視覚的フィードバックを必要とするプロジェクト
  • UI中心のアプリケーション
  • 軽量コンポーネントを探しているオープンソースの貢献者

注意事項

  • 制限されたプラットフォーム固有のカスタマイズ
  • 組み込みの非Materialテーマサポートなし
  • 非同期ロジックの手動処理が必要です
  • 複雑な状態マシンには最適化されていません
  • Flutter の Material パッケージに依存しています

元の README

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

flutter_progress_button

GitHub repo size GitHub code size in bytes GitHub top language GitHub issues GitHub license

flutter_progress_button is a free and open source (MIT license) Material Flutter Button that supports variety of buttons style demands. It is designed to be easy to use and customizable.

Get started

Depend on it

Add this to your package's pubspec.yaml file:

flutter_progress_button: '^1.0.0'
Install it

You can install packages from the command line:

$ flutter pub get

Alternatively, your editor might support flutter pub get.

Import it

Now in your Dart code, you can use:

import 'package:flutter_progress_button/flutter_progress_button.dart';

How to use

Add ProgressButton to your widget tree:

ProgressButton(
    defaultWidget: const Text('I am a button'),
    progressWidget: const CircularProgressIndicator(),
    width: 196,
    height: 40,
    onPressed: () async {
        int score = await Future.delayed(
            const Duration(milliseconds: 3000), () => 42);
        // After [onPressed], it will trigger animation running backwards, from end to beginning
        return () {
        // Optional returns is returning a VoidCallback that will be called
        // after the animation is stopped at the beginning.
        // A best practice would be to do time-consuming task in [onPressed],
        // and do page navigation in the returned VoidCallback.
        // So that user won't missed out the reverse animation.
        };
    },
),

More parameters:

ProgressButton({
    Key key,
    this.defaultWidget,
    this.progressWidget,
    this.onPressed,
    this.type = ProgressButtonType.Raised,
    this.color,
    this.width = double.infinity,
    this.height = 40.0,
    this.borderRadius = 2.0,
    this.animate = true,
}) : super(key: key);

Three types supported:

enum ProgressButtonType {
    Raised,
    Flat,
    Outline,
}

Source

Source code and example of this library can be found in git:

$ git clone https://github.com/jiangyang5157/flutter_progress_button.git

カテゴリー

ソースリポジトリ

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

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