Buscar pacotes, repositórios e categorias de apps

Capa de giffy_dialog
Detalhes do pacotev2.3.0

giffy_dialog

Um pacote Flutter para diálogos e folhas inferiores com GIFs rápidos, práticos e bonitos.

AndroidiOSWebmacOSWindowsLinux
Downloads em 30 dias
1,2 mil
Curtidas
605
Pontos Pub
150

Instalar pacote

flutter pub add giffy_dialog

Visão geral do pacote

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

O GiffyDialog é um pacote do Flutter que fornece diálogos e folhas inferiores animados e visualmente atraentes usando GIFs. Permite que desenvolvedores implementem interações envolventes com código mínimo. O pacote suporta múltiplas plataformas, incluindo Android, iOS, Web, macOS, Windows e Linux. Com temas personalizáveis e integração fácil por meio de um comando simples, ele melhora a experiência do usuário ao adicionar feedback visual divertido e dinâmico. Perfeito para telas de introdução, alertas ou momentos de celebração nos aplicativos.

Casos de uso

  • Telas de onboarding
  • Alertas do usuário
  • Pop-ups de celebração
  • Orientação do aplicativo
  • Prompts de feedback

Principais recursos

  • Suporte para GIF animado
  • Diálogos personalizáveis
  • Compatibilidade multiplataforma
  • API simples
  • Integração de sheet inferior

Indicado para

  • desenvolvedores de aplicativos móveis
  • Projetos focados em UX
  • Melhorias de interface interativa
  • Implementação rápida de diálogo

Considerações

  • Arquivos GIF grandes podem afetar o desempenho
  • Personalização limitada para layouts complexos
  • Requer otimização cuidadosa do arquivo GIF
  • Não ideal para diálogos leves
  • Depende da rede se carregar GIFs remotos

README original

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

Giffy Dialog

Open Source Love License Dart CI CodeCov Version

A beautiful and custom alert dialog for flutter highly inspired from FancyAlertDialog-Android.

Show some ❤️ and star the repo to support the project

Live Demo: https://xsahil03x.github.io/giffy_dialog

An animated image of the GiffyDialog

Migration from v1 to v2

Please refer to the migration guide to migrate from v1 to v2.

Installation

Add the following to your pubspec.yaml and replace [version] with the latest version:

dependencies:
  giffy_dialog: ^[version]

Usage

Import the package:

import 'package:giffy_dialog/giffy_dialog.dart';

Use it like a dialog:

 showDialog(
   context: context,
   builder: (BuildContext context) {
     return GiffyDialog.image(
       Image.network(
         "https://raw.githubusercontent.com/Shashank02051997/FancyGifDialog-Android/master/GIF's/gif14.gif",
         height: 200,
         fit: BoxFit.cover,
       ),
       title: Text(
         'Image Animation',
         textAlign: TextAlign.center,
       ),
       content: Text(
         'This is a image animation dialog box. This library helps you easily create fancy giffy dialog.',
         textAlign: TextAlign.center,
       ),
       actions: [
         TextButton(
           onPressed: () => Navigator.pop(context, 'CANCEL'),
           child: const Text('CANCEL'),
         ),
         TextButton(
           onPressed: () => Navigator.pop(context, 'OK'),
           child: const Text('OK'),
         ),
       ],
     );
   },
 );

Or use it like a bottom sheet:

 showModalBottomSheet(
   context: context,
   clipBehavior: Clip.antiAlias,
   isScrollControlled: true,
   shape: RoundedRectangleBorder(
     borderRadius: BorderRadius.vertical(
       top: Radius.circular(useMaterial3 ? 32 : 4),
     ),
   ),
   builder: (BuildContext context) {
     return GiffyBottomSheet.image(
       Image.network(
         "https://raw.githubusercontent.com/Shashank02051997/FancyGifDialog-Android/master/GIF's/gif14.gif",
         height: 200,
         fit: BoxFit.cover,
       ),
       title: Text(
         'Image Animation',
         textAlign: TextAlign.center,
       ),
       content: Text(
         'This is a image animation bottom sheet. This library helps you easily create fancy giffy bottom sheet.',
         textAlign: TextAlign.center,
       ),
       actions: [
         TextButton(
           onPressed: () => Navigator.pop(context, 'CANCEL'),
           child: const Text('CANCEL'),
         ),
         TextButton(
           onPressed: () => Navigator.pop(context, 'OK'),
           child: const Text('OK'),
         ),
       ],
     );
   },
 );

Demo

Giffy Dialog Giffy BottomSheet
Material 2 Material 3 Material 2 Material 3
Image Giffy Image Giffy Dialog Image Giffy Dialog Image Giffy Dialog Image Giffy Dialog
Rive Giffy Image Giffy Dialog Image Giffy Dialog Image Giffy Dialog Image Giffy Dialog
Lottie Giffy Image Giffy Dialog Image Giffy Dialog Image Giffy Dialog Image Giffy Dialog

Customization

The GiffyDialog widget provides several customization options, such as the dialog title, description, buttons, animations, and more. Please refer to the documentation for a complete list of available options.

Contributors

Thanks goes to these wonderful people (emoji key):


ArtemKolichenkov

📖 🤔

Alex Fierro

💻

Kasidech C.

💻

Jai Sachdeva

💬

Tarekk Mohamed Abdalla

💻

madhukesh_048

⚠️

dpedrinha

💻

Nate

💻 💡

Alex

💻

jritchie

💻

Saad Bin Shahid

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT License

Categorias

Dependências

Lista de dependências 2 itens

Repositório-fonte

Projetos que usam este pacote