Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing a broken link and a broken anchor. #2824

Merged
merged 2 commits into from
Jul 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/docs/cookbook/forms/focus.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,8 @@ class _MyCustomFormState extends State<MyCustomForm> {
### 3. Give focus to the `TextField` when a button is tapped

Finally, focus the text field when the user taps a floating
action button. Use the
[`requestFocus()`]({{site.api}}/flutter/widgets/FocusScopeNode/requestFocus.html)
method to perform this task.
action button. Use the [`requestFocus()`][] method to perform
this task.

<!-- skip -->
```dart
Expand Down Expand Up @@ -218,3 +217,7 @@ class _MyCustomFormState extends State<MyCustomForm> {
```

![Text Field Focus Demo](/images/cookbook/focus.gif){:.site-mobile-screenshot}



[`requestFocus()`]: {{site.api}}/flutter/widgets/FocusNode/requestFocus.html
14 changes: 8 additions & 6 deletions src/docs/development/ui/layout/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ The second screenshot displays the visual layout, showing a row of
Most of the screenshots in this tutorial are displayed with
`debugPaintSizeEnabled` set to true so you can see the visual layout.
For more information, see
[Visual debugging](/docs/testing/debugging#visual-debugging), a section in
[Debugging Flutter apps](/docs/testing/debugging).
[Debugging layout issues visually][], a section in
[Using the Flutter inspector][].
{{site.alert.end}}

Here's a diagram of the widget tree for this UI:
Expand All @@ -54,10 +54,10 @@ Here's a diagram of the widget tree for this UI:
{:.text-center}

Most of this should look as you might expect, but you might be wondering
about the containers (shown in pink). [Container][] is a widget class that allows
you to customize its child widget. Use a `Container` when you want to
add padding, margins, borders, or background color, to name some of its
capabilities.
about the containers (shown in pink). [Container][] is a widget class
that allows you to customize its child widget. Use a `Container` when
you want to add padding, margins, borders, or background color,
to name some of its capabilities.

In this example, each [Text][] widget is placed in a `Container` to add margins.
The entire [Row][] is also placed in a `Container` to add padding around the
Expand Down Expand Up @@ -1189,3 +1189,5 @@ The following resources might help when writing layout code.
[tutorial]: /docs/development/ui/layout/tutorial
[widgets library]: {{api}}/widgets/widgets-library.html
[Widget catalog]: /docs/development/ui/widgets
[Debugging layout issues visually]: /docs/development/tools/devtools/inspector#debugging-layout-issues-visually
[Using the Flutter inspector]: /docs/development/tools/devtools/inspector