diff --git a/packages/flutter/lib/src/material/autocomplete.dart b/packages/flutter/lib/src/material/autocomplete.dart index 174207d6b660..41ea74a730df 100644 --- a/packages/flutter/lib/src/material/autocomplete.dart +++ b/packages/flutter/lib/src/material/autocomplete.dart @@ -12,6 +12,8 @@ import 'theme.dart'; /// {@macro flutter.widgets.RawAutocomplete.RawAutocomplete} /// +/// {@youtube 560 315 https://www.youtube.com/watch?v=-Nny8kzW380} +/// /// {@tool dartpad} /// This example shows how to create a very basic Autocomplete widget using the /// default UI. @@ -26,8 +28,6 @@ import 'theme.dart'; /// ** See code in examples/api/lib/material/autocomplete/autocomplete.1.dart ** /// {@end-tool} /// -/// {@youtube 560 315 https://www.youtube.com/watch?v=-Nny8kzW380} -/// /// See also: /// /// * [RawAutocomplete], which is what Autocomplete is built upon, and which diff --git a/packages/flutter/lib/src/painting/gradient.dart b/packages/flutter/lib/src/painting/gradient.dart index 103b2b0fbc73..572478c771bb 100644 --- a/packages/flutter/lib/src/painting/gradient.dart +++ b/packages/flutter/lib/src/painting/gradient.dart @@ -336,6 +336,8 @@ abstract class Gradient { /// A 2D linear gradient. /// +/// {@youtube 560 315 https://www.youtube.com/watch?v=gYNTcgZVcWw} +/// /// This class is used by [BoxDecoration] to represent linear gradients. This /// abstracts out the arguments to the [ui.Gradient.linear] constructor from /// the `dart:ui` library. diff --git a/packages/flutter/lib/src/painting/text_style.dart b/packages/flutter/lib/src/painting/text_style.dart index 14b220c87a2b..2afec743703b 100644 --- a/packages/flutter/lib/src/painting/text_style.dart +++ b/packages/flutter/lib/src/painting/text_style.dart @@ -38,6 +38,8 @@ const double _kDefaultFontSize = 14.0; /// An immutable style describing how to format and paint text. /// +/// {@youtube 560 315 https://www.youtube.com/watch?v=1z6YP7YmvwA} +/// /// ### Bold /// /// {@tool snippet} diff --git a/packages/flutter/lib/src/widgets/actions.dart b/packages/flutter/lib/src/widgets/actions.dart index 43291d5e0369..262ecf212d47 100644 --- a/packages/flutter/lib/src/widgets/actions.dart +++ b/packages/flutter/lib/src/widgets/actions.dart @@ -585,6 +585,8 @@ class ActionDispatcher with Diagnosticable { /// A widget that establishes an [ActionDispatcher] and a map of [Intent] to /// [Action] to be used by its descendants when invoking an [Action]. /// +/// {@youtube 560 315 https://www.youtube.com/watch?v=XawP1i314WM} +/// /// Actions are typically invoked using [Actions.invoke] with the context /// containing the ambient [Actions] widget. /// diff --git a/packages/flutter/lib/src/widgets/async.dart b/packages/flutter/lib/src/widgets/async.dart index 66a1f59098d9..5a4215800758 100644 --- a/packages/flutter/lib/src/widgets/async.dart +++ b/packages/flutter/lib/src/widgets/async.dart @@ -447,6 +447,8 @@ class StreamBuilder extends StreamBuilderBase> { /// Widget that builds itself based on the latest snapshot of interaction with /// a [Future]. /// +/// {@youtube 560 315 https://www.youtube.com/watch?v=zEdw_1B7JHY} +/// /// The [future] must have been obtained earlier, e.g. during [State.initState], /// [State.didUpdateWidget], or [State.didChangeDependencies]. It must not be /// created during the [State.build] or [StatelessWidget.build] method call when diff --git a/packages/flutter/lib/src/widgets/basic.dart b/packages/flutter/lib/src/widgets/basic.dart index 09282d4423ee..09ff9b7a56db 100644 --- a/packages/flutter/lib/src/widgets/basic.dart +++ b/packages/flutter/lib/src/widgets/basic.dart @@ -7465,8 +7465,6 @@ typedef StatefulWidgetBuilder = Widget Function(BuildContext context, StateSette /// /// {@tool snippet} /// -/// {@youtube 560 315 https://www.youtube.com/watch?v=syvT63CosNE} -/// /// This example shows using an inline StatefulBuilder that rebuilds and that /// also has state. /// diff --git a/packages/flutter/lib/src/widgets/focus_scope.dart b/packages/flutter/lib/src/widgets/focus_scope.dart index 58507f23d107..f967aa208c96 100644 --- a/packages/flutter/lib/src/widgets/focus_scope.dart +++ b/packages/flutter/lib/src/widgets/focus_scope.dart @@ -12,6 +12,8 @@ import 'inherited_notifier.dart'; /// A widget that manages a [FocusNode] to allow keyboard focus to be given /// to this widget and its descendants. /// +/// {@youtube 560 315 https://www.youtube.com/watch?v=JCDfh5bs1xc} +/// /// When the focus is gained or lost, [onFocusChange] is called. /// /// For keyboard events, [onKey] and [onKeyEvent] are called if diff --git a/packages/flutter/lib/src/widgets/shortcuts.dart b/packages/flutter/lib/src/widgets/shortcuts.dart index a8e923f03040..5b759a3e1ff1 100644 --- a/packages/flutter/lib/src/widgets/shortcuts.dart +++ b/packages/flutter/lib/src/widgets/shortcuts.dart @@ -872,6 +872,8 @@ class ShortcutManager with Diagnosticable, ChangeNotifier { /// A widget that creates key bindings to specific actions for its /// descendants. /// +/// {@youtube 560 315 https://www.youtube.com/watch?v=6ZcQmdoz9N8} +/// /// This widget establishes a [ShortcutManager] to be used by its descendants /// when invoking an [Action] via a keyboard key combination that maps to an /// [Intent].