Skip to content

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
SilentCatD committed Sep 9, 2022
1 parent d37c37f commit 2ce6674
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.4.0

* Add Rx Static class

## 1.3.0+1

* Format
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ widget subtree.

- ServiceProvider

## Rx

Though not really inherited, this library do provide the use of register an instance through GetIt,
and use them in builders, listeners .value constructor. This feature can be access with Rx static method

## Additional information

To provide multiple blocs or model instance, the use of these widget is encouraged:
Expand All @@ -175,11 +180,13 @@ context.get<MyService>(); //for getting an instance of a service.
And

```dart
final text = RxValue<String>("hello");
```

Is equivalent to:

```dart
final text = "hello".rx;
```

0 comments on commit 2ce6674

Please sign in to comment.