Skip to content

Commit 91de406

Browse files
ferraraferFilledStacks
authored andcommitted
Update create bottom_sheet command on CLI page
1 parent 0ab31a6 commit 91de406

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
@@ -92,6 +92,17 @@ stacked create bottom_sheet alert
9292

9393
This will create a new BottomSheet called `AlertSheet` in the `ui/bottom_sheets` folder and add it to the dependencies in the `app.dart` file. By default, this will also create a SheetModel and the unit test file. If you only want a BottomSheet without a model and their test you just need to pass the flag `--no-model` to the command.
9494

95+
The following `arguments` are available on create bottom_sheet command:
96+
97+
| Argument | Alias | Description |
98+
| ------------------------- | ----- | ------------------------------------------------------------------------------------------------------------------------ |
99+
| --help | -h | Prints this usage information. |
100+
| --[no-]exclude-route | | When a route is excluded it will not be added to your app.dart routes collection. |
101+
| --[no-]model | | When model is provided, StackedView will be used instead of StatelessWidget and a Model will be created. Defaults: **true**. |
102+
| --template | -t | Selects the type of starter template to use when creating a new app. One oriented for mobile first or web first. Allowed: **mobile**, web. |
103+
| --config-path | -c | Sets the file path for the custom config. |
104+
| --line-length | -l | When a number is provided, it will be used as the line length for formatting code. |
105+
95106
### Add a New Dialog
96107

97108
From the root folder of your Stacked application, run the command:

0 commit comments

Comments
 (0)