Search packages, repositories and app categories

Package detailsv1.0.4

fancy_dialog

Custom Alert Dialog,inspired from FancyGifDialog for android,the new thing is that you can choose between 2 themes Fancy and Flat and you can load images and Gif from your assets.

30-day downloads
69
Likes
35
Pub points
20

Install package

flutter pub add fancy_dialog

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

FancyDialog is a Flutter package that provides customizable alert dialogs inspired by FancyGifDialog for Android. It supports two themes—Fancy and Flat—and allows users to load images and GIFs from local assets. Ideal for enhancing app UI with visually appealing pop-ups, it simplifies the integration of animated and styled dialogs without complex setup. The package is lightweight and designed for easy use in mobile applications requiring engaging user feedback.

Use cases

  • Displaying custom alerts with animations
  • Showing image or GIF-based notifications
  • Enhancing user onboarding experiences
  • Creating themed confirmation dialogs
  • Improving visual feedback in apps

Key features

  • Two theme options: Fancy and Flat
  • Support for static images and GIFs from assets
  • Simple API for quick integration
  • Customizable dialog appearance
  • Lightweight and fast rendering

Suitable for

  • Mobile app developers seeking attractive dialogs
  • Projects needing animated or themed alerts
  • Apps focused on user experience and engagement
  • Developers using Flutter for Android and iOS
  • UI designers wanting flexible dialog components

Considerations

  • Requires assets to be properly configured in pubspec.yaml
  • Limited to Flutter apps targeting mobile platforms
  • GIF support depends on flutter_gif package
  • May increase bundle size with large assets
  • Theme customization requires basic understanding of Flutter styling

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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 :)

Categories

Source repository

Projects using this package

No data available yet.