@@ -11,29 +11,43 @@ and the Flutter guide for
11
11
[developing packages and plugins](https://flutter.dev/developing-packages).
12
12
-->
13
13
14
- TODO: Put a short description of the package here that helps potential users
15
- know whether this package might be useful for them.
14
+ A simple state management solution that combine the power of inherited widget and rxdart
16
15
17
16
## Features
18
17
19
- TODO: List what your package can do. Maybe include images, gifs, or videos.
18
+ Create state management logic for your app using multitude of blocs, which internal
19
+ is just stream and rxdart, you can access them anywhere in your widget tree when
20
+ provided using providers.
20
21
21
22
## Getting started
22
23
23
- TODO: List prerequisites and provide or point to information on how to
24
- start using the package.
24
+ Started by providing blocs and service for your widget's subtree like this:
25
25
26
- ## Usage
26
+ ``` dart
27
+ class App extends StatelessWidget {
28
+ const App({Key? key}) : super(key: key);
29
+
30
+ @override
31
+ Widget build(BuildContext context) {
32
+ return MaterialApp(
33
+ home: RxProvider<CounterBloc>(
34
+ create: () => CounterBloc(10),
35
+ child: MyHomePage(),
36
+ )
37
+ );
38
+ }
39
+ }
40
+ ```
27
41
28
- TODO: Include short and useful examples for package users. Add longer examples
29
- to ` /example ` folder.
42
+ And then access them anywhere in your subtree with:
30
43
31
44
``` dart
32
- const like = 'sample' ;
45
+ final bloc = RxProvider.of<CounterBloc>(context) ;
33
46
```
34
47
48
+ ## Usage
49
+
50
+ More details coming soon
51
+
35
52
## Additional information
36
53
37
- TODO: Tell users more about the package: where to find more information, how to
38
- contribute to the package, how to file issues, what response they can expect
39
- from the package authors, and more.
0 commit comments