Skip to content

Commit

Permalink
Fixing a broken link and a broken anchor. (#2824)
Browse files Browse the repository at this point in the history
* Fixing a broken link and a broken anchor.

* Fixing a typo.
  • Loading branch information
sfshaza2 authored Jul 11, 2019
1 parent 40c5ebb commit 3aa8156
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
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

0 comments on commit 3aa8156

Please sign in to comment.