Skip to content

Commit c84eb35

Browse files
committed
Mention the stateful mixin in the README
1 parent 2d28348 commit c84eb35

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Computed Flutter allows you to interface Computed with Flutter-specific function
1414
- [Here's how it works](#Hereshowitworks)
1515
- [Using Computed with widgets](#UsingComputedwithwidgets)
1616
- [Using `Computed[Stateful]Widget`](#UsingComputedStatefulWidget)
17-
- [Using `ComputedFlutterMixin`](#UsingComputedFlutterMixin)
17+
- [Using `ComputedFlutter[Stateful]Mixin`](#UsingComputedFlutterStatefulMixin)
1818
- [Using `ComputedBuilder`](#UsingComputedBuilder)
1919
- [Ingesting data sources](#Ingestingdatasources)
2020
- [Using results of computations](#Usingresultsofcomputations)
@@ -62,14 +62,18 @@ class MyWidget extends ComputedWidget {
6262
}
6363
```
6464

65-
### <a name='UsingComputedFlutterMixin'></a>Using `ComputedFlutterMixin`
65+
### <a name='UsingComputedFlutterStatefulMixin'></a>Using `ComputedFlutter[Stateful]Mixin`
6666

67-
If you do not want your widgets to extend `Computed[Stateful]Widget`, perhaps for widgets already extending some other class, you can use the mixin:
67+
If you do not want your widgets to extend `Computed[Stateful]Widget`, perhaps for widgets already extending some other class, you can use the mixins:
6868

6969
```
7070
class MyWidget extends MyOtherWidget with ComputedFlutterMixin {
7171
...
7272
}
73+
74+
class MyStatefulWidget extends MyOtherStatefulWidget with ComputedFlutterStatefulMixin {
75+
...
76+
}
7377
```
7478

7579
### <a name='UsingComputedBuilder'></a>Using `ComputedBuilder`

0 commit comments

Comments
 (0)