Skip to content

Commit 7ea9558

Browse files
committed
Fix anchor links in the README
1 parent 44f2be7 commit 7ea9558

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

Diff for: README.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,25 @@ Flutter bindings for [Computed](https://github.com/mstniy/computed.dart).
77
88
Computed Flutter allows you to interface Computed with Flutter-specific functionality, like `Widget`s and `Listenable`s.
99

10-
## <a name='Tableofcontents'></a>Table of contents
10+
## <a name='table-of-contents'></a>Table of contents
1111

1212
<!-- vscode-markdown-toc -->
1313

14-
- [Here's how it works](#Hereshowitworks)
15-
- [Using Computed with widgets](#UsingComputedwithwidgets)
16-
- [Using `Computed[Stateful]Widget`](#UsingComputedStatefulWidget)
17-
- [Using `ComputedFlutter[Stateful]Mixin`](#UsingComputedFlutterStatefulMixin)
18-
- [Using `ComputedBuilder`](#UsingComputedBuilder)
19-
- [Ingesting data sources](#Ingestingdatasources)
20-
- [Using results of computations](#Usingresultsofcomputations)
14+
- [Here is how it works](#here-is-how-it-works)
15+
- [Using Computed with widgets](#using-computed-with-widgets)
16+
- [Using `Computed[Stateful]Widget`](#using-`computed[stateful]widget`)
17+
- [Using `ComputedFlutter[Stateful]Mixin`](#using-`computedflutter[stateful]mixin`)
18+
- [Using `ComputedBuilder`](#using-`computedbuilder`)
19+
- [Ingesting data sources](#ingesting-data-sources)
20+
- [Using results of computations](#using-results-of-computations)
2121

2222
<!-- vscode-markdown-toc-config
2323
numbering=false
2424
autoSave=true
2525
/vscode-markdown-toc-config -->
2626
<!-- /vscode-markdown-toc -->
2727

28-
## <a name='Hereshowitworks'></a>Here's how it works
28+
## <a name='here-is-how-it-works'></a>Here is how it works
2929

3030
Assume you have a data source, like a `ValueListenable` representing some external state:
3131

@@ -43,12 +43,12 @@ Text('${v.use}')
4343

4444
Note that this does not use code generation, nor does it restrict your codebase to have at most one data source per object type.
4545

46-
## <a name='UsingComputedwithwidgets'></a>Using Computed with widgets
46+
## <a name='using-computed-with-widgets'></a>Using Computed with widgets
4747

4848
Using Computed facilities, like `.use` and `.react`, inside the `build` methods of widgets requires Computed to be aware of them.
4949
You can achieve this in several ways:
5050

51-
### <a name='UsingComputedStatefulWidget'></a>Using `Computed[Stateful]Widget`
51+
### <a name='using-`computed[stateful]widget`'></a>Using `Computed[Stateful]Widget`
5252

5353
If you have a custom widget, extending `StatelessWidget` or `StatefulWidget`, modify them to extend `ComputedWidget` or `ComputedStatefulWidget` instead:
5454

@@ -62,7 +62,7 @@ class MyWidget extends ComputedWidget {
6262
}
6363
```
6464

65-
### <a name='UsingComputedFlutterStatefulMixin'></a>Using `ComputedFlutter[Stateful]Mixin`
65+
### <a name='using-`computedflutter[stateful]mixin`'></a>Using `ComputedFlutter[Stateful]Mixin`
6666

6767
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

@@ -76,7 +76,7 @@ class MyStatefulWidget extends MyOtherStatefulWidget with ComputedFlutterStatefu
7676
}
7777
```
7878

79-
### <a name='UsingComputedBuilder'></a>Using `ComputedBuilder`
79+
### <a name='using-`computedbuilder`'></a>Using `ComputedBuilder`
8080

8181
If you are using a widget whose definition you cannot modify, or wish to limit the scope of reactive widget rebuilds, use `ComputedBuilder`:
8282

@@ -86,7 +86,7 @@ ComputedBuilder(builder: (ctx) =>
8686
)
8787
```
8888

89-
## <a name='Ingestingdatasources'></a>Ingesting data sources
89+
## <a name='ingesting-data-sources'></a>Ingesting data sources
9090

9191
Computed Flutter supports reactively depending on `ValueListenable`s with `.use`, as with Computed:
9292

@@ -113,7 +113,7 @@ final c = $((){
113113
});
114114
```
115115

116-
## <a name='Usingresultsofcomputations'></a>Using results of computations
116+
## <a name='using-results-of-computations'></a>Using results of computations
117117

118118
Computed Flutter allows you to turn computations into `Listenable`s and `ValueListenable`s:
119119

0 commit comments

Comments
 (0)