Skip to content

Commit 230b57c

Browse files
Fix unclosed parentheses error on "Create a widget to make buttons" code excerpt (#12877)
_Description of what this PR is changing or adding, and why:_ 1. Stumbled on an unclosed parentheses error while doing the tutorial 2. Added the closing parenthesis 3. No more stumbling :D _Issues fixed by this PR (if any):_ - Presumed none _PRs or commits this PR depends on (if any):_ - Presumed none ## Presubmit checklist - [x] If you are unwilling, or unable, to sign the CLA, even for a _tiny_, one-word PR, please file an issue instead of a PR. - [x] If this PR is not meant to land until a future stable release, mark it as draft with an explanation. - [x] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style)—for example, it doesn't use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first-person pronouns). - [x] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer. --------- Co-authored-by: Parker Lougheed <parlough@gmail.com>
1 parent 2d3f35e commit 230b57c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

examples/layout/lakes/step3/lib/main.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,6 @@ class ButtonWithText extends StatelessWidget {
131131
// #docregion button-section
132132
);
133133
}
134-
135-
// #enddocregion button-with-text
136134
}
137135

138-
// #enddocregion button-section
136+
// #enddocregion button-with-text, button-section

src/content/ui/layout/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ class ButtonWithText extends StatelessWidget {
356356
],
357357
);
358358
}
359+
}
359360
```
360361

361362
### Position the buttons with a `Row` widget
@@ -411,7 +412,6 @@ class ButtonWithText extends StatelessWidget {
411412
// ···
412413
);
413414
}
414-
415415
}
416416
```
417417

0 commit comments

Comments
 (0)