fabrik_snackbar 0.1.8
fabrik_snackbar: ^0.1.8 copied to clipboard
A beautifully crafted Snackbar and Toast package from the Fabrik Toolkit. Easy to use, highly customizable, and works on all platforms.
0.1.0 Initial release #
FabrikSnackbar.success,.error,.info,.warningFabrikSnackbar.customfor full flexibility- Support for position, safe area, background blur, dismiss direction
FabrikToast.showwith positioning and style customization- Overlay-based display system with animations
- Defaults and config objects for advanced use cases
0.1.1 #
- Added icon in toast
- Added border radius in toast
- Updated documentation
0.1.2 #
- Fixed fabrik tool website link in docs
0.1.3 #
- Changed Snackbar's Material color to transparent
0.1.4 #
- updated repository url
0.1.5 #
- Added rich content support with
richTitleandrichMessageparameters for styled text - Built-in accessibility features with semantic labels and live regions
- Updated documentation
0.1.6 #
- Improved documentation
0.1.8 #
- Fix:
FabrikSnackbarPosition,FabrikSnackbarStyle, andFabrikSnackbarDismissDirectionare now exported. They appeared in the public API's parameter lists but were never exported fromfabrik_snackbar.dart, soposition: FabrikSnackbarPosition.top— the example published in the README — did not compile for anyone installing the package.FabrikSnackbarDefaultsis now exported too. - Fix: Swipe-to-dismiss no longer keeps the overlay entry mounted after the snackbar has visually gone.
Dismissibleremoves the child as soon as the gesture completes, and the widget then ran its full 400 ms slide-out on something already off screen — delayingonDismissedand the entry's removal by roughly 800 ms. Dismissal now completes as soon as the swipe does. - Fix: A swipe that races the auto-dismiss timer no longer triggers two dismissals;
onDismissedis invoked exactly once. - Fix: Showing a snackbar or toast with a context that has no
Overlayancestor now logs the intended diagnostic instead of throwing a framework assertion. The previousOverlay.of(...)lookup threw before the guard could run, making the fallback unreachable. - New:
titleStyleandmessageStyleonFabrikSnackbarConfigand on all four named variants, for styling plain-string content without replacing it with custom widgets. Defaults are unchanged, so existing snackbars render identically. - New:
FabrikSnackbarDefaults.defaultTitleStyleanddefaultMessageStyle, composed from the existing font-size, weight, and color constants which the widget previously ignored in favour of inline literals. - Tests: Suite grown from 2 to 73 tests, covering every variant, content-priority rules, dismissal paths, the barrier, accessibility labels, and the public export surface.
0.1.7 #
- Fix:
titleandmessageare now fully optional — pass any combination oftitle,richTitle,message, orrichMessage; at least one must be provided - Fix:
onTapcallback was never invoked due toGestureDetectorbeing built but not used as the container's child - Fix:
blockBackgroundInteractionbarrier now covers the full screen instead of being clipped inside the snackbar bounds - Fix:
Dismissiblenow uses aUniqueKeyper instance, preventing key conflicts when multiple snackbars are shown simultaneously - Added constructor-level assertions to
FabrikSnackbarConfigfortitle/richTitleandmessage/richMessagemutual exclusivity