From bd9c900fced8a7fd512c85078d1a2a3c0c781deb Mon Sep 17 00:00:00 2001 From: Emily Fortuna Date: Thu, 20 Jun 2019 12:58:41 -0700 Subject: [PATCH] Added some Widgets of the Week Videos to documentation (#34758) * Added some Widgets of the Week to documentation: AspectRatio and AnimatedIcon. --- .../flutter/lib/src/material/animated_icons/animated_icons.dart | 2 ++ packages/flutter/lib/src/widgets/basic.dart | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/flutter/lib/src/material/animated_icons/animated_icons.dart b/packages/flutter/lib/src/material/animated_icons/animated_icons.dart index cd14e3b751..79bd2f96d9 100644 --- a/packages/flutter/lib/src/material/animated_icons/animated_icons.dart +++ b/packages/flutter/lib/src/material/animated_icons/animated_icons.dart @@ -16,6 +16,8 @@ part of material_animated_icons; /// /// The available icons are specified in [AnimatedIcons]. /// +/// {@youtube 560 315 https://www.youtube.com/watch?v=pJcbh8pbvJs} +/// /// {@tool sample} /// /// ```dart diff --git a/packages/flutter/lib/src/widgets/basic.dart b/packages/flutter/lib/src/widgets/basic.dart index 5a7ef803e0..12f910f0de 100644 --- a/packages/flutter/lib/src/widgets/basic.dart +++ b/packages/flutter/lib/src/widgets/basic.dart @@ -2604,6 +2604,8 @@ class _OffstageElement extends SingleChildRenderObjectElement { /// constraints. The height of the widget is determined by applying the /// given aspect ratio to the width, expressed as a ratio of width to height. /// +/// {@youtube 560 315 https://www.youtube.com/watch?v=XcnP3_mO_Ms} +/// /// For example, a 16:9 width:height aspect ratio would have a value of /// 16.0/9.0. If the maximum width is infinite, the initial width is determined /// by applying the aspect ratio to the maximum height.