From 14e4565fa4c104fba03c7bb4a3a06a802aa3efc6 Mon Sep 17 00:00:00 2001 From: Kate Lovett Date: Wed, 10 Jul 2019 12:40:35 -0700 Subject: [PATCH] Doc fixes (#35892) * Fixed assets embedding * ++ * Completed snippet audit * Analyzer --- packages/flutter/lib/src/painting/text_style.dart | 4 ---- packages/flutter/lib/src/widgets/basic.dart | 9 +++++---- packages/flutter/lib/src/widgets/form.dart | 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/packages/flutter/lib/src/painting/text_style.dart b/packages/flutter/lib/src/painting/text_style.dart index 7f8a9969302..fb9fa670f26 100644 --- a/packages/flutter/lib/src/painting/text_style.dart +++ b/packages/flutter/lib/src/painting/text_style.dart @@ -130,14 +130,10 @@ const String _kColorBackgroundWarning = 'Cannot provide both a backgroundColor a /// ``` /// {@end-tool} /// -/// {@tool sample} -/// /// Examples of the resulting heights from different values of `TextStyle.height`: /// /// ![Text height comparison diagram](https://flutter.github.io/assets-for-api-docs/assets/painting/text_height_comparison_diagram.png) /// -/// {@end-tool} -/// /// ### Wavy red underline with black text /// /// {@tool sample} diff --git a/packages/flutter/lib/src/widgets/basic.dart b/packages/flutter/lib/src/widgets/basic.dart index 12f910f0def..3e6f2e52ed6 100644 --- a/packages/flutter/lib/src/widgets/basic.dart +++ b/packages/flutter/lib/src/widgets/basic.dart @@ -4713,13 +4713,14 @@ class Wrap extends MultiChildRenderObjectWidget { /// children. /// * The [catalog of layout widgets](https://flutter.dev/widgets/layout/). /// +/// +/// {@animation 450 100 https://flutter.github.io/assets-for-api-docs/assets/widgets/flow_menu.mp4} +/// /// {@tool snippet --template=freeform} /// /// This example uses the [Flow] widget to create a menu that opens and closes -/// as it is interacted with. The color of the button in the menu changes to -/// indicate which one has been selected. -/// -/// {@animation 450 100 https://flutter.github.io/assets-for-api-docs/assets/widgets/flow_menu.mp4} +/// as it is interacted with, shown above. The color of the button in the menu +/// changes to indicate which one has been selected. /// /// ```dart main /// import 'package:flutter/material.dart'; diff --git a/packages/flutter/lib/src/widgets/form.dart b/packages/flutter/lib/src/widgets/form.dart index 28cea99bcd9..d351a031c8d 100644 --- a/packages/flutter/lib/src/widgets/form.dart +++ b/packages/flutter/lib/src/widgets/form.dart @@ -16,7 +16,7 @@ import 'will_pop_scope.dart'; /// with a context whose ancestor is the [Form], or pass a [GlobalKey] to the /// [Form] constructor and call [GlobalKey.currentState]. /// -/// {@tool snippet --template=stateful_widget_material} +/// {@tool snippet --template=stateful_widget_scaffold} /// This example shows a [Form] with one [TextFormField] and a [RaisedButton]. A /// [GlobalKey] is used here to identify the [Form] and validate input. ///