zeba_academy_toast 1.0.0
zeba_academy_toast: ^1.0.0 copied to clipboard
Beautiful customizable toast notifications for Flutter.
zeba_academy_toast #
A lightweight, customizable, and production-ready toast notification package for Flutter.
zeba_academy_toast makes it easy to display beautiful toast messages with smooth animations, customizable styling, queue management, and flexible positioning while keeping your application lightweight and dependency-free.
✨ Features #
- ✅ Success Toast
- ❌ Error Toast
- ⚠️ Warning Toast
- ℹ️ Info Toast
- 📍 Top & Bottom Positioning
- ⏱ Auto Dismiss Timer
- 🎨 Fully Customizable Colors
- 🖌 Custom Icons
- 🔥 Beautiful Material Design
- 🚀 Smooth Fade & Slide Animation
- 📦 Queue Handling
- 📱 Responsive Layout
- 🌙 Dark Theme Friendly
- 🎯 Null Safe
- 💙 Flutter 3.x Support
- 🌍 Cross Platform
Platform Support #
| Platform | Supported |
|---|---|
| Android | ✅ |
| iOS | ✅ |
| Web | ✅ |
| Windows | ✅ |
| macOS | ✅ |
| Linux | ✅ |
Installation #
Add the package to your pubspec.yaml.
dependencies:
zeba_academy_toast: ^1.0.0
Install dependencies.
flutter pub get
Import the package.
import 'package:zeba_academy_toast/zeba_academy_toast.dart';
Quick Start #
Success Toast #
ZebaToast.success(
context,
"Profile updated successfully!",
);
Error Toast #
ZebaToast.error(
context,
"Something went wrong.",
);
Warning Toast #
ZebaToast.warning(
context,
"Your storage is almost full.",
);
Info Toast #
ZebaToast.info(
context,
"A new update is available.",
);
Toast Position #
Top #
ZebaToast.success(
context,
"Welcome!",
position: ToastPosition.top,
);
Bottom #
ZebaToast.success(
context,
"Saved successfully!",
position: ToastPosition.bottom,
);
Auto Dismiss Duration #
ZebaToast.success(
context,
"Data saved.",
duration: Duration(seconds: 5),
);
Custom Background Color #
ZebaToast.success(
context,
"Completed!",
backgroundColor: Colors.black,
);
Custom Text Color #
ZebaToast.success(
context,
"Completed!",
textColor: Colors.yellow,
);
Custom Icon #
ZebaToast.info(
context,
"Download completed.",
icon: Icons.download_done,
);
Fully Customized Toast #
ZebaToast.show(
context: context,
message: "Custom Toast",
type: ToastType.success,
position: ToastPosition.top,
duration: Duration(seconds: 4),
backgroundColor: Colors.indigo,
textColor: Colors.white,
icon: Icons.star,
);
Queue Handling #
Multiple toast requests are automatically queued.
ZebaToast.success(context, "Toast 1");
ZebaToast.success(context, "Toast 2");
ZebaToast.success(context, "Toast 3");
They appear one after another automatically.
Built-in Toast Types #
| Type | Icon |
|---|---|
| Success | ✅ |
| Error | ❌ |
| Warning | ⚠️ |
| Info | ℹ️ |
API Overview #
| Method | Description |
|---|---|
| success() | Success toast |
| error() | Error toast |
| warning() | Warning toast |
| info() | Information toast |
| show() | Fully customizable toast |
Why zeba_academy_toast? #
- Lightweight
- No third-party dependencies
- Material Design
- Easy to use
- Queue management
- Smooth animations
- Null Safety
- Production Ready
- Cross Platform
- Highly Customizable
Example #
ElevatedButton(
onPressed: () {
ZebaToast.success(
context,
"Welcome to Zeba Academy!",
);
},
child: const Text("Show Toast"),
)
Roadmap #
- More animation styles
- Swipe to dismiss
- Progress indicator
- Custom builders
- Blur backgrounds
- Toast grouping
- Accessibility improvements
- Localization support
Contributing #
Contributions are welcome!
If you find a bug or have a feature request, feel free to open an issue or submit a pull request.
License #
This project is licensed under the GNU General Public License v3.0 (GPL-3.0).
See the LICENSE file for complete license details.
About Me #
✨ I’m Sufyan bin Uzayr, an open-source developer passionate about building and sharing meaningful projects.
You can learn more about me and my work at https://sufyanism.com/ or connect with me on LinkedIn:
https://www.linkedin.com/in/sufyanism
Your all-in-one learning hub! #
🚀 Explore courses and resources in coding, tech, and development at Zeba Academy.
Empower yourself with practical skills through curated tutorials, real-world projects, and hands-on experience.
🌐 Website #
💻 Coding Portal #
▶️ YouTube #
https://www.youtube.com/@zeba.academy
📸 Instagram #
https://www.instagram.com/zeba.academy/
Thank You ❤️ #
Thank you for using zeba_academy_toast.
If you like this package, please consider giving it a ⭐ on GitHub and sharing it with the Flutter community.
Happy Coding! 🚀