You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/get-started/fundamentals/layout.md
+26-26Lines changed: 26 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -203,9 +203,9 @@ The first figure on this page used both.
203
203
This is the most basic example of using a `Row` widget.
204
204
205
205
{% render "docs/code-and-image.md",
206
-
image:"fwe/layout/row.png",
207
-
caption: "This figure shows a row widget with three children."
208
-
alt: "A screenshot of a row widget with three children"
206
+
image:"fwe/layout/row.png",
207
+
caption: "This figure shows a row widget with three children.",
208
+
alt: "A screenshot of a row widget with three children",
209
209
code:"
210
210
```dart
211
211
Widget build(BuildContext context) {
@@ -228,9 +228,9 @@ of the images in the example above using columns.
228
228
229
229
230
230
{% render "docs/code-and-image.md",
231
-
image:"fwe/layout/nested_row_column.png",
232
-
caption: "This figure shows a row widget with three children, each of which is a column."
233
-
alt: "A screenshot of a row of three widgets, each of which has a label underneath it."
231
+
image:"fwe/layout/nested_row_column.png",
232
+
caption: "This figure shows a row widget with three children, each of which is a column.",
233
+
alt: "A screenshot of a row of three widgets, each of which has a label underneath it.",
234
234
code:"
235
235
```dart
236
236
Widget build(BuildContext context) {
@@ -287,9 +287,9 @@ divides the free horizontal space evenly between,
287
287
before, and after each image.
288
288
289
289
{% render "docs/code-and-image.md",
290
-
image:"fwe/layout/space_evenly.png",
291
-
caption: "This figure shows a row widget with three children, which are aligned with the MainAxisAlignment.spaceEvenly constant."
292
-
alt: "A screenshot of three widgets, spaced evenly from each other."
290
+
image:"fwe/layout/space_evenly.png",
291
+
caption: "This figure shows a row widget with three children, which are aligned with the MainAxisAlignment.spaceEvenly constant.",
292
+
alt: "A screenshot of three widgets, spaced evenly from each other.",
293
293
code:"
294
294
```dart
295
295
Widget build(BuildContext context) {
@@ -340,9 +340,9 @@ images is too wide for its render box,
340
340
wrap each image with an [`Expanded`][] widget.
341
341
342
342
{% render "docs/code-and-image.md",
343
-
image:"fwe/layout/expanded_row.png",
344
-
caption: "This figure shows a row widget with three children that are wrapped with `Expanded` widgets."
345
-
alt: "A screenshot of three widgets, which take up exactly the amount of space available on the main axis. All three widgets are equal width."
343
+
image:"fwe/layout/expanded_row.png",
344
+
caption: "This figure shows a row widget with three children that are wrapped with `Expanded` widgets.",
345
+
alt: "A screenshot of three widgets, which take up exactly the amount of space available on the main axis. All three widgets are equal width.",
346
346
code:"
347
347
```dart
348
348
Widget build(BuildContext context) {
@@ -375,9 +375,9 @@ The following code sets the flex factor of the
375
375
middle image to 2:
376
376
377
377
{% render "docs/code-and-image.md",
378
-
image:"fwe/layout/flex_2_row.png",
379
-
caption: "This figure shows a row widget with three children which are wrapped with `Expanded` widgets. The center child has it's `flex` property set to 2."
380
-
alt: "A screenshot of three widgets, which take up exactly the amount of space available on the main axis. The widget in the center is twice as wide as the widgets on the left and right."
378
+
image:"fwe/layout/flex_2_row.png",
379
+
caption: "This figure shows a row widget with three children which are wrapped with `Expanded` widgets. The center child has it's `flex` property set to 2.",
380
+
alt: "A screenshot of three widgets, which take up exactly the amount of space available on the main axis. The widget in the center is twice as wide as the widgets on the left and right.",
381
381
code:"
382
382
```dart
383
383
Widget build(BuildContext context) {
@@ -470,9 +470,9 @@ all the available space on the cross axis,
470
470
as shown in the example below.
471
471
472
472
{% render "docs/code-and-image.md",
473
-
image:"fwe/layout/basic_listview.png",
474
-
caption: "This figure shows a ListView widget with three children."
475
-
alt: "A screenshot of three widgets laid out vertically. They have expanded to take up all available space on the cross axis."
473
+
image:"fwe/layout/basic_listview.png",
474
+
caption: "This figure shows a ListView widget with three children.",
475
+
alt: "A screenshot of three widgets laid out vertically. They have expanded to take up all available space on the cross axis.",
476
476
code:"
477
477
```dart
478
478
Widget build(BuildContext context) {
@@ -501,9 +501,9 @@ and therefore the number of todos is unknown.
501
501
502
502
503
503
{% render "docs/code-and-image.md",
504
-
image:"fwe/layout/listview_builder.png",
505
-
caption: "This figure shows the ListView.builder constructor to display an unknown number of children."
506
-
alt: "A screenshot of several widgets laid out vertically. They have expanded to take up all available space on the cross axis."
504
+
image:"fwe/layout/listview_builder.png",
505
+
caption: "This figure shows the ListView.builder constructor to display an unknown number of children.",
506
+
alt: "A screenshot of several widgets laid out vertically. They have expanded to take up all available space on the cross axis.",
507
507
code:"
508
508
```dart
509
509
final List<ToDo> items = Repository.fetchTodos();
@@ -599,9 +599,9 @@ or greater than 600 pixels.
599
599
600
600
601
601
{% render "docs/code-and-image.md",
602
-
image:"fwe/layout/layout_builder.png",
603
-
caption: "This figure shows a narrow layout, which lays out its children vertically, and a wider layout, which lays out its children in a grid."
604
-
alt: "Two screenshots, in which one shows a narrow layout and the other shows a wide layout."
602
+
image:"fwe/layout/layout_builder.png",
603
+
caption: "This figure shows a narrow layout, which lays out its children vertically, and a wider layout, which lays out its children in a grid.",
604
+
alt: "Two screenshots, in which one shows a narrow layout and the other shows a wide layout.",
605
605
code:"
606
606
```dart
607
607
Widget build(BuildContext context) {
@@ -667,8 +667,8 @@ the following example changes the
667
667
background color of every other list item.
668
668
669
669
{% render "docs/code-and-image.md",
670
-
image:"fwe/layout/alternating_list_items.png"
671
-
caption:"This figure shows a `ListView`, in which its children have alternating background colors. The background colors were determined programmatically based on the index of the child within the `ListView`."
670
+
image:"fwe/layout/alternating_list_items.png",
671
+
caption:"This figure shows a `ListView`, in which its children have alternating background colors. The background colors were determined programmatically based on the index of the child within the `ListView`.",
0 commit comments