Seprable
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 aBuildContext. - 🎨 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.
Libraries
- seprable
- A customizable snackbar package for Flutter.