ui_event_bus 1.0.2
ui_event_bus: ^1.0.2 copied to clipboard
A Flutter package offering a singleton broadcast event bus for easy global management of SnackBars, navigation, dialogs, and custom callbacks.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add ui_event_busThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
ui_event_bus: ^1.0.2Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:ui_event_bus/ui_event_bus.dart';