Skip to content

Commit 98af675

Browse files
authored
Update and clarify command package suggestion (#13489)
- Replaces `flutter_command` with its successor `command_it`. - Clarify what the package provides. - Use a softer title to present it as an option rather than requirement or even strong recommendation. Fixes #12204
1 parent a007b99 commit 98af675

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

  • sites/docs/src/content/app-architecture/case-study

sites/docs/src/content/app-architecture/case-study/ui-layer.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -530,12 +530,14 @@ the number of arguments that the underlying method expects.
530530
You can see examples of these implementation classes in
531531
the Compass app's [`utils` directory][].
532532

533-
:::tip Package recommendation
534-
Instead of writing your own `Command` class,
535-
consider using the [`flutter_command`][] package,
536-
which is a robust library that implements classes like these.
533+
:::tip Package option
534+
To use this pattern without writing your own command classes,
535+
consider using a package such as [`command_it`][],
536+
which provides command types to wrap actions and
537+
track their running, completed, and error states.
537538
:::
538539

540+
[`command_it`]: {{site.pub-pkg}}/command_it
539541

540542
### Ensuring views can render before data exists
541543

@@ -647,7 +649,6 @@ the Command pattern. [Read about it on GitHub][].
647649
[`Scaffold`]: {{site.api}}/flutter/material/Scaffold-class.html
648650
[`Dismissible`]: {{site.api}}/flutter/widgets/Dismissible-class.html
649651
[`utils` directory]: https://github.com/flutter/samples/blob/main/compass_app/app/lib/utils/command.dart
650-
[`flutter_command`]: {{site.pub-pkg}}/flutter_command
651652
[streams]: {{site.api}}/flutter/dart-async/Stream-class.html
652653
[`StreamBuilders`]: {{site.api}}/flutter/widgets/StreamBuilder-class.html
653654
[`AsyncSnapshot`]: {{site.api}}/flutter/widgets/AsyncSnapshot-class.html

0 commit comments

Comments
 (0)