Skip to content

Commit

Permalink
expanded flutter pub build section
Browse files Browse the repository at this point in the history
This important code is lost in the page. Expanded with note and a tip of how to generate code on ad-hoc basis
  • Loading branch information
CadMunkey authored May 8, 2024
1 parent d0fb9be commit 438b42f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions website/docs/introduction/getting_started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,19 @@ Alternatively, you can manually add the dependency to your app from within your
Then, install packages with `flutter pub get`.

<When codegen={true}>
## Generating code from the terminal.
You can now run the code-generator with{" "}
<code>flutter pub run build_runner watch</code>.
This will generate main.g.dart
:::info
This command will monitor any <code>@riverpod</code> changes and regenerate code automatically.
:::info
:::tip
To generate code on an ad-hoc basis you can run the following:
```sh
flutter pub build_runner build --delete-conflicting-outputs
```
:::
</When>

</TabItem>
Expand Down

0 comments on commit 438b42f

Please sign in to comment.