Added some Widgets of the Week Videos to documentation (#34758)

* Added some Widgets of the Week to documentation: AspectRatio and AnimatedIcon.
This commit is contained in:
Emily Fortuna
2019-06-20 12:58:41 -07:00
committed by GitHub
parent 71b9d461c8
commit bd9c900fce
2 changed files with 4 additions and 0 deletions

View File

@@ -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

View File

@@ -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.