elegant_toast 1.0.7
elegant_toast: ^1.0.7 copied to clipboard
A beautiful, customizable Flutter toast package with progress bar, action buttons, toast queue, swipe to dismiss, persistent toasts, and loading toasts.
1.0.7 #
Bug Fixes #
- Fixed
borderRadius can only be given on borders with uniform colorscrash when usingcustomBorderwith different border colors — replacedBoxDecorationborder+radius withClipRRectapproach
1.0.6 #
New Features #
-
onTap— tap anywhere on the toast body to trigger a callback -
showIcon: false— hide the icon for a simple text-only toast -
maxLines— limit message lines with ellipsis overflow
1.0.5 #
New Features #
- Left border accent —
leftBorderColorinToastConfigadds a colored left-side border - Useful for card-style toasts like appointments, reminders, or calendar events
1.0.4 #
Improvements #
navigatorKeyis no longerfinal— can now be assigned an existing key- Supports sharing navigatorKey with other services (e.g. NavigationService, GetX)
1.0.2 #
Improvements #
- Replaced deprecated
withOpacity()withwithValues()to avoid color precision loss
1.0.1 #
New Features #
- Progress bar — animated countdown bar below the toast
- Action button — add Undo, Retry, View or any custom button inside the toast
- Toast queue — pass
useQueue: trueto stack toasts one after another - Swipe to dismiss — drag left or right to dismiss; configurable via
swipeToDismiss - Persistent toast — set
persistent: trueto disable auto-dismiss - Loading toast —
ElegantToast.showLoading()thenElegantToast.completeLoading() - Animation styles —
slideAndFade(default),fade,scale,bounce - Added
ElegantToast.dismiss()to dismiss current toast programmatically - Added
ElegantToast.clearQueue()to clear all queued toasts
Improvements #
- Better internal architecture with queue management
ToastThemeis now public for advanced customization- Improved animation smoothness with
easeOutCubiccurve - Cleaner separation of context-free and context-based APIs
1.0.0 #
- Initial release
- 5 toast types: success, error, warning, info, neutral
- 6 positions
- Fully customizable via ToastConfig
- Slide + fade animation
- Auto-dismiss and close button
- Context-free calls via
ElegantToast.navigatorKey