Skip to content

Commit a67454d

Browse files
khanhnwinsfshaza2
andauthored
removing older videos from home page (#12241)
_Description of what this PR is changing or adding, and why:_ We had embedded a few older videos on the index page, this PR removes them. We should probably limit to 2-3 videos on the index page. _Issues fixed by this PR (if any):_ _PRs or commits this PR depends on (if any):_ ## Presubmit checklist - [ ] If you are unwilling, or unable, to sign the CLA, even for a _tiny_, one-word PR, please file an issue instead of a PR. - [ ] If this PR is not meant to land until a future stable release, mark it as draft with an explanation. - [ ] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style)—for example, it doesn't use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first-person pronouns). - [ ] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer. --------- Co-authored-by: Shams Zakhour (ignore Sfshaza) <[email protected]>
1 parent 09f094c commit a67454d

File tree

7 files changed

+54
-27
lines changed

7 files changed

+54
-27
lines changed

src/content/data-and-backend/serialization/json.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ overall process, and "encoding" and "decoding" when specifically
2727
referring to those processes.
2828
:::
2929

30+
{% ytEmbed 'ngsxzZt5DoY', 'dart:convert (Technique of the Week)' %}
31+
3032
## Which JSON serialization method is right for me?
3133

3234
This article covers two general strategies for working with JSON:

src/content/get-started/learn-flutter.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ in order:
2626
through some of the most important pieces of
2727
building Flutter applications.
2828

29+
{% ytEmbed 'W4JWeQolJsU', 'Build and ship amazing multiplatform iOS and Android apps with one codebase' %}
30+
2931
## Apply your existing knowledge
3032

3133
* [Flutter for Android developers][]

src/content/index.md

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -97,34 +97,10 @@ and [How Flutter makes the most of your platforms][].
9797
[How to build agentic apps with Flutter and Firebase AI Logic]: {{site.yt.watch}}?v=xo271p-Fl_4
9898
[How Flutter makes the most of your platforms]: {{site.yt.watch}}?v=flwULzNYRac
9999

100-
## Want to skill up?
100+
To learn about all of the Flutter video series, see our [videos][] page.
101101

102-
Dive deeper into how Flutter works under the hood!
103-
Learn [why you write standalone widgets instead of
104-
using helper methods][standalone-widgets] or
105-
[what is "BuildContext" and how is it used][buildcontext]?
102+
We release new videos almost every week!
106103

107-
<div class="card-grid">
108-
<div class="card wrapped-card outlined-card">
109-
<div class="card-content">
110-
{% ytEmbed 'IOyq-eTRhvo', 'Widgets vs helper methods | Decoding Flutter', true %}
111-
</div>
112-
</div>
113-
<div class="card wrapped-card outlined-card">
114-
<div class="card-content">
115-
{% ytEmbed 'rIaaH87z1-g', 'BuildContext?! | Decoding Flutter', true %}
116-
</div>
117-
</div>
118-
</div>
119-
120-
[standalone-widgets]: {{site.yt.watch}}?v=IOyq-eTRhvo
121-
[buildcontext]: {{site.yt.watch}}?v=rIaaH87z1-g
122-
123-
To learn about all of the Flutter video series,
124-
see our [videos][] page.
125-
126-
We release new videos almost every week on the Flutter YouTube channel:
127-
128-
<a class="filled-button" target="_blank" href="https://www.youtube.com/@flutterdev">Explore more Flutter videos</a>
104+
<a class="filled-button" target="_blank" href="https://www.youtube.com/@flutterdev">Check out the Flutter YouTube channel</a>
129105

130106
[videos]: /resources/videos

src/content/perf/best-practices.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,18 @@ For more information, check out:
106106

107107
---
108108

109+
### Use StringBuffer for efficient string building
110+
111+
When you need to build a string from multiple parts, especially inside a loop,
112+
using the `+` operator can be inefficient because it creates a new `String`
113+
object on each concatenation. A better approach is to use `StringBuffer`,
114+
which collects all the strings and concatenates them only once, when you call
115+
`toString()`.
116+
117+
{% ytEmbed 'xSsFtDY-nOw', 'StringBuffer (Technique of the Week)' %}
118+
119+
---
120+
109121
### Use saveLayer() thoughtfully
110122

111123
Some Flutter code uses `saveLayer()`, an expensive operation,

src/content/release/whats-new.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ join the [flutter-announce][] Google group.
1818
For Dart, you can join the [Dart Announce][] Google group,
1919
and review the [Dart changelog][].
2020

21+
{% ytEmbed 'v6Rzo5khNE8', 'What\'s new in Flutter' %}
22+
2123
[Dart Announce]: {{site.groups}}/a/dartlang.org/g/announce
2224
[Dart changelog]: {{site.github}}/dart-lang/sdk/blob/main/CHANGELOG.md
2325
[flutter-announce]: {{site.groups}}/forum/#!forum/flutter-announce

src/content/ui/design/cupertino/index.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,37 @@ glimpse of the Cupertino package:
1515

1616
{% ytEmbed '3PdUaidHc-E', 'Flutter\'s Cupertino Package' %}
1717

18+
To see some Cupertino widgets in action, the following videos from the
19+
Widget of the Week series cover a few of them.
20+
21+
<div class="card-grid">
22+
<div class="card wrapped-card outlined-card">
23+
<div class="card-content">
24+
{% ytEmbed 'D0xwcz2IqAY', 'CupertinoRadio (Widget of the Week)' %}
25+
</div>
26+
</div>
27+
<div class="card wrapped-card outlined-card">
28+
<div class="card-content">
29+
{% ytEmbed '5H-WvH5O29I', 'CupertinoSheetRoute (Widget of the Week)' %}
30+
</div>
31+
</div>
32+
<div class="card wrapped-card outlined-card">
33+
<div class="card-content">
34+
{% ytEmbed 'esnBf6V4C34', 'CupertinoSlidingSegmentedControl (Widget of the Week)' %}
35+
</div>
36+
</div>
37+
<div class="card wrapped-card outlined-card">
38+
<div class="card-content">
39+
{% ytEmbed 'ua54JU7k1Us', 'CupertinoCheckbox (Widget of the Week)' %}
40+
</div>
41+
</div>
42+
<div class="card wrapped-card outlined-card">
43+
<div class="card-content">
44+
{% ytEmbed '24tg_N4sdMQ', 'CupertinoSwitch (Widget of the Week)' %}
45+
</div>
46+
</div>
47+
</div>
48+
1849
## More information {:.no_toc}
1950

2051
To learn more about using the Cupertino

src/content/ui/widgets/cupertino.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ description: >
66
Apple's Human Interface Guidelines for iOS and macOS.
77
---
88

9+
{{< youtube D0xwcz2IqAY >}}
10+
911
{% render docs/catalog-page.md, categoryName:"Cupertino", catalog:catalog %}

0 commit comments

Comments
 (0)