Skip to content

Commit a847e6b

Browse files
authored
Docs: Follow one convention for writing "one-to-one" (#12352)
_Description of what this PR is changing or adding, and why:_ Changed other conventions like "1:1" and "1-to-1" to "one-to-one" for consistency. (Also, "one-to-one" looks like the standardized way.)
1 parent 9d465f1 commit a847e6b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ would take up the full screen on mobile.
254254
:::note
255255
"View" is an abstract term, and one view doesn't equal one widget.
256256
Widgets are composable, and several can be combined to create one view.
257-
Therefore, view models don't have a 1-to-1 relationship with widgets,
258-
but rather a 1-to-1 relation with a *collection* of widgets.
257+
Therefore, view models don't have a one-to-one relationship with widgets,
258+
but rather a one-to-one relation with a *collection* of widgets.
259259
:::
260260

261261
The widgets within a view have three responsibilities:

src/content/app-architecture/guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ based on the MVVM design pattern:
107107
For example, you might need to combine data from multiple repositories,
108108
or you might want to filter a list of data records.
109109

110-
Views and view models should have a 1:1 relationship.
110+
Views and view models should have a one-to-one relationship.
111111

112112
<img src='/assets/images/docs/app-architecture/guide/feature-architecture-simplified-UI-highlighted.png' alt="A simplified diagram of the architecture described on this page with the view and view model objects highlighted.">
113113

@@ -120,8 +120,8 @@ and you can test the logic of your UI independently of Flutter widgets.
120120
:::note
121121
'View' is an abstract term, and one view doesn't equal one widget.
122122
Widgets are composable, and several can be combined to create one view.
123-
Therefore, view models don't have a 1-to-1 relationship with widgets,
124-
but rather a 1-to-1 relationship with a *collection* of widgets.
123+
Therefore, view models don't have a one-to-one relationship with widgets,
124+
but rather a one-to-one relationship with a *collection* of widgets.
125125
:::
126126

127127
A feature of an application is user centric,

0 commit comments

Comments
 (0)