smart_progress_dialog 0.0.3 copy "smart_progress_dialog: ^0.0.3" to clipboard
smart_progress_dialog: ^0.0.3 copied to clipboard

A Flutter package for showing customizable animated dialogs, alerts, snackbars, and loaders with Lottie support.

Smart Progress Dialog #

Smart Progress Dialog is a lightweight and customizable Flutter package that provides animated progress dialogs for loading, success, failure, and warning states. It also includes a controller, list loader for infinite scroll, pull-to-refresh support, and snackbars for lightweight feedback.

[Smart Progress Dialog Logo]


✨ Features #

  • ✅ SmartProgressDialog with loading, success, failure, and warning animations
  • 🎮 SmartProgressController for managing dialog states
  • 🔁 SmartRefreshIndicator for pull-to-refresh support
  • 📦 SmartListLoader for infinite scroll lists
  • 🍞 SmartSnackBar for quick toast-like user feedback
  • 🎨 Customizable size, color, position, and message support

🚀 Installation #

Add this to your pubspec.yaml:

dependencies:
  smart_progress_dialog: ^0.0.3

Import it:

import 'package:smart_progress_dialog/smart_progress_dialog.dart';

🧠 Usage #

1. Dialog With Controller #

final controller = SmartProgressController();
controller.attach(context);

controller.showLoading("Loading...");
await Future.delayed(Duration(seconds: 2));
controller.showSuccess("Done!");

2. Inline Dialog Usage #

showDialog(
  context: context,
  builder: (_) => SmartProgressDialog(
    state: SmartProgressState.warning,
    message: "Be careful!",
    color: Colors.orange,
  ),
);

3. Infinite Scroll List Loader #

SmartListLoader(isLoading: isLoadingMore)

4. Pull to Refresh #

SmartRefreshIndicator(
  onRefresh: _refresh,
  child: ListView(...),
)

5. Show Snackbar #

SmartSnackBar.show(
  context,
  "Item saved!",
  state: SmartProgressState.success,
  position: SnackBarPosition.top, // or SnackBarPosition.bottom
  backgroundColor: Colors.indigo,
);

📂 File Structure #

lib/
├── smart_progress_dialog.dart         # Export entry
└── src/
    ├── smart_progress_dialog.dart     # Main dialog
    ├── smart_progress_controller.dart # Dialog controller
    ├── smart_list_loader.dart         # Scroll loader
    ├── smart_refresh_indicator.dart   # Refresh wrapper
    ├── smart_snack_bar.dart           # Snackbar utility
    └── dialog_state.dart              # Enum definition

📸 Screenshots #

Type Preview
Loading []
Success []
Warning []
Error []
Snackbar []
Alert []
Refresh []
Load More []

📄 License #

MIT License © 2025 Akika Digital

3
likes
0
points
48
downloads

Publisher

verified publisherakika.digital

Weekly Downloads

A Flutter package for showing customizable animated dialogs, alerts, snackbars, and loaders with Lottie support.

Repository (GitHub)
View/report issues

Topics

#flutter #dialogs #progress #snackbar #alerts

License

unknown (license)

Dependencies

flutter, lottie

More

Packages that depend on smart_progress_dialog