smart_dialogs_plus 0.0.2
smart_dialogs_plus: ^0.0.2 copied to clipboard
A Flutter package for smart animated dialogs, alerts, snackbars, and loaders with controller and Lottie support.
Smart Dialogs Plus #
Smart Dialogs Plus is a complete Flutter UI feedback toolkit that combines animated dialogs, alerts, snackbars, pull-to-refresh indicators, and infinite scroll loaders. Built for modern apps that value clean, intuitive, and reactive feedback for every user interaction.
[Smart Dialogs Plus Banner]
✨ Features #
- ✅
SmartProgressDialogwith animations for loading, success, failure, and warning states - ⚠️
SmartAlertDialogfor confirmations, info, and warnings - 🍞
SmartSnackBarfor toast-like user feedback with flexible placement - 🔁
SmartRefreshIndicatorto wrap scroll views with pull-to-refresh - 📆
SmartListLoaderto append a loader during infinite scroll - 🎮
SmartProgressControllerto manage dialog state transitions programmatically - 🎨 Full customization of color, message, placement, and icons
🚀 Installation #
Add to your pubspec.yaml:
dependencies:
smart_dialogs_plus: ^0.0.2
Import into your Dart files:
import 'package:smart_dialogs_plus/smart_dialogs_plus.dart';
🧠 Usage #
1. Show Progress Dialog with Controller #
final controller = SmartProgressController();
controller.attach(context);
controller.showLoading("Please wait...");
await Future.delayed(Duration(seconds: 2));
controller.showSuccess("All done!");
2. Inline Progress Dialog #
showDialog(
context: context,
builder: (_) => SmartProgressDialog(
state: SmartProgressState.warning,
message: "Something might be wrong.",
color: Colors.orange,
),
);
3. Show Alert Dialog #
showDialog(
context: context,
builder: (_) => SmartAlertDialog(
title: "Confirm Logout",
message: "Are you sure you want to log out?",
state: SmartProgressState.warning,
onConfirm: () => print("User confirmed"),
),
);
4. Show Custom Snackbar #
SmartSnackBar.show(
context,
"Item deleted successfully",
state: SmartProgressState.success,
position: SnackBarPosition.top,
backgroundColor: Colors.green,
);
5. Load More in Infinite Scroll List #
SmartListLoader(isLoading: isLoadingMore)
6. Pull to Refresh Integration #
SmartRefreshIndicator(
onRefresh: _refreshData,
child: ListView.builder(...),
)
📂 File Structure #
lib/
├── smart_dialogs_plus.dart # Export entry
└── src/
├── smart_alert_dialog.dart # Alert dialog with confirm/cancel
├── smart_progress_dialog.dart # Animated progress feedback
├── smart_snack_bar.dart # Flexible snackbar
├── smart_refresh_indicator.dart # Pull to refresh wrapper
├── smart_list_loader.dart # Infinite scroll loader
├── smart_progress_controller.dart # Controller
└── dialog_state.dart # Enum of states
📸 Screenshots #
| Type | Preview |
|---|---|
| Loading | [] |
| Success | [] |
| Warning | [] |
| Error | [] |
| Snackbar | [] |
| Alert | [] |
| Refresh | [] |
| Load More | [] |
📄 License #
MIT License © 2025 Akika Digital
💡 Contributing #
Got ideas for more widgets or improvements? Submit an issue or pull request on GitHub. Let’s make feedback in Flutter apps smarter — together!
Smart Dialogs Plus — One toolkit to handle all user feedback in Flutter apps.