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

panara_dialogs のカバー
パッケージ詳細v0.1.5

panara_dialogs

PanaraDialogsは、Flutter用のダイアログUIキットです。最小限ながらも美しいデザインを提供します。

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

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

flutter pub add panara_dialogs

パッケージ概要

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

PanaraDialogs は、Flutter向けの最小限で洗練されたダイアログUIキットであり、クリーンでモダンなダイアログコンポーネントによりユーザー体験を向上させるように設計されています。すべてのプラットフォームで一貫性があり、洗練された外観を提供し、広範なカスタマイズなしに魅力的なダイアログを簡単に実装できます。このパッケージは、Android、iOS、Web、macOS、Windows、Linuxなど、すべての主要なFlutterプラットフォームをサポートしており、広範な互換性を確保しています。pubによる簡単な統合により、PanaraDialogsは現代的なデザイン原則に沿った即時利用可能なダイアログテンプレートを開発者に提供します。

用途

  • シンプルなアラートダイアログ
  • 確認ダイアログ
  • カスタマイズ可能なポップアップモーダル
  • オンボーディングまたはチュートリアルオーバーレイ
  • ユーザー入力の収集

主な機能

  • ミニマリスティックで美しいデザイン
  • クロスプラットフォーム対応
  • Flutter との簡単な統合
  • 事前設計されたダイアログテンプレート
  • 軽量で高速

適している対象

  • 洗練されたダイアログUIを求める開発者
  • デザイン重視のインターフェースを備えたプロジェクト
  • 一貫したダイアログスタイルを必要とするアプリ
  • 迅速なプロトタイピング
  • UI/UX の向上

注意事項

  • 提供されたテーマを超えるカスタマイズは限定的
  • ミニマリズムデザインスタイルに最適
  • 複雑なレイアウトには追加のスタイル設定が必要になる場合があります
  • 非常にインタラクティブまたはアニメーション付きのダイアログには向かない

元の README

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

Panara Dialogs

Pub Version GitHub

Panara Dialogs is a UI Kit for Dialog comes with 3 types of dialogs - Info Dialog, Confirmation Dialog both comes with 4 different variants as shown in below screenshots & Custom Dialog, with 7 different animations.

Preview

PanaraInfoDialog

successnormalwarningerror

PanaraConfirmDialog

successnormalwarningerror

Getting started

Add the dependency in pubspec.yaml:

dependencies:
  panara_dialogs: ^0.1.5

Usage

Then you just have to import the package with


import 'package:panara_dialogs/panara_dialogs.dart';

Here is how you can use PanaraInfoDialog in your flutter project.


PanaraInfoDialog.show(
    context,
    title: "Hello",
    message: "This is the PanaraInfoDialog",
    buttonText: "Okay",
    onTapDismiss: () {
        Navigator.pop(context);
    },
    panaraDialogType: PanaraDialogType.normal,
    barrierDismissible: false, // optional parameter (default is true)
);

Properties of PanaraInfoDialog
Property Type value
imagePath String path to your local assets image
title String any string value
message String any string value
buttonText String any string value
onTapDismiss void Function() function to decide what will happen onTap
panaraDialogType PanaraDialogType success, normal, warning, error, custom
color Color define your own color, by selecting panaraDialogType: PanaraDialogType.custom
textColor Color define your own text color
buttonTextColor Color define your own button text color
margin EdgeInsets define margin
padding EdgeInsets define padding
noImage bool If you don't want any image set it to true. it's false by default
barrierDismissible bool define if dialog is dismissible by tapping outside of dialog

And Here is how you can use PanaraConfirmDialog in your flutter project.


PanaraConfirmDialog.show(
    context,
    title: "Hello",
    message: "This is the PanaraConfirmDialog",
    confirmButtonText: "Confirm",
    cancelButtonText: "Cancel",
    onTapCancel: () {
        Navigator.pop(context);
    },
    onTapConfirm: () {
        Navigator.pop(context);
    },
    panaraDialogType: PanaraDialogType.normal,
    barrierDismissible: false, // optional parameter (default is true)
);

Properties of PanaraConfirmDialog
Property Type value
imagePath String path to your local assets image
title String any string value
message String any string value
confirmButtonText String any string value
cancelButtonText String any string value
onTapConfirm void Function() function to decide what will happen onTap confirm
onTapCancel void Function() function to decide what will happen onTap cancel
panaraDialogType PanaraDialogType success, normal, warning, error, custom
color Color define your own color, by selecting panaraDialogType: PanaraDialogType.custom
textColor Color define your own text color
buttonTextColor Color define your own button text color
margin EdgeInsets define margin
padding EdgeInsets define padding
noImage bool If you don't want any image set it to true. it's false by default
barrierDismissible bool define if dialog is dismissible by tapping outside of dialog

Here is how you can use PanaraCustomDialog in your flutter project.

PanaraCustomDialog.show(
    context,
    children: [
        Text(
            "Hello",
            style: TextStyle(
                fontSize: 20,
            ),
            textAlign: TextAlign.center,
        ),
        Text(
            "This is the PanaraCustomDialog",
            style: TextStyle(
                    fontSize: 16
                ),
            textAlign: TextAlign.center,
        ),
        // Add your own widgets here
    ],
    mainAxisAlignment: MainAxisAlignment.center,
    crossAxisAlignment: CrossAxisAlignment.center,
    backgroundColor: Colors.white,
    margin: EdgeInsets.all(20),
    padding: EdgeInsets.all(20),
    barrierDismissible: false, // optional parameter (default is true)
);
Properties of PanaraCustomDialog
Property Type value
children List<Widget> define your own widgets
mainAxisAlignment MainAxisAlignment start, center, end
crossAxisAlignment CrossAxisAlignment start, center, end
backgroundColor Color define background color
margin EdgeInsets define margin
padding EdgeInsets define padding
barrierDismissible bool define if dialog is dismissible by tapping outside of dialog
Animations for Both Dialogs

This are static methods for both Dialog Class.

method Animation
showAnimatedFromLeft() slide animation from left
showAnimatedFromRight() slide animation from right
showAnimatedFromTop() slide animation from top
showAnimatedFromBottom() slide animation from bottom
showAnimatedGrow() grow animation from center
showAnimatedShrink() shrink animation from center
showAnimatedFade() fade animation

Feedback

Please feel free to give me any feedback or file issue helping support this plugin !

カテゴリー

ソースリポジトリ

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

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