snacktoast 0.0.2
snacktoast: ^0.0.2 copied to clipboard
A production-ready Flutter package for customizable Toast messages and Snackbars with queue management, theming, and zero-dependency design.
Changelog #
All notable changes to this project will be documented in this file.
The format follows Keep a Changelog. This project adheres to Semantic Versioning.
0.0.2 — 2026-03-11 #
This release focuses on improving documentation and cleaning up the package presentation for a better user experience and higher pub.dev score.
Changed #
- Improved overall package documentation score by adding comprehensive dartdoc comments to all public API elements (classes, methods, fields, and enums).
- Removed Testing and Architecture sections from
README.mdto streamline the documentation. - Ensured 100% of the public API is documented.
0.0.1 — 2026-03-09 #
Initial release of SnackToastKit.
This release introduces a customizable toast and snackbar system for Flutter featuring modern animations, configurable visual styles, swipe gestures, progress indicators, and a queue-based display system.
Added #
Core System
-
SnackToastKitstatic API providing:toast()for overlay toastssnackbar()forScaffoldMessengersnackbars- convenience helpers:
success(),error(),warning(),info()
-
SnackToastConfigimmutable global configuration withcopyWith()support. -
SnackToastTypeenumsuccess | error | warning | info | custom -
SnackToastPositionenumtop | center | bottom
Animation System
-
SnackToastAnimationenum supporting multiple entrance animations:slideUpslideDownslideLeftslideRightfadescaleSpringbounceUpflipReveal
-
SnackToastAnimationResolverextension providing:entranceCurveexitCurveresolvedEntranceDuration(Duration)
-
Automatic animation selection based on toast position when no animation style is specified.
Visual Style System
-
SnackToastVisualStyleenum providing multiple rendering modes:standard— elevated card with layered shadowsglass— frosted blur card usingBackdropFiltergradient— rich multi-stop gradient backgroundminimal— clean white card with accent baroutlined— transparent card with glowing border
Gesture Interaction
- Swipe-to-dismiss support for toast notifications.
- Configurable dismiss threshold using distance or velocity.
- Smooth snap-back animation when dismissal conditions are not met.
Progress Indicator
- Optional animated progress bar showing toast duration.
- Automatically drains over the toast lifetime.
- Configurable height and visibility.
Icon Micro-Animation
- Elastic entrance animation for toast icons.
- Staggered animation timing for more natural UI feedback.
Queue System
SnackToastQueueFIFO queue ensuring sequential toast display.- Configurable
maxQueueSizeto prevent excessive stacking.
Overlay Architecture
ToastOverlayHostwidget providingTickerProviderfor toast animations.ToastControllermanaging toast lifecycle, animations, and dismissal.
Snackbar Integration
SnackToastSnackbarwrapper aroundScaffoldMessenger.- Supports consistent styling between toast and snackbar components.
Global Key Support
SnackToastKit.navigatorKeySnackToastKit.scaffoldMessengerKey
Allows displaying notifications without requiring a BuildContext.
Developer Utilities
SnackToastKit.reset()for clearing configuration and queues during tests.SnackToastKit.dismissAll()to programmatically remove active toasts.
This release establishes the base architecture and public API for SnackToastKit, enabling flexible toast and snackbar notifications across Flutter applications.