A global, animated, queued notification bar for Flutter apps.
- 🔝 Top or bottom positioning (configurable per notification)
- 🎨 Multiple styles:
info,warning,success - 🔁 Queued notifications (one at a time, next shows after dismissal)
- 👆 Tap-to-navigate actions
- 🎬 Smooth slide animations
- ⚡ Global access via singleton (
NotificationBar().show())
To use notification_bar, add the following dependency to your pubspec.yaml:
dependencies:
notification_bar: ^1.0.0Run the following command to install the dependency:
flutter pub getImport the package into your Dart file:
import 'package:notification_bar/notification_bar.dart';NotificationBar().show(
context: context,
message: 'Feature is off. Tap to enable.',
style: NotificationStyle.warning,
position: NotificationPosition.top,
onTap: () => Navigator.push(context, MaterialPageRoute(builder: (_) => const SettingsPage())),
);