https://github.com/programmerhasan/dialogify
A customizable Flutter package to show animated confirmation and info dialogs with gradient backgrounds, blur, and bottom sheet or center position.
https://github.com/programmerhasan/dialogify
confirmation-dialog dialog flutter info-dialog
Last synced: 7 days ago
JSON representation
A customizable Flutter package to show animated confirmation and info dialogs with gradient backgrounds, blur, and bottom sheet or center position.
- Host: GitHub
- URL: https://github.com/programmerhasan/dialogify
- Owner: ProgrammerHasan
- License: other
- Created: 2025-09-02T13:01:20.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2025-09-02T13:57:27.000Z (6 months ago)
- Last Synced: 2025-09-02T15:28:27.504Z (6 months ago)
- Topics: confirmation-dialog, dialog, flutter, info-dialog
- Language: Dart
- Homepage:
- Size: 812 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Dialogify.
A customizable Flutter package to show animated confirmation and info dialogs with gradient backgrounds, blur effects, and support for **center** or **bottom sheet** positions.
---
## ✨ Features
- ✅ Gradient & blurred background dialogs
- ✅ Info & Confirmation dialog types
- ✅ Supports **bottom sheet** and **center popup**
- ✅ Custom titles, subtitles, content widget, and buttons
- ✅ Animated open/close transitions
---
## 🚀 Installation
Add this line in your `pubspec.yaml`:
```yaml
dependencies:
dialogify: ^1.0.0
```
Then run:
```
flutter pub get
```
### Usage
Show Confirmation Dialog
```
import 'package:dialogify/dialogify.dart';
showConfirmationDialog(
context,
title: "Delete Item",
subtitle: "Are you sure you want to delete this item?",
confirmText: "Yes, Delete",
cancelText: "Cancel",
onConfirm: () {
print("Confirmed!");
},
onCancel: () {
print("Cancelled!");
},
);
```
Show Info Dialog
```agsl
showInfoDialog(
context,
title: "Update Available",
subtitle: "Version 2.0 is now available for download.",
closeText: "Got it",
onClose: () {
print("Dialog closed.");
},
);
```
### 📲 Example App
See example/main.dart for a full working example.
```dart
import 'package:flutter/material.dart';
import 'package:dialogify/dialogify.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Dialogify Example',
home: Scaffold(
appBar: AppBar(title: const Text("Dialogify Example")),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
ElevatedButton(
onPressed: () {
showConfirmationDialog(
context,
title: "Confirm Action",
subtitle: "Do you want to proceed?",
onConfirm: () => debugPrint("Confirmed!"),
onCancel: () => debugPrint("Cancelled!"),
);
},
child: const Text("Show Confirmation Dialog"),
),
ElevatedButton(
onPressed: () {
showInfoDialog(
context,
title: "Info",
subtitle: "This is an information dialog.",
onClose: () => debugPrint("Closed!"),
);
},
child: const Text("Show Info Dialog"),
),
],
),
),
),
);
}
}
```