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

패키지 상세v1.0.4

fancy_dialog

Android용 FancyGifDialog를 영감으로 한 사용자 정의 경고 대화 상자입니다. 새로운 기능은 두 가지 테마인 Fancy와 Flat 중에서 선택할 수 있으며, 자산에서 이미지와 GIF를 로드할 수 있습니다.

30일 다운로드
69
좋아요
35
Pub 점수
20

패키지 설치

flutter pub add fancy_dialog

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

FancyDialog는 Android용 FancyGifDialog를 영감으로 한 사용자 정의 가능한 경고 대화 상자를 제공하는 Flutter 패키지입니다. 두 가지 테마인 Fancy와 Flat을 지원하며, 로컬 자산에서 이미지 및 GIF를 로드할 수 있습니다. 시각적으로 매력적인 팝업을 통해 앱 UI를 향상시키기에 이상적이며, 복잡한 설정 없이 애니메이션 및 스타일링된 대화 상자를 쉽게 통합할 수 있습니다. 가볍고, 몰입감 있는 사용자 피드백이 필요한 모바일 애플리케이션에 쉽게 활용할 수 있도록 설계되었습니다.

사용 사례

  • 애니메이션을 사용한 사용자 정의 경고 표시
  • 이미지 또는 GIF 기반 알림 표시
  • 사용자 온보딩 경험 향상
  • 테마화된 확인 대화 상자 만들기
  • 앱에서 시각 피드백 향상

주요 기능

  • 테마 옵션 두 가지: 팬시 및 플랫
  • 자산에서의 정적 이미지 및 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 :)

카테고리

소스 저장소

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

아직 데이터가 없습니다.