Skip to content

Commit d2936c5

Browse files
ferraraferFilledStacks
authored andcommitted
Update create dialog command on CLI page
1 parent 91de406 commit d2936c5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/tooling/stacked-cli.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,17 @@ stacked create dialog error
113113

114114
This will create a new Dialog called `ErrorDialog` in the `ui/dialogs` folder and add it to the dependencies in the `app.dart` file. By default, this will also create a DialogModel and the unit test file. If you only want a Dialog without a model and their test you just need to pass the flag `--no-model` to the command.
115115

116+
The following `arguments` are available on create dialog command:
117+
118+
| Argument | Alias | Description |
119+
| ------------------------- | ----- | ------------------------------------------------------------------------------------------------------------------------ |
120+
| --help | -h | Prints this usage information. |
121+
| --[no-]exclude-route | | When a route is excluded it will not be added to your app.dart routes collection. |
122+
| --[no-]model | | When model is provided, StackedView will be used instead of StatelessWidget and a Model will be created. Defaults: **true**. |
123+
| --template | -t | Selects the type of dialog to create instead of the default empty dialog. Allowed: **empty**. |
124+
| --config-path | -c | Sets the file path for the custom config. |
125+
| --line-length | -l | When a number is provided, it will be used as the line length for formatting code. |
126+
116127
### Generate Code
117128

118129
When you've changed something manually, or added a new model, instead of executing the command `flutter pub run build_runner build --delete-conflicting-outputs` you can simply run `stacked generate`.

0 commit comments

Comments
 (0)