Is the documentation setup example wrong? #3401
-
|
Hello, Drift looks really nice. This is a question about the documentation. Following the code examples at https://drift.simonbinder.eu/setup/ results in a If I comment the parameter code block like below, then it works: I know that this was mentioned in the discussion here (#3266), but it wasn't clear whether this was intended in the example or not. Should the documentation be updated somehow so others don't run into this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Thanks for reaching out, and good catch! The docs are always written with the latest drift versions in mind (and they should suggest installing the latest drift version too). The setup page failed to do that for The snippet works correctly with the latest |
Beta Was this translation helpful? Give feedback.
Thanks for reaching out, and good catch! The docs are always written with the latest drift versions in mind (and they should suggest installing the latest drift version too). The setup page failed to do that for
drift_flutterbecause we suggestdrift_flutter: ^0.1.0when we should be suggestingdrift_flutter: ^0.2.4...The snippet works correctly with the latest
drift_flutterversion, I'll get the suggested dependencies fixed ASAP.