From a3c8b060cb3dc54d9bf6996905dbed7e99d1cb48 Mon Sep 17 00:00:00 2001 From: Parker Lougheed Date: Wed, 10 Jun 2026 16:10:06 +0200 Subject: [PATCH 1/2] Update and clarify command package suggestion --- .../content/app-architecture/case-study/ui-layer.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sites/docs/src/content/app-architecture/case-study/ui-layer.md b/sites/docs/src/content/app-architecture/case-study/ui-layer.md index e94e91766e..6e47c3a7a5 100644 --- a/sites/docs/src/content/app-architecture/case-study/ui-layer.md +++ b/sites/docs/src/content/app-architecture/case-study/ui-layer.md @@ -530,12 +530,14 @@ the number of arguments that the underlying method expects. You can see examples of these implementation classes in the Compass app's [`utils` directory][]. -:::tip Package recommendation -Instead of writing your own `Command` class, -consider using the [`flutter_command`][] package, -which is a robust library that implements classes like these. +:::tip Package option +To use this pattern without writing your own command classes, +consider using packages such as [`command_it`][], +which provide command types to wrap actions and +track their running, completed, and error states. ::: +[`command_it`]: {{site.pub-pkg}}/command_it ### Ensuring views can render before data exists @@ -647,7 +649,6 @@ the Command pattern. [Read about it on GitHub][]. [`Scaffold`]: {{site.api}}/flutter/material/Scaffold-class.html [`Dismissible`]: {{site.api}}/flutter/widgets/Dismissible-class.html [`utils` directory]: https://github.com/flutter/samples/blob/main/compass_app/app/lib/utils/command.dart -[`flutter_command`]: {{site.pub-pkg}}/flutter_command [streams]: {{site.api}}/flutter/dart-async/Stream-class.html [`StreamBuilders`]: {{site.api}}/flutter/widgets/StreamBuilder-class.html [`AsyncSnapshot`]: {{site.api}}/flutter/widgets/AsyncSnapshot-class.html From cb3ba7cbcf0a42f69f7fad9c2ada71489c2abf90 Mon Sep 17 00:00:00 2001 From: Parker Lougheed Date: Wed, 10 Jun 2026 16:16:21 +0200 Subject: [PATCH 2/2] Apply review suggestion --- .../docs/src/content/app-architecture/case-study/ui-layer.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sites/docs/src/content/app-architecture/case-study/ui-layer.md b/sites/docs/src/content/app-architecture/case-study/ui-layer.md index 6e47c3a7a5..3533ed3012 100644 --- a/sites/docs/src/content/app-architecture/case-study/ui-layer.md +++ b/sites/docs/src/content/app-architecture/case-study/ui-layer.md @@ -532,8 +532,8 @@ the Compass app's [`utils` directory][]. :::tip Package option To use this pattern without writing your own command classes, -consider using packages such as [`command_it`][], -which provide command types to wrap actions and +consider using a package such as [`command_it`][], +which provides command types to wrap actions and track their running, completed, and error states. :::