Skip to content

Commit 934e690

Browse files
authored
Add widget of the week videos (#116451)
(and remove one video that was listed twice with the same widget)
1 parent f36874c commit 934e690

File tree

8 files changed

+14
-4
lines changed

8 files changed

+14
-4
lines changed

packages/flutter/lib/src/material/autocomplete.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import 'theme.dart';
1212

1313
/// {@macro flutter.widgets.RawAutocomplete.RawAutocomplete}
1414
///
15+
/// {@youtube 560 315 https://www.youtube.com/watch?v=-Nny8kzW380}
16+
///
1517
/// {@tool dartpad}
1618
/// This example shows how to create a very basic Autocomplete widget using the
1719
/// default UI.
@@ -26,8 +28,6 @@ import 'theme.dart';
2628
/// ** See code in examples/api/lib/material/autocomplete/autocomplete.1.dart **
2729
/// {@end-tool}
2830
///
29-
/// {@youtube 560 315 https://www.youtube.com/watch?v=-Nny8kzW380}
30-
///
3131
/// See also:
3232
///
3333
/// * [RawAutocomplete], which is what Autocomplete is built upon, and which

packages/flutter/lib/src/painting/gradient.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,8 @@ abstract class Gradient {
336336

337337
/// A 2D linear gradient.
338338
///
339+
/// {@youtube 560 315 https://www.youtube.com/watch?v=gYNTcgZVcWw}
340+
///
339341
/// This class is used by [BoxDecoration] to represent linear gradients. This
340342
/// abstracts out the arguments to the [ui.Gradient.linear] constructor from
341343
/// the `dart:ui` library.

packages/flutter/lib/src/painting/text_style.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ const double _kDefaultFontSize = 14.0;
3838

3939
/// An immutable style describing how to format and paint text.
4040
///
41+
/// {@youtube 560 315 https://www.youtube.com/watch?v=1z6YP7YmvwA}
42+
///
4143
/// ### Bold
4244
///
4345
/// {@tool snippet}

packages/flutter/lib/src/widgets/actions.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,8 @@ class ActionDispatcher with Diagnosticable {
585585
/// A widget that establishes an [ActionDispatcher] and a map of [Intent] to
586586
/// [Action] to be used by its descendants when invoking an [Action].
587587
///
588+
/// {@youtube 560 315 https://www.youtube.com/watch?v=XawP1i314WM}
589+
///
588590
/// Actions are typically invoked using [Actions.invoke] with the context
589591
/// containing the ambient [Actions] widget.
590592
///

packages/flutter/lib/src/widgets/async.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,8 @@ class StreamBuilder<T> extends StreamBuilderBase<T, AsyncSnapshot<T>> {
447447
/// Widget that builds itself based on the latest snapshot of interaction with
448448
/// a [Future].
449449
///
450+
/// {@youtube 560 315 https://www.youtube.com/watch?v=zEdw_1B7JHY}
451+
///
450452
/// The [future] must have been obtained earlier, e.g. during [State.initState],
451453
/// [State.didUpdateWidget], or [State.didChangeDependencies]. It must not be
452454
/// created during the [State.build] or [StatelessWidget.build] method call when

packages/flutter/lib/src/widgets/basic.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7465,8 +7465,6 @@ typedef StatefulWidgetBuilder = Widget Function(BuildContext context, StateSette
74657465
///
74667466
/// {@tool snippet}
74677467
///
7468-
/// {@youtube 560 315 https://www.youtube.com/watch?v=syvT63CosNE}
7469-
///
74707468
/// This example shows using an inline StatefulBuilder that rebuilds and that
74717469
/// also has state.
74727470
///

packages/flutter/lib/src/widgets/focus_scope.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import 'inherited_notifier.dart';
1212
/// A widget that manages a [FocusNode] to allow keyboard focus to be given
1313
/// to this widget and its descendants.
1414
///
15+
/// {@youtube 560 315 https://www.youtube.com/watch?v=JCDfh5bs1xc}
16+
///
1517
/// When the focus is gained or lost, [onFocusChange] is called.
1618
///
1719
/// For keyboard events, [onKey] and [onKeyEvent] are called if

packages/flutter/lib/src/widgets/shortcuts.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,8 @@ class ShortcutManager with Diagnosticable, ChangeNotifier {
872872
/// A widget that creates key bindings to specific actions for its
873873
/// descendants.
874874
///
875+
/// {@youtube 560 315 https://www.youtube.com/watch?v=6ZcQmdoz9N8}
876+
///
875877
/// This widget establishes a [ShortcutManager] to be used by its descendants
876878
/// when invoking an [Action] via a keyboard key combination that maps to an
877879
/// [Intent].

0 commit comments

Comments
 (0)