Unverified Commit 934e6900 authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Add widget of the week videos (#116451)

(and remove one video that was listed twice with the same widget)
parent f36874cb
...@@ -12,6 +12,8 @@ import 'theme.dart'; ...@@ -12,6 +12,8 @@ import 'theme.dart';
/// {@macro flutter.widgets.RawAutocomplete.RawAutocomplete} /// {@macro flutter.widgets.RawAutocomplete.RawAutocomplete}
/// ///
/// {@youtube 560 315 https://www.youtube.com/watch?v=-Nny8kzW380}
///
/// {@tool dartpad} /// {@tool dartpad}
/// This example shows how to create a very basic Autocomplete widget using the /// This example shows how to create a very basic Autocomplete widget using the
/// default UI. /// default UI.
...@@ -26,8 +28,6 @@ import 'theme.dart'; ...@@ -26,8 +28,6 @@ import 'theme.dart';
/// ** See code in examples/api/lib/material/autocomplete/autocomplete.1.dart ** /// ** See code in examples/api/lib/material/autocomplete/autocomplete.1.dart **
/// {@end-tool} /// {@end-tool}
/// ///
/// {@youtube 560 315 https://www.youtube.com/watch?v=-Nny8kzW380}
///
/// See also: /// See also:
/// ///
/// * [RawAutocomplete], which is what Autocomplete is built upon, and which /// * [RawAutocomplete], which is what Autocomplete is built upon, and which
......
...@@ -336,6 +336,8 @@ abstract class Gradient { ...@@ -336,6 +336,8 @@ abstract class Gradient {
/// A 2D linear 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 /// This class is used by [BoxDecoration] to represent linear gradients. This
/// abstracts out the arguments to the [ui.Gradient.linear] constructor from /// abstracts out the arguments to the [ui.Gradient.linear] constructor from
/// the `dart:ui` library. /// the `dart:ui` library.
......
...@@ -38,6 +38,8 @@ const double _kDefaultFontSize = 14.0; ...@@ -38,6 +38,8 @@ const double _kDefaultFontSize = 14.0;
/// An immutable style describing how to format and paint text. /// An immutable style describing how to format and paint text.
/// ///
/// {@youtube 560 315 https://www.youtube.com/watch?v=1z6YP7YmvwA}
///
/// ### Bold /// ### Bold
/// ///
/// {@tool snippet} /// {@tool snippet}
......
...@@ -585,6 +585,8 @@ class ActionDispatcher with Diagnosticable { ...@@ -585,6 +585,8 @@ class ActionDispatcher with Diagnosticable {
/// A widget that establishes an [ActionDispatcher] and a map of [Intent] to /// A widget that establishes an [ActionDispatcher] and a map of [Intent] to
/// [Action] to be used by its descendants when invoking an [Action]. /// [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 /// Actions are typically invoked using [Actions.invoke] with the context
/// containing the ambient [Actions] widget. /// containing the ambient [Actions] widget.
/// ///
......
...@@ -447,6 +447,8 @@ class StreamBuilder<T> extends StreamBuilderBase<T, AsyncSnapshot<T>> { ...@@ -447,6 +447,8 @@ class StreamBuilder<T> extends StreamBuilderBase<T, AsyncSnapshot<T>> {
/// Widget that builds itself based on the latest snapshot of interaction with /// Widget that builds itself based on the latest snapshot of interaction with
/// a [Future]. /// 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], /// The [future] must have been obtained earlier, e.g. during [State.initState],
/// [State.didUpdateWidget], or [State.didChangeDependencies]. It must not be /// [State.didUpdateWidget], or [State.didChangeDependencies]. It must not be
/// created during the [State.build] or [StatelessWidget.build] method call when /// created during the [State.build] or [StatelessWidget.build] method call when
......
...@@ -7465,8 +7465,6 @@ typedef StatefulWidgetBuilder = Widget Function(BuildContext context, StateSette ...@@ -7465,8 +7465,6 @@ typedef StatefulWidgetBuilder = Widget Function(BuildContext context, StateSette
/// ///
/// {@tool snippet} /// {@tool snippet}
/// ///
/// {@youtube 560 315 https://www.youtube.com/watch?v=syvT63CosNE}
///
/// This example shows using an inline StatefulBuilder that rebuilds and that /// This example shows using an inline StatefulBuilder that rebuilds and that
/// also has state. /// also has state.
/// ///
......
...@@ -12,6 +12,8 @@ import 'inherited_notifier.dart'; ...@@ -12,6 +12,8 @@ import 'inherited_notifier.dart';
/// A widget that manages a [FocusNode] to allow keyboard focus to be given /// A widget that manages a [FocusNode] to allow keyboard focus to be given
/// to this widget and its descendants. /// 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. /// When the focus is gained or lost, [onFocusChange] is called.
/// ///
/// For keyboard events, [onKey] and [onKeyEvent] are called if /// For keyboard events, [onKey] and [onKeyEvent] are called if
......
...@@ -872,6 +872,8 @@ class ShortcutManager with Diagnosticable, ChangeNotifier { ...@@ -872,6 +872,8 @@ class ShortcutManager with Diagnosticable, ChangeNotifier {
/// A widget that creates key bindings to specific actions for its /// A widget that creates key bindings to specific actions for its
/// descendants. /// descendants.
/// ///
/// {@youtube 560 315 https://www.youtube.com/watch?v=6ZcQmdoz9N8}
///
/// This widget establishes a [ShortcutManager] to be used by its descendants /// This widget establishes a [ShortcutManager] to be used by its descendants
/// when invoking an [Action] via a keyboard key combination that maps to an /// when invoking an [Action] via a keyboard key combination that maps to an
/// [Intent]. /// [Intent].
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment