패키지, 저장소 및 앱 카테고리 검색

panara_dialogs 표지
패키지 상세v0.1.5

panara_dialogs

PanaraDialogs는 다이얼로그 UI 키트입니다. Flutter용으로 최소한의 아름다운 디자인을 제공합니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
1.3천
좋아요
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 !

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.