-
-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expanded flutter pub build section #3532
base: master
Are you sure you want to change the base?
Conversation
This important code is lost in the page. Expanded with note and a tip of how to generate code on ad-hoc basis
|
:::tip | ||
To generate code on an ad-hoc basis you can run the following: | ||
```sh | ||
flutter pub build_runner build --delete-conflicting-outputs | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I doubt that's a very useful information
@@ -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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Labels aren't supported by the doc inside conditional text.
@@ -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>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about changing the <code>
into a ```
?
The label doesn't work, and I don't like the idea of adding semi-redundant information
<code>flutter pub run build_runner watch</code>. | |
Then, you'll need to start the code-generator. To do so, run the following command in a terminal: | |
``` | |
flutter pub run build_runner watch</code>. | |
``` |
This important code is lost in the page. Expanded with note and a tip of how to generate code on ad-hoc basis
Related Issues
fixes #your-issue-number
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
).I have updated the
CHANGELOG.md
of the relevant packages.Changelog files must be edited under the form:
If this contains new features or behavior changes,
I have updated the documentation to match those changes.