thing_toast 1.1.1
thing_toast: ^1.1.1 copied to clipboard
Implementation of Material 3 Expressive Toast. Inspired by Sonner from Shandcn. 4 Types of Toast: Succes, Info, Warning, and Error.
1.1.1 #
Fixed
- Replaced
Overlay.of(context, rootOverlay: true)withOverlay.maybeOf(context, rootOverlay: true)guarded by an assert and a null check, so a context with no Overlay ancestor (e.g. in a misconfigured test harness) fails loudly in debug/profile builds via the assertion, but degrades to a no-op instead of crashing in release.
1.1.0 #
BREAKING CHANGES
- Full rewrite of the toast implementation into an expressive Material 3 pill with spring physics (via
motor). ThingToastis now anabstract finalclass with static methods only; the singleton/factory pattern is removed.BuildContextis now a named required parameter (context:).iconnow acceptsIconData?instead ofWidget?.- Replace the
titleandsubtitleparameter with a singlemessageparameter. - Removed
ThingToast.dismiss(String id). - Added
positionparameter (ToastPosition.top/ToastPosition.bottom, defaultbottom). - Minimum dart sdk version
3.12.0.
New features
- Stacked toasts like a card stack, up to 3 deep per edge; top and bottom piles stack and overflow independently.
- Duplicate detection: showing the same message and icon again shakes the existing toast and restarts its countdown instead of adding a new one.
- Drag or fling to dismiss, tap to dismiss, and holding pauses the auto-dismiss countdown.
- Bottom toasts float above the keyboard via
viewInsets. - Arch-shaped icon chip colored by toast type (success, info, warning, error).
- Theming follows
SnackBar: inverse surface container with body medium text, plusSemantics.liveRegionfor accessibility.
1.0.3 #
- Adjust ToastWidget height and padding
- minimum dart sdk version
3.11.0
1.0.2 #
- Decrease border width from 1.5 to 1
- Add more space on top of the toast
1.0.1 #
BREAKING CHANGES
- minimum dart sdk version
3.10.0. - move
BuildContextfrom constructor to each function. - update description
1.0.0 #
First Major Version with a lot of improvement at style and behaviour. Inspired by Sonner from Shadcn.
- Implement sonner style (Stacked Toast)
- New animations
- remove
ToastPosition, default position at the top
0.4.0 #
- Add Custom Widget Icon parameters.
0.3.0 #
- Remove
iconsax_plusdependency.
0.2.0 #
- Fix issue on Android Plafrom where Toast was not showing correctly.
- Add support for iOS Platform.
- Refactor codebase.
- Update example app.
- Update documentation.
- Add Example app screenshots to README.md.
0.1.0 #
- Initial release of Thing Toast.