inherited_rxdart 0.0.5 copy "inherited_rxdart: ^0.0.5" to clipboard
inherited_rxdart: ^0.0.5 copied to clipboard

outdated

Inherited RxDart is a state management library that combine the power of InheritedWidget and RxDart, a simple and elegant state management solution for apps of any scale

A simple state management solution that combine the power of inherited widget and rxdart

Features #

Create state management logic for your app using multitude of blocs, which internal is just stream and rxdart, you can access them anywhere in your widget tree when provided using providers.

Getting started #

Started by providing blocs and service for your widget's subtree like this:

class App extends StatelessWidget {
  const App({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        home: RxProvider<CounterBloc>(
          create: () => CounterBloc(10),
          child: MyHomePage(),
        )
    );
  }
}

And then access them anywhere in your subtree with:

final bloc = RxProvider.of<CounterBloc>(context);

Usage #

More details coming soon

Additional information #

14
likes
0
points
48
downloads

Publisher

verified publishersilentcat.dev

Weekly Downloads

Inherited RxDart is a state management library that combine the power of InheritedWidget and RxDart, a simple and elegant state management solution for apps of any scale

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, meta, nested, rxdart

More

Packages that depend on inherited_rxdart