Skip to content

Commit

Permalink
finishing touches on Command
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelbeltran committed Dec 9, 2024
1 parent 5453494 commit 1b8f39e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/content/cookbook/architecture/command.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ js:

<?code-excerpt path-base="cookbook/architecture/command"?>

Model-View-ViewModel (MVVM) is a design pattern
[Model-View-ViewModel (MVVM)][] is a design pattern
that separates a feature of an application into three parts:
the model, the view model and the view.
Views and view models make up the UI layer of an application.
Expand All @@ -20,7 +20,7 @@ A command is a class that wraps a method
and helps to handle the different states of that method,
such as running, complete, and error.

View models can use commands to handle interaction and run actions.
[View models][] can use commands to handle interaction and run actions.
As well, they can be used to display different UI states,
like loading indicators when an action is running,
or an error dialog when an action failed.
Expand Down Expand Up @@ -628,5 +628,7 @@ final class Command1<T, A> extends Command<T> {
[Compass App example]: {{site.repo.samples}}/tree/main/compass_app
[`Result` class]: /cookbook/architecture/result
[pub.dev]: {{site.pub}}
[flutter_command]: {{site.pub-pkg}}/flutter_command
[`flutter_command`]: {{site.pub-pkg}}/flutter_command
[`ChangeNotifier`]: /get-started/fundamentals/state-management
[Model-View-ViewModel (MVVM)]: /app-architecture/guide#view-models
[View models]: /app-architecture/guide#view-models

0 comments on commit 1b8f39e

Please sign in to comment.