toastify_x 1.1.0
toastify_x: ^1.1.0 copied to clipboard
A premium, highly customizable toast notification system for Flutter with modern styles like Modern, Minimal, Glass, and Flat. Smooth animations and easy setup.
ToastifyX 🚀 #
Premium, highly customizable toast notification system for Flutter. Elevate your app's UI with modern notification styles like Modern, Minimal, Glass, and Flat.

✨ Features #
- 📍 3 Layout Positions:
top,bottom, andcenter. - 🍞 5 Notification Types: Success, Error, Warning, Info, and Loading.
- 🎨 4 Premium Styles:
modern,minimal,glass, andflat. - 🌫️ Backdrop Blur: Real-time glassmorphism effect.
- 🎬 4 Animation Types:
slide,scale,fade, andbounce. - ⏳ Progress Indicators: Support for built-in linear progress bars.
- 🛠️ Fully Customizable: Icons, TextStyles, Padding, and Margin.
- 🎯 No Context Required: Show toasts from anywhere using
toastNavigatorKey.
🚀 Getting started #
Add toastify_x to your pubspec.yaml:
dependencies:
toastify_x: ^1.1.0
🛠 Usage #
First, add the toastNavigatorKey to your MaterialApp to enable toast support globally without having to pass context every time from deep in the widget tree.
import 'package:toastify_x/toastify_x.dart';
void main() {
runApp(
MaterialApp(
navigatorKey: toastNavigatorKey, // REQUIRED
home: YourHomeScreen(),
),
);
}
Then, show a toast from anywhere:
ToastifyX.show(
context,
message: "Your message here!",
type: ToastType.success,
style: ToastStyle.glass,
position: ToastPosition.top,
enableBlur: true,
);
🎯 Pro Tip: Global Access (No context required!) #
If you use the toastNavigatorKey, you can call ToastifyX.show(null, ...) and it will automatically use the root navigator's context.
📱 Demo UI #
Check out the example directory for a fully interactive demo app to see all combinations in action!
🎨 Style Showcase #

📍 Custom Positions & Types #
| Positions | Types | Effects |
|---|---|---|
![]() |
![]() |
![]() |
📜 License #
This project is licensed under the MIT License - see the LICENSE file for details.


