zam_event_bus_provider 0.0.1
zam_event_bus_provider: ^0.0.1 copied to clipboard
A provider for flutter that passes EventBus down to all the widgets.
Event Bus Provider #
A flutter provider that passes EventBus down to all the widgets.
What's inside the package #
Includes the following core components.
Check out all the components in detail here
How to use #
void main() {
final bus = EventBus(transformers);
// Add EventBusProvider before MaterialApp so that
// it is made available to all the routes.
final app = EventBusProvider(
bus: bus,
child: MaterialApp(
home: MyHomePage(title: 'Event Bus Demo'),
),
);
runApp(app);
}
To learn more, move on to the example section or check out this dedicated example in github.