seprable 0.0.3 copy "seprable: ^0.0.3" to clipboard
seprable: ^0.0.3 copied to clipboard

A highly customizable and elegant snackbar package for Flutter that uses Overlay for non-blocking notifications.

Seprable #

pub package License: MIT

A highly customizable, elegant, and non-blocking snackbar package for Flutter. Unlike standard SnackBars, Seprable uses the Overlay system to provide notifications that don't block user interaction and can be styled with rich aesthetics.

✨ Features #

  • 🚀 Overlay-based: Doesn't depend on ScaffoldMessenger, works anywhere with a BuildContext.
  • 🎨 Rich Aesthetics: Pre-styled for Success, Error, Info, and Debug states.
  • Smooth Animations: Built-in slide and fade transitions.
  • 🛠 Customizable: Control duration, colors, and actions.
  • 🖱 Interactive: Supports "Undo" actions and manual dismissal.

🚀 Getting started #

Add the dependency to your pubspec.yaml:

dependencies:
  seprable: ^0.0.3

📖 Usage #

Import the package:

import 'package:seprable/seprable.dart';

Show a simple Snackbar #

SeparableSnackbar.show(
  context: context,
  title: 'Success!',
  message: 'Your operation was completed successfully.',
  type: SeparableSnackbarType.success,
);

Show with a custom duration and Undo action #

SeparableSnackbar.show(
  context: context,
  title: 'Deleted',
  message: 'Item has been moved to trash.',
  type: SeparableSnackbarType.error,
  duration: Duration(seconds: 4),
  onUndo: () {
    print('Restoring item...');
  },
);

🛠 Types #

Type Default Color Best For
info Blue General information
success Green Positive confirmation
error Red Errors or warnings
debug BlueGrey Developer logs

📝 Additional information #

For more information, visit the repository.

📄 License #

This project is licensed under the MIT License - see the LICENSE file for details.

1
likes
160
points
154
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A highly customizable and elegant snackbar package for Flutter that uses Overlay for non-blocking notifications.

Repository (GitHub)
View/report issues

Topics

#snackbar #overlay #ui #animation #notification

License

MIT (license)

Dependencies

flutter, gap

More

Packages that depend on seprable