fabrik_snackbar 0.1.6 copy "fabrik_snackbar: ^0.1.6" to clipboard
fabrik_snackbar: ^0.1.6 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, easy-to-use, and customizable Snackbar + Toast library for Flutter.
It provides both Snackbars for rich feedback and Toasts for lightweight messages, all without boilerplate.

Learn more at → fabriktool.com

Demo #

Showcasing various snackbar types and toast positions

Fabrik Snackbar Demo

Features #

  • Modern, animated Snackbars
  • Minimal, centered Toasts
  • Custom icons, durations, and gradients
  • Rich text support with styled content
  • Prebuilt snackbar types: success, error, info, warning
  • Positioning support: top / bottom / center
  • Web and mobile compatibility
  • No extensions or init code needed

Installation #

Add to your pubspec.yaml:

dependencies:
  fabrik_snackbar: ^0.1.0

Usage #

Prebuilt Snackbar #

FabrikSnackbar.success(
  context,
  title: 'Success!',
  message: 'You registered successfully.',
);

Available types:
FabrikSnackbar.success
FabrikSnackbar.error
FabrikSnackbar.info
FabrikSnackbar.warning

Customize if needed:

position: FabrikSnackbarPosition.top,
maxWidth: 480,
safeArea: false,
barrierBlur: 4.0,

Rich Content Snackbar #

Use richTitle and richMessage for styled text with multiple colors, fonts, and decorations:

FabrikSnackbar.success(
  context,
  richTitle: TextSpan(
    children: [
      TextSpan(
        text: 'Success ',
        style: TextStyle(
          fontWeight: FontWeight.bold,
          color: Colors.white,
        ),
      ),
      TextSpan(
        text: '✓',
        style: TextStyle(
          color: Colors.green,
          fontSize: 18,
        ),
      ),
    ],
  ),
  richMessage: TextSpan(
    children: [
      TextSpan(
        text: 'Your account has been ',
        style: TextStyle(color: Colors.white70),
      ),
      TextSpan(
        text: 'successfully',
        style: TextStyle(
          fontWeight: FontWeight.bold,
          color: Colors.white,
        ),
      ),
      TextSpan(
        text: ' created!',
        style: TextStyle(color: Colors.white70),
      ),
    ],
  ),
);

Note: Use either regular text (title, message) or rich text (richTitle, richMessage).


Custom Snackbar #

FabrikSnackbar.custom(
  context,
  config: FabrikSnackbarConfig(
    title: 'Custom Title',
    message: 'You can customize everything.',
    icon: Icon(Icons.star),
    backgroundColor: Colors.purple,
    borderRadius: BorderRadius.circular(16),
    duration: Duration(seconds: 4),
  ),
);

Toast #

FabrikToast.show(
  context,
  message: 'Copied to clipboard',
);

Customize toast appearance:

position: FabrikToastPosition.top,
backgroundColor: Colors.white,
textColor: Colors.black,
fontSize: 16,

Contributing #

Want to contribute or report a bug?
Open an issue or PR on our repository.

Maintainers #

3
likes
160
points
350
downloads

Publisher

verified publisherfabriktool.com

Weekly Downloads

A beautifully crafted Snackbar and Toast package from the Fabrik Toolkit. Easy to use, highly customizable, and works on all platforms.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on fabrik_snackbar