Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xsahil03x/giffy_dialog

A Flutter package for a quick and handy giffy dialog.
https://github.com/xsahil03x/giffy_dialog

animation dart2 dialog flare flare-animation flare-flutter flutter flutter-package giffy-dialogs gifs hacktoberfest material

Last synced: about 2 months ago
JSON representation

A Flutter package for a quick and handy giffy dialog.

Awesome Lists containing this project

README

        

# Giffy Dialog

[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=102)](https://opensource.org/licenses/MIT)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/xsahil03x/giffy_dialog/blob/master/LICENSE)
[![Dart CI](https://github.com/xsahil03x/giffy_dialog/workflows/giffy_dialog/badge.svg)](https://github.com/xsahil03x/giffy_dialog/actions)
[![CodeCov](https://codecov.io/gh/xsahil03x/giffy_dialog/branch/master/graph/badge.svg)](https://codecov.io/gh/xsahil03x/giffy_dialog)
[![Version](https://img.shields.io/pub/v/giffy_dialog.svg)](https://pub.dartlang.org/packages/giffy_dialog)

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](v1-v2_migration.md) to migrate from v1 to v2.

## Installation

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

```yaml
dependencies:
giffy_dialog: ^[version]
```

## Usage

Import the package:

```dart
import 'package:giffy_dialog/giffy_dialog.dart';
```

Use it like a dialog:

```dart
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:

```dart
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](https://pub.dev/documentation/giffy_dialog/latest/) for a
complete list of available options.

## Contributors

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/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](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

## License

[MIT License](LICENSE)