From 5493fe469e146726d25955326c0bad08af1b1458 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Wed, 3 Apr 2019 12:49:13 -0700 Subject: [PATCH] Moar Videos (#30452) --- packages/flutter/lib/cupertino.dart | 2 ++ packages/flutter/lib/material.dart | 2 ++ packages/flutter/lib/src/foundation/key.dart | 2 ++ packages/flutter/lib/src/rendering/custom_paint.dart | 2 ++ packages/flutter/lib/src/widgets/framework.dart | 6 ++++++ 5 files changed, 14 insertions(+) diff --git a/packages/flutter/lib/cupertino.dart b/packages/flutter/lib/cupertino.dart index 0d01e2701b..b16282f7af 100644 --- a/packages/flutter/lib/cupertino.dart +++ b/packages/flutter/lib/cupertino.dart @@ -5,6 +5,8 @@ /// Flutter widgets implementing the current iOS design language. /// /// To use, import `package:flutter/cupertino.dart`. +/// +/// {@youtube 560 315 https://www.youtube.com/watch?v=3PdUaidHc-E} library cupertino; export 'src/cupertino/action_sheet.dart'; diff --git a/packages/flutter/lib/material.dart b/packages/flutter/lib/material.dart index 86c250e525..e4fea7819c 100644 --- a/packages/flutter/lib/material.dart +++ b/packages/flutter/lib/material.dart @@ -6,6 +6,8 @@ /// /// To use, import `package:flutter/material.dart`. /// +/// {@youtube 560 315 https://www.youtube.com/watch?v=DL0Ix1lnC4w} +/// /// See also: /// /// * [flutter.io/widgets](https://flutter.io/widgets/) diff --git a/packages/flutter/lib/src/foundation/key.dart b/packages/flutter/lib/src/foundation/key.dart index 27fbb32fb7..cd4e7b1838 100644 --- a/packages/flutter/lib/src/foundation/key.dart +++ b/packages/flutter/lib/src/foundation/key.dart @@ -11,6 +11,8 @@ import 'package:meta/meta.dart'; /// A new widget will only be used to update an existing element if its key is /// the same as the key of the current widget associated with the element. /// +/// {@youtube 560 315 https://www.youtube.com/watch?v=kn0EOS-ZiIc} +/// /// Keys must be unique amongst the [Element]s with the same parent. /// /// Subclasses of [Key] should either subclass [LocalKey] or [GlobalKey]. diff --git a/packages/flutter/lib/src/rendering/custom_paint.dart b/packages/flutter/lib/src/rendering/custom_paint.dart index a8c24f8812..f8a9e461b2 100644 --- a/packages/flutter/lib/src/rendering/custom_paint.dart +++ b/packages/flutter/lib/src/rendering/custom_paint.dart @@ -39,6 +39,8 @@ typedef SemanticsBuilderCallback = List Function(Size si /// is provided, to check if the new instance actually represents different /// information. /// +/// {@youtube 560 315 https://www.youtube.com/watch?v=vvI_NUXK00s} +/// /// The most efficient way to trigger a repaint is to either: /// /// * Extend this class and supply a `repaint` argument to the constructor of diff --git a/packages/flutter/lib/src/widgets/framework.dart b/packages/flutter/lib/src/widgets/framework.dart index 8676911341..2e03d64559 100644 --- a/packages/flutter/lib/src/widgets/framework.dart +++ b/packages/flutter/lib/src/widgets/framework.dart @@ -439,6 +439,8 @@ abstract class Widget extends DiagnosticableTree { /// description of the user interface is fully concrete (e.g., consists /// entirely of [RenderObjectWidget]s, which describe concrete [RenderObject]s). /// +/// {@youtube 560 315 https://www.youtube.com/watch?v=wE7khGHVkYY} +/// /// Stateless widget are useful when the part of the user interface you are /// describing does not depend on anything other than the configuration /// information in the object itself and the [BuildContext] in which the widget @@ -608,6 +610,8 @@ abstract class StatelessWidget extends Widget { /// [BuildContext] in which the widget is inflated, consider using /// [StatelessWidget]. /// +/// {@youtube 560 315 https://www.youtube.com/watch?v=AqCMFXEmf3w} +/// /// [StatefulWidget] instances themselves are immutable and store their mutable /// state either in separate [State] objects that are created by the /// [createState] method, or in objects to which that [State] subscribes, for @@ -1484,6 +1488,8 @@ abstract class ParentDataWidget extends ProxyWidge /// Inherited widgets, when referenced in this way, will cause the consumer to /// rebuild when the inherited widget itself changes state. /// +/// {@youtube 560 315 https://www.youtube.com/watch?v=Zbm3hjPjQMk} +/// /// {@tool sample} /// /// The following is a skeleton of an inherited widget called `FrogColor`: