Skip to content

Commit bd9c900

Browse files
authored
Added some Widgets of the Week Videos to documentation (flutter#34758)
* Added some Widgets of the Week to documentation: AspectRatio and AnimatedIcon.
1 parent 71b9d46 commit bd9c900

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ part of material_animated_icons;
1616
///
1717
/// The available icons are specified in [AnimatedIcons].
1818
///
19+
/// {@youtube 560 315 https://www.youtube.com/watch?v=pJcbh8pbvJs}
20+
///
1921
/// {@tool sample}
2022
///
2123
/// ```dart

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

+2
Original file line numberDiff line numberDiff line change
@@ -2604,6 +2604,8 @@ class _OffstageElement extends SingleChildRenderObjectElement {
26042604
/// constraints. The height of the widget is determined by applying the
26052605
/// given aspect ratio to the width, expressed as a ratio of width to height.
26062606
///
2607+
/// {@youtube 560 315 https://www.youtube.com/watch?v=XcnP3_mO_Ms}
2608+
///
26072609
/// For example, a 16:9 width:height aspect ratio would have a value of
26082610
/// 16.0/9.0. If the maximum width is infinite, the initial width is determined
26092611
/// by applying the aspect ratio to the maximum height.

0 commit comments

Comments
 (0)