toast_pack 0.1.1
toast_pack: ^0.1.1 copied to clipboard
A lightweight, zero-dependency Flutter package for displaying toast notifications using Overlay.
0.1.1 #
Initial release.
ToastPack.success/.error/.warning/.infovariant API- Single active toast with configurable replacement (
instantReplace/gracefulCrossfade) - Leading visuals:
ToastLeading.none(default),.icon,.image,.appIcon - Percentage sizing for
ToastLeading.imageandToastLeading.appIconviaheightPercentageandwidthPercentage - Native launcher icon lookup on Android, iOS, and macOS; optional
ToastPack.init(defaultIconAsset: ...)override - Animations: slide + fade (default), fade, scale + fade
- Gravity: top / bottom / center; respects
SafeArea - Optional
overlayState— show toasts without aBuildContext - Per-toast
padding, defaulting toEdgeInsets.symmetric(horizontal: 10, vertical: 10) - Web-specific: gradient/hex background string, close button, horizontal position
- Zero runtime dependencies
- Requires Flutter
>=3.41.0