Skip to content

Commit 4908cb5

Browse files
authored
Fix embedded videos on implicit animation page (#12709)
Also don't use Liquid templating logic as we are trying to move away from it.
1 parent 535e3fc commit 4908cb5

File tree

2 files changed

+26
-14
lines changed

2 files changed

+26
-14
lines changed

site/lib/src/style_hash.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
// dart format off
33

44
/// The generated hash of the `main.css` file.
5-
const generatedStylesHash = 'Eg+fKqSIkBP5';
5+
const generatedStylesHash = 'v4/Tg9ef/l7C';

src/content/ui/animations/implicit-animations.md

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ or _implicitly animated widgets_, deriving their name from the
1414
The following set of resources provide many ways to learn
1515
about implicit animations in Flutter.
1616

17+
[animation library]: {{site.api}}/flutter/animation/animation-library.html
18+
1719
## Documentation
1820

1921
[Animations in Flutter codelab][]
@@ -30,6 +32,7 @@ about implicit animations in Flutter.
3032

3133
[Animations in Flutter codelab]: {{site.codelabs}}/advanced-flutter-animations
3234
[`AnimatedContainer` sample]: /cookbook/animation/animated-container
35+
[`AnimatedContainer`]: {{site.api}}/flutter/widgets/AnimatedContainer-class.html
3336
[`ImplicitlyAnimatedWidget`]: {{site.api}}/flutter/widgets/ImplicitlyAnimatedWidget-class.html
3437

3538
## Flutter in Focus videos
@@ -61,16 +64,25 @@ widget with a demo about how it works.
6164
The following Widget of the Week videos cover
6265
implicitly animated widgets:
6366

64-
{% assign animatedWidgets = 'AnimatedOpacity, AnimatedPadding, AnimatedPositioned, AnimatedSwitcher' | split: ", " %}
65-
{% assign animatedUrls = 'QZAvjqOqiLY, PY2m0fhGNz4, hC3s2YdtWt8, 2W7POjFb88g' | split: ", " %}
66-
67-
{% for widget in animatedWidgets %}
68-
{% assign videoUrl = animatedUrls[forloop.index0] %}
69-
{% assign videoDescription = 'Learn about the ' | append: widget | append: ' Flutter Widget' %}
70-
71-
<YouTubeEmbed id="{{ videoUrl }}" title="{{ videoDescription }}"></YouTubeEmbed>
72-
73-
{% endfor -%}
74-
75-
[`AnimatedContainer`]: {{site.api}}/flutter/widgets/AnimatedContainer-class.html
76-
[animation library]: {{site.api}}/flutter/animation/animation-library.html
67+
<div class="card-grid wide">
68+
<div class="card wrapped-card outlined-card">
69+
<div class="card-content">
70+
<YouTubeEmbed id="QZAvjqOqiLY" title="AnimatedOpacity - Flutter widget of the week"></YouTubeEmbed>
71+
</div>
72+
</div>
73+
<div class="card wrapped-card outlined-card">
74+
<div class="card-content">
75+
<YouTubeEmbed id="PY2m0fhGNz4" title="AnimatedPadding - Flutter widget of the week"></YouTubeEmbed>
76+
</div>
77+
</div>
78+
<div class="card wrapped-card outlined-card">
79+
<div class="card-content">
80+
<YouTubeEmbed id="hC3s2YdtWt8" title="AnimatedPositioned - Flutter widget of the week"></YouTubeEmbed>
81+
</div>
82+
</div>
83+
<div class="card wrapped-card outlined-card">
84+
<div class="card-content">
85+
<YouTubeEmbed id="2W7POjFb88g" title="AnimatedSwitcher - Flutter widget of the week"></YouTubeEmbed>
86+
</div>
87+
</div>
88+
</div>

0 commit comments

Comments
 (0)