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

パッケージ詳細v1.0.4

fancy_dialog

Android用のFancyGifDialogを参考にしたカスタムアラートダイアログ。新しい機能として、FancyとFlatの2つのテーマから選択でき、アセットから画像やGIFを読み込むことができます。

30日間ダウンロード
69
いいね数
35
Pub ポイント
20

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

flutter pub add fancy_dialog

パッケージ概要

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

FancyDialog は、Android の FancyGifDialog を参考にしたカスタマイズ可能なアラートダイアログを提供する Flutter パッケージです。Fancy と Flat の2つのテーマをサポートしており、ローカルのアセットから画像や GIF を読み込むことができます。視覚的に魅力的なポップアップでアプリの UI を向上させるのに最適であり、複雑な設定なしにアニメーション付きやスタイル付きのダイアログを簡単に統合できます。軽量で、魅力的なユーザーフィードバックが必要なモバイルアプリでの使用を想定して設計されています。

用途

  • アニメーション付きのカスタムアラートを表示する
  • 画像またはGIFベースの通知を表示する
  • ユーザーのオンボーディング体験の向上
  • テーマ付き確認ダイアログの作成
  • アプリケーション内の視覚フィードバックの改善

主な機能

  • テーマの2つのオプション:ファンシーとフラット
  • アセットからの静的画像およびGIFのサポート
  • 迅速な統合のためのシンプルな API
  • カスタマイズ可能なダイアログの外観
  • 軽量で高速なレンダリング

適している対象

  • 魅力的なダイアログを求めるモバイルアプリ開発者
  • アニメーションまたはテーマ付きのアラートが必要なプロジェクト
  • ユーザー体験とエンゲージメントに焦点を当てるアプリ
  • Android および iOS 用に Flutter を使用する開発者
  • 柔軟なダイアログコンポーネントを希望するUIデザイナー

注意事項

  • pubspec.yaml でアセットを適切に設定する必要があります
  • モバイルプラットフォーム向けのFlutterアプリに限定
  • GIFのサポートはflutter_gifパッケージに依存します
  • 大規模なアセットを使用するとバンドルサイズが増加する可能性があります
  • テーマのカスタマイズにはFlutterスタイルの基礎知識が必要です

元の README

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

Fancy Flutter Alert Dialog

Hits

Build Status Coverage Status GitHub release (latest by date)

GitHub stars Twitter Follow

Pure Dart and Flutter package for Android,IOS and Web

A flutter Package to show custom alert Dialog,you can choose between two themes 'Fancy' and 'Flat'

The package is available in fancy_dialog

Usage

Import the Package

add this dependencies to your app dependencies: fancy_dialog: ^1.0.4

Use the Package

add this import statement import 'package:fancy_dialog/fancy_dialog.dart';

to show a Basic Dialog

showDialog(
              context: context,
              builder: (BuildContext context) => FancyDialog(
                title: "Fancy Gif Dialog",
                descreption: "This is descreption for fancy gif,you can load any image or gif to be displayed :), and you can choose between two themes Fancy and Flat",
                )
            ) 
          

the title and descreption are required and the rest of the parameters are :

  • okFun : the function to be called when the user press Ok button (positive button)

  • cancelFun : the function to be called when the user press cancel button (negative button)

  • cancelColor : the color of the negative button, by default it's Colors.grey

  • oklColor : the color of the positive button, by default it's Colors.pink

  • ok : the text of the positive button, by default it's 'OK !'

  • cancel : the text of the negative button, by default it's 'cancel'

  • animationType : The type of the animation, there are 4 types,which are :

    • FancyAnimation.LEFT_RIGHT the default one
    • FancyAnimation.RIGHT_LEFT
    • FancyAnimation.TOP_BOTTOM
    • FancyAnimation.BOTTOM_TOP
  • gifpath : the path for the image or the GIF to be displayed,or you can choose between 6 Gifs the package provides :

    • FancyGif.MOVE_FORWARD the default one
    • FancyGif.CHECK_MAIL
    • FancyGif.FUNNY_MAN
    • FancyGif.PLAY_MEDIA
    • FancyGif.SUBMIT
    • FancyGif.SHARE
  • theme : Fancy or Flat

    • FancyTheme.FANCY
    • FancyTheme.FLAT

The dialog will be dissmised by default when the user click Ok or cancel, DON'T ADD Navigator.of(context).pop() to okFun or cancelFun

ScreenShots

Contribution

Feel free to contribute,report a bug or to suggest a feature

Thank you :)

カテゴリー

ソースリポジトリ

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

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