toast_pack 0.1.2
toast_pack: ^0.1.2 copied to clipboard
A lightweight, zero-dependency Flutter package for displaying toast notifications using Overlay.
0.1.2 #
- Added
ToastIconClipforToastLeading.appIcon. ToastLeading.appIcon()now uses a circular leading shape by default.- Added
ToastIconClip.nonefor showing the resolved app icon without circular clipping. - Improved iOS app icon rendering so the icon is padded inside the circular leading badge instead of cropping edge artwork.
- Preserved the previous
defaultIconAssetbehavior: asset overrides remain unclipped unlessclip: ToastIconClip.circleis explicitly passed. - Added test coverage for default app-icon clipping, iOS badge rendering, and unclipped native and asset app icons.
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