Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
clragon committed Jul 26, 2023
1 parent 486094e commit 9bba0b5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ The approach of SubProvider is preferable for several reasons:

## Principles

Much like `flutter_sub`, is built around the concept of Subs - compact versions of StatefulWidgets that create, update, and dispose of a value.
`flutter_sub_provider` extends this concept by integrating with `provider` to create SubProviders.
`flutter_sub_provider` uses `flutter_sub`'s concept of a Sub, a compact versions of StatefulWidgets that create, update, and dispose of a value,
and combines it with `provider` to create SubProviders.

SubProviders extend the corresponding Provider type and add the ability to manage dependencies.
When a dependency changes, the SubProvider fully recreates its managed object, ensuring that it always operates on the latest dependencies.
SubProviders extend the corresponding Provider type and add the ability to handle changing dependencies.
When a dependency updates, the SubProvider fully recreates its managed object, ensuring that it always operates on the latest dependencies.

For simplicity, you can imagine a SubProvider to look somewhat like this (in reality, it's a bit more complicated):
For simplicity, you can imagine a SubProvider to look somewhat like this:

```dart
class SubProvider<T, R> extends StatelessWidget {
Expand Down

0 comments on commit 9bba0b5

Please sign in to comment.