From 438b42f060cf0c786f2b200305df405b228f9549 Mon Sep 17 00:00:00 2001 From: 20goto10 Date: Wed, 8 May 2024 20:44:48 +0100 Subject: [PATCH] expanded flutter pub build section This important code is lost in the page. Expanded with note and a tip of how to generate code on ad-hoc basis --- website/docs/introduction/getting_started.mdx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/website/docs/introduction/getting_started.mdx b/website/docs/introduction/getting_started.mdx index 0bd66cb1a..a6c65ea46 100644 --- a/website/docs/introduction/getting_started.mdx +++ b/website/docs/introduction/getting_started.mdx @@ -72,8 +72,19 @@ Alternatively, you can manually add the dependency to your app from within your Then, install packages with `flutter pub get`. + ## Generating code from the terminal. You can now run the code-generator with{" "} flutter pub run build_runner watch. + This will generate main.g.dart + :::info + This command will monitor any @riverpod 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 + ``` + :::