Buscar pacotes, repositórios e categorias de apps

Detalhes do pacotev1.0.4

fancy_dialog

Diálogo de alerta personalizado, inspirado no FancyGifDialog para Android, a novidade é que você pode escolher entre dois temas: Fancy e Flat, e carregar imagens e Gifs dos seus recursos.

Downloads em 30 dias
52
Curtidas
35
Pontos Pub
20

Instalar pacote

flutter pub add fancy_dialog

Visão geral do pacote

Orientação gerada a partir de informações públicas. Apenas para referência.

FancyDialog é um pacote Flutter que fornece diálogos de alerta personalizáveis inspirados no FancyGifDialog para Android. Ele suporta dois temas — Fancy e Flat — e permite aos usuários carregar imagens e GIFs a partir de recursos locais. Ideal para aprimorar a interface do aplicativo com pop-ups visualmente atraentes, simplifica a integração de diálogos animados e estilizados sem configurações complexas. O pacote é leve e projetado para uso fácil em aplicações móveis que exigem feedback interativo envolvente.

Casos de uso

  • Exibindo alertas personalizados com animações
  • Mostrando notificações baseadas em imagem ou GIF
  • Melhorando experiências de onboarding do usuário
  • Criando diálogos de confirmação temáticos
  • Melhorando o feedback visual nos aplicativos

Principais recursos

  • Duas opções de tema: Fancy e Flat
  • Suporte para imagens estáticas e GIFs de recursos
  • API simples para integração rápida
  • Aparência personalizável do diálogo
  • Renderização leve e rápida

Indicado para

  • Desenvolvedores de aplicativos móveis procurando diálogos atraentes
  • Projetos que precisam de alertas animados ou temáticos
  • Aplicativos focados na experiência do usuário e engajamento
  • Desenvolvedores usando Flutter para Android e iOS
  • Designers de interface querendo componentes de diálogo flexíveis

Considerações

  • Requer que os ativos sejam corretamente configurados no pubspec.yaml
  • Limitado a aplicativos Flutter voltados para plataformas móveis
  • O suporte a GIF depende do pacote flutter_gif
  • Pode aumentar o tamanho do pacote com ativos grandes
  • A personalização de tema requer conhecimento básico de estilização no Flutter

README original

Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.

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

Categorias

Repositório-fonte

Projetos que usam este pacote

Ainda não há dados.