Skip to content

Commit b0b0b8c

Browse files
authored
Add recent WotW videos to docs (#7406)
* add Widget of the Week videos to relevant docs pages * adding more WoTW videos to our doc tutorials * fix file formatting
1 parent 09f0061 commit b0b0b8c

File tree

14 files changed

+84
-1
lines changed

14 files changed

+84
-1
lines changed

src/_sass/components/_content.scss

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,27 @@
8080
border: 1px solid #ccc;
8181
}
8282
}
83+
84+
.video-card {
85+
flex: 0 0 calc((100% / 2) - 1rem);
86+
position: relative;
87+
display: flex;
88+
flex-direction: column;
89+
min-width: 0;
90+
word-wrap: break-word;
91+
background-color: #fff;
92+
background-clip: border-box;
93+
border: 1px solid rgba(0, 0, 0, 0.125);
94+
border-radius: 4px;
95+
margin-bottom: 1rem;
96+
margin-left: 0.5rem;
97+
margin-right: 0.5rem;
98+
}
99+
100+
.full-width {
101+
width: 100%;
102+
}
103+
104+
iframe.full-width {
105+
aspect-ratio: 16 / 9;
106+
}

src/cookbook/design/fonts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ or perhaps you downloaded a font from [Google Fonts][].
1919
{{site.alert.note}}
2020
Check out the [google_fonts][] package for direct access
2121
to over 1,000 open-sourced font families.
22+
23+
<iframe class="full-width" src="{{site.youtube-site}}/embed/8Vzv2CdbEY0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
2224
{{site.alert.end}}
2325

2426
{{site.alert.note}}

src/cookbook/design/snackbars.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ const snackBar = SnackBar(
6767
ScaffoldMessenger.of(context).showSnackBar(snackBar);
6868
```
6969

70+
<iframe class="full-width" src="{{site.youtube-site}}/embed/lytQi-slT5Y" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
71+
7072
## 3. Provide an optional action
7173

7274
You might want to provide an action to the user when

src/cookbook/design/themes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ wrap a section of the app in a `Theme` widget.
7070
There are two ways to approach this: creating a unique `ThemeData`,
7171
or extending the parent theme.
7272

73+
<iframe class="full-width" src="{{site.youtube-site}}/embed/oTvQDJOBXmM" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
74+
7375
### Creating unique `ThemeData`
7476

7577
If you don't want to inherit any application colors or font styles,

src/cookbook/effects/parallax-scrolling.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ before the widget is painted. In other words,
217217
you can intercept the painting phase and take control
218218
to reposition your child widgets however you want.
219219

220+
<iframe class="full-width" src="{{site.youtube-site}}/embed/NG6pvXpnIso" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
221+
220222
{{site.alert.note}}
221223
In cases where you need control over what a child paints,
222224
rather than where a child is painted,

src/cookbook/gestures/handling-taps.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ you want users to interact with your app.
1919
Use the [`GestureDetector`][] widget to respond
2020
to fundamental actions, such as tapping and dragging.
2121

22+
<iframe class="full-width" src="{{site.youtube-site}}/embed/WhVXkCFPmK4" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
23+
2224
This recipe shows how to make a custom button that shows
2325
a snackbar when tapped with the following steps:
2426

src/cookbook/images/cached-images.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ In some cases, it's handy to cache images as they're downloaded from the
1515
web, so they can be used offline. For this purpose,
1616
use the [`cached_network_image`][] package.
1717

18+
<iframe class="full-width" src="{{site.youtube-site}}/embed/fnHr_rsQwDA" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
19+
1820
In addition to caching, the `cached_network_image`
1921
package also supports placeholders and fading images
2022
in as they're loaded.

src/cookbook/persistence/key-value.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ This recipe uses the following steps:
2929
3. Read data.
3030
4. Remove data.
3131

32+
<iframe class="full-width" src="{{site.youtube-site}}/embed/sa_U0jffQII" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
33+
3234
## 1. Add the dependency
3335

3436
Before starting, add the [`shared_preferences`][]

src/cookbook/persistence/reading-writing-files.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ This recipe uses the following steps:
2525
3. Write data to the file.
2626
4. Read data from the file.
2727

28+
<iframe class="full-width" src="{{site.youtube-site}}/embed/Ci4t-NkOY3I" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
29+
2830
## 1. Find the correct local path
2931

3032
This example displays a counter. When the counter changes,

src/development/data-and-backend/state-mgmt/options.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ doesn't need a `BuildContext`.
181181
case you already use `flutter_hooks`.
182182
* [Flutter state management for minimalists][], by Suragch
183183

184+
<iframe class="full-width" src="{{site.youtube-site}}/embed/f9XQD5mf6FY" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
184185

185186
[Flutter state management for minimalists]: {{site.medium}}/flutter-community/flutter-state-management-for-minimalists-4c71a2f2f0c1?sk=6f9cedfb550ca9cc7f88317e2e7055a0
186187
[GetIt package]: {{site.pub-pkg}}/get_it

0 commit comments

Comments
 (0)