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

flutter_animated_button のカバー
パッケージ詳細v2.0.4

flutter_animated_button

クールで美しいボタンアニメーションのコレクションを含むFlutterパッケージプロジェクトです。

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

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

flutter pub add flutter_animated_button

パッケージ概要

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

視覚的に魅力的で滑らかなボタンアニメーションを多数提供するFlutterパッケージです。複数のプラットフォームでダイナミックで魅力的なボタンインタラクションにより、ユーザーインターフェースを強化することを目的としています。アプリに簡単に統合できる即時利用可能なアニメーションボタンを提供し、視覚フィードバックとユーザーエクスペリエンスを向上させます。大規模なカスタムコーディングなしで装飾性を加えたい開発者に最適です。

用途

  • インタラクティブなボタンでアプリUIを強化
  • フォームに視覚フィードバックを追加する
  • モバイルおよびウェブアプリにおけるユーザー参加の向上
  • モダンなランディングページの作成
  • ゲーム化アプリ要素の設計

主な機能

  • 複数の事前構築されたアニメーションスタイル
  • 最小限のコードで簡単に統合可能
  • クロスプラットフォーム互換性
  • カスタマイズ可能なボタンの外観
  • スムーズなトランジション効果
  • 軽量でパフォーマンスに優れる

適している対象

  • アニメーションコンポーネントを探しているUI/UXデザイナー
  • インタラクティブなFlutterアプリを開発する開発者
  • Flutterアニメーションを学ぶ初心者
  • 魅力的なユーザーインタラクションを必要とするアプリ
  • モダンで洗練されたインターフェースに焦点を当てたプロジェクト

注意事項

  • バンドルサイズがわずかに増加する可能性があります
  • アニメーションは低スペックデバイスのパフォーマンスに影響を与える可能性があります
  • 提供されたテーマを超えるカスタマイズは限定的
  • 重要なUI要素ではない場合に最適
  • 基本的なFlutterウィジェットの使用方法の理解が必要です

元の README

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

flutter_animated_button :dizzy: :champagne:


Installing

Depend on it

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

dependencies:
  flutter_animated_button: <latest_version>
Import it

Now in your Dart code, you can use:

import 'package:flutter_animated_button/flutter_animated_button.dart';



Contribute to Development

Your contribution will help improve the plugin

Buy Me A Coffee

Usage

You can override the animationDuration of animation of the button by setting its duration in each AnimatedButton class, also you can get animationController for animation status and animation value during the animation. You can change text style, selected textColor and background color of button by textStyle,selectedTextColor,backgroundColor and selectedBackgroundColor. If you want revert animation when button already select then you can do it by isReverse property.

 AnimatedButton(
                width: 200,
                text: 'SUBMIT',
                selectedTextColor: Colors.black,
                transitionType: TransitionType.BOTTOM_TO_TOP,
                textStyle: TextStyle(
                    fontSize: 28,
                    letterSpacing: 5,
                    color: Colors.deepOrange,
                    fontWeight: FontWeight.w300),
              )


Animation On
  • AnimatedOn.onTap
  • AnimatedOn.onHover


Used in App



Some new animation in latest version :zap:

  • Animations : LEFT_TOP_ROUNDER, LEFT_BOTTOM_ROUNDER, BOTTOM_CENTER_ROUNDER, CENTER_ROUNDER...etc
  • Selected button text support

. .

Available Animations :dizzy:

AnimatedButton

  AnimatedButton(
              height: 70,
              width: 200,
              text: 'SUBMIT',
              isReverse: true,
              selectedTextColor: Colors.black,
              transitionType: TransitionType.BOTTOM_TO_TOP,
              textStyle: GoogleFonts.nunito(
                  fontSize: 28,
                  letterSpacing: 5,
                  color: Colors.white,
                  fontWeight: FontWeight.w300),
            ),
  AnimatedButton(
             height: 70,
             width: 200,
             text: 'SUBMIT',
             isReverse: true,
             selectedTextColor: Colors.black,
             transitionType: TransitionType.LEFT_TO_RIGHT,
             textStyle: submitTextStyle,
             backgroundColor: Colors.black,
             borderColor: Colors.white,
             borderRadius: 0,
             borderWidth: 2,
           ),
    AnimatedButton(
              height: 70,
              width: 200,
              text: 'SUBMIT',
              isReverse: true,
              selectedTextColor: Colors.black,
              transitionType: TransitionType.LEFT_TO_RIGHT,
              textStyle: submitTextStyle,
              backgroundColor: Colors.black,
              borderColor: Colors.white,
              borderRadius: 50,
              borderWidth: 2,
            ),

AnimatedButton.strip

  AnimatedButton.strip(
              width: 200,
              height: 70,
              text: 'SUBMIT',
              isReverse: true,
              selectedTextColor: Colors.black,
              stripTransitionType: StripTransitionType.LEFT_TO_RIGHT,
              selectedBackgroundColor: Colors.white,
              textStyle: GoogleFonts.nunito(
                  fontSize: 28,
                  letterSpacing: 5,
                  color: Colors.white,
                  fontWeight: FontWeight.w300),
            ),


Available Animations Types :sparkles:


AnimatedButton
LEFT_TO_RIGHT CENTER_LR_IN LEFT_TOP_ROUNDER RIGHT_TOP_ROUNDER CENTER_ROUNDER
RIGHT_TO_LEFT CENTER_TB_IN LEFT_CENTER_ROUNDER RIGHT_CENTER_ROUNDER -
TOP_TO_BOTTOM CENTER_LR_OUT LEFT_BOTTOM_ROUNDER TOP_CENTER_ROUNDER -
BOTTOM_TO_TOP CENTER_TB_OUT RIGHT_BOTTOM_ROUNDER BOTTOM_CENTER_ROUNDER -
AnimatedButton.strip
LEFT_TO_RIGHT
RIGHT_TO_LEFT
TOP_TO_BOTTOM
BOTTOM_TO_TOP


Bugs or Requests :bug:

If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket on GitHub and I'll look into it. Pull request are also welcome.


License :closed_lock_with_key:

MIT License

カテゴリー

ソースリポジトリ

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