Skip to content

Commit 061f5e3

Browse files
hjJuniorFilledStacks
authored andcommitted
Update 04-form-basics.md
Without the interface, the `syncFormWithViewModel` will complain saying that viewModel is not a FormViewModel
1 parent f8d8644 commit 061f5e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/getting-started/04-form-basics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ class ContentViewModel extends FutureViewModel<Posts> {
240240
}
241241
242242
// Do instead
243-
class ContentViewModel extends FutureViewModel<Posts> with FormStateHelper{
243+
class ContentViewModel extends FutureViewModel<Posts> with FormStateHelper implements FormViewModel {
244244
...
245245
}
246246
```
@@ -249,4 +249,4 @@ class ContentViewModel extends FutureViewModel<Posts> with FormStateHelper{
249249

250250
## We're ready for the Web 🚀
251251

252-
Master Flutter on the web with the official [Flutter Web Course](https://masterflutterweb.carrd.co/)
252+
Master Flutter on the web with the official [Flutter Web Course](https://masterflutterweb.carrd.co/)

0 commit comments

Comments
 (0)