Unverified Commit 5493fe46 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Moar Videos (#30452)

parent 516ffd0c
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
/// Flutter widgets implementing the current iOS design language. /// Flutter widgets implementing the current iOS design language.
/// ///
/// To use, import `package:flutter/cupertino.dart`. /// To use, import `package:flutter/cupertino.dart`.
///
/// {@youtube 560 315 https://www.youtube.com/watch?v=3PdUaidHc-E}
library cupertino; library cupertino;
export 'src/cupertino/action_sheet.dart'; export 'src/cupertino/action_sheet.dart';
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
/// ///
/// To use, import `package:flutter/material.dart`. /// To use, import `package:flutter/material.dart`.
/// ///
/// {@youtube 560 315 https://www.youtube.com/watch?v=DL0Ix1lnC4w}
///
/// See also: /// See also:
/// ///
/// * [flutter.io/widgets](https://flutter.io/widgets/) /// * [flutter.io/widgets](https://flutter.io/widgets/)
......
...@@ -11,6 +11,8 @@ import 'package:meta/meta.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 /// 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. /// 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. /// Keys must be unique amongst the [Element]s with the same parent.
/// ///
/// Subclasses of [Key] should either subclass [LocalKey] or [GlobalKey]. /// Subclasses of [Key] should either subclass [LocalKey] or [GlobalKey].
......
...@@ -39,6 +39,8 @@ typedef SemanticsBuilderCallback = List<CustomPainterSemantics> Function(Size si ...@@ -39,6 +39,8 @@ typedef SemanticsBuilderCallback = List<CustomPainterSemantics> Function(Size si
/// is provided, to check if the new instance actually represents different /// is provided, to check if the new instance actually represents different
/// information. /// information.
/// ///
/// {@youtube 560 315 https://www.youtube.com/watch?v=vvI_NUXK00s}
///
/// The most efficient way to trigger a repaint is to either: /// The most efficient way to trigger a repaint is to either:
/// ///
/// * Extend this class and supply a `repaint` argument to the constructor of /// * Extend this class and supply a `repaint` argument to the constructor of
......
...@@ -439,6 +439,8 @@ abstract class Widget extends DiagnosticableTree { ...@@ -439,6 +439,8 @@ abstract class Widget extends DiagnosticableTree {
/// description of the user interface is fully concrete (e.g., consists /// description of the user interface is fully concrete (e.g., consists
/// entirely of [RenderObjectWidget]s, which describe concrete [RenderObject]s). /// 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 /// Stateless widget are useful when the part of the user interface you are
/// describing does not depend on anything other than the configuration /// describing does not depend on anything other than the configuration
/// information in the object itself and the [BuildContext] in which the widget /// information in the object itself and the [BuildContext] in which the widget
...@@ -608,6 +610,8 @@ abstract class StatelessWidget extends Widget { ...@@ -608,6 +610,8 @@ abstract class StatelessWidget extends Widget {
/// [BuildContext] in which the widget is inflated, consider using /// [BuildContext] in which the widget is inflated, consider using
/// [StatelessWidget]. /// [StatelessWidget].
/// ///
/// {@youtube 560 315 https://www.youtube.com/watch?v=AqCMFXEmf3w}
///
/// [StatefulWidget] instances themselves are immutable and store their mutable /// [StatefulWidget] instances themselves are immutable and store their mutable
/// state either in separate [State] objects that are created by the /// state either in separate [State] objects that are created by the
/// [createState] method, or in objects to which that [State] subscribes, for /// [createState] method, or in objects to which that [State] subscribes, for
...@@ -1484,6 +1488,8 @@ abstract class ParentDataWidget<T extends RenderObjectWidget> extends ProxyWidge ...@@ -1484,6 +1488,8 @@ abstract class ParentDataWidget<T extends RenderObjectWidget> extends ProxyWidge
/// Inherited widgets, when referenced in this way, will cause the consumer to /// Inherited widgets, when referenced in this way, will cause the consumer to
/// rebuild when the inherited widget itself changes state. /// rebuild when the inherited widget itself changes state.
/// ///
/// {@youtube 560 315 https://www.youtube.com/watch?v=Zbm3hjPjQMk}
///
/// {@tool sample} /// {@tool sample}
/// ///
/// The following is a skeleton of an inherited widget called `FrogColor`: /// The following is a skeleton of an inherited widget called `FrogColor`:
......
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