fabrik_snackbar 0.1.7
fabrik_snackbar: ^0.1.7 copied to clipboard
A beautifully crafted Snackbar and Toast package from the Fabrik Toolkit. Easy to use, highly customizable, and works on all platforms.
fabrik_snackbar #
A beautifully crafted Snackbar & Toast package for Flutter — zero boilerplate, easy to customize, works everywhere.

Features #
- Four prebuilt types: success, error, info, warning
- Lightweight Toast for simple inline messages
- Flexible content — plain text, rich text (
TextSpan), or custom widgets - Top / bottom positioning with safe area support
- Optional full-screen barrier with blur for modal-style feedback
- No setup, no extensions, no init code — just call it
Installation #
dependencies:
fabrik_snackbar: ^0.1.7
flutter pub get
Quick Start #
Snackbars #
title and message are both optional — provide whichever makes sense:
FabrikSnackbar.success(context, title: 'Saved!');
FabrikSnackbar.error(context, message: 'Something went wrong.');
FabrikSnackbar.warning(context, title: 'Heads up', message: 'Low storage.');
FabrikSnackbar.info(context, message: 'Syncing in the background…');
Toast #
FabrikToast.show(context, message: 'Copied to clipboard');
Customization #
Every detail is configurable via FabrikSnackbarConfig:
FabrikSnackbar.custom(
context,
config: FabrikSnackbarConfig(
title: 'Order placed',
message: 'Your items will arrive in 2–3 days.',
icon: const Icon(Icons.shopping_bag_outlined, color: Colors.white),
backgroundColor: Colors.indigo,
position: FabrikSnackbarPosition.top,
duration: const Duration(seconds: 5),
borderRadius: BorderRadius.circular(16),
actionButton: TextButton(
onPressed: () {},
child: const Text('View', style: TextStyle(color: Colors.white)),
),
onTap: () => debugPrint('snackbar tapped'),
),
);
Toast is just as flexible:
FabrikToast.show(
context,
message: 'Link copied',
icon: Icons.link,
position: FabrikToastPosition.top,
backgroundColor: Colors.black87,
);
Documentation #
Full API reference, advanced usage, and guides are available at fabriktool.com
Contributing #
Found a bug or have a suggestion? Open an issue or pull request on GitHub.