Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sync] 2024/06/01 #1458

Merged
merged 43 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
f9becd3
Bump examples/codelabs from `85f6a5e` to `c6d179f` (#10626)
dependabot[bot] May 20, 2024
ea22b6b
minor: change transformers args to list (#10622)
hadysata May 20, 2024
f5643e1
[site] fix link pointing to google_generative_ai package (#10623)
cem256 May 20, 2024
2926f41
Typo: "If hadn't" => "If you hadn't" (#10624)
Hodaifa98 May 20, 2024
b23b5e6
Bump examples/codelabs from `c6d179f` to `0054456` (#10635)
dependabot[bot] May 21, 2024
bb6a168
Fix typo: `Platform.isAndoid` -> `Platform.isAndroid` (#10630)
jaredleishman May 21, 2024
2560b8c
Bump github/codeql-action from 3.25.5 to 3.25.6 (#10636)
dependabot[bot] May 21, 2024
722fa4a
doc: mention default flavors (#10632)
holzgeist May 21, 2024
b25d2f1
Fix link umbrella blog post (#10631)
martin-bertele May 21, 2024
b4e783e
Update index.md - fix broken link (#10634)
n0npax May 21, 2024
6d7be0a
Update launch-screen.md (#10625)
wkhori May 21, 2024
4a19afc
Fix FWE link for networking (#10638)
ericwindmill May 21, 2024
e4e3235
Fix link to Firebase leaderboards codelab (#10640)
parlough May 21, 2024
df3395e
Switch platform adaptation image from object to img (#10639)
parlough May 21, 2024
10b38df
Revert "doc: mention default flavors" (#10641)
andrewkolos May 21, 2024
4e72d2a
document default flavor (#10642)
holzgeist May 22, 2024
ba062b4
Update npm deps and resolve security alert (#10644)
parlough May 22, 2024
522db67
Fix some typos and formatting issues in fwe docs (#10645)
parlough May 22, 2024
9ae4391
Replace terminal marker with CSS-based marker (#10637)
parlough May 22, 2024
ae8cea8
Revert "document default flavor" because the feature is not yet avail…
andrewkolos May 22, 2024
fe6576e
Clean up shimmer loading comments and docregion names (#10647)
parlough May 22, 2024
b1addba
Correct parameter name in migration guide (#10648)
QuncCccccc May 22, 2024
f29936e
Fix Xcode install (#10649)
atsansone May 23, 2024
371c2e8
Add /predicitive-back short link (#10652)
khanhnwin May 23, 2024
a572c5a
Add design doc for Cupertino modal bottom sheet routes (#10653)
MitchellGoodwin May 23, 2024
9e764a4
Add iOS and macOS content CODEOWNERS (#10654)
jmagman May 24, 2024
cecf886
Improve iOS add-to-app tutorial (#10657)
loic-sharma May 24, 2024
bf41d83
Update iOS and macOS content CODEOWNERS to include writers (#10658)
jmagman May 24, 2024
9b37ddd
Remove no longer used JS code (#10660)
parlough May 24, 2024
b7057ec
Include more accessible labels for widget catalog cards (#10659)
parlough May 24, 2024
d049999
Flutter Gradle Plugin Apply Doc - Enhance copy code (#10663)
3ettilina May 27, 2024
bfc53de
Prepare DartPad embed attribute specifying (#10661)
parlough May 27, 2024
98b558d
Fixes Broken image link in "Who is Dash" page (#10668)
droidbg May 29, 2024
32541a4
Add link to web perf article (#10670)
atsansone May 29, 2024
55cd4bf
Clean up build linux apps page (#10669)
atsansone May 30, 2024
82c2b34
Add "Flutter Engineering" to books page (#10673)
TahaTesser May 30, 2024
9fa492a
Add release notes for DevTools 2.36.0 (#10674)
kenzieschmoll May 30, 2024
aa3fde2
Minor formatting cleanup to recent DevTools release notes (#10675)
parlough May 30, 2024
c77bb17
Update node, pnpm, and npm dependencies (#10676)
parlough May 31, 2024
f19626b
Adding Google I/O 2024 videos to site (#10685)
sfshaza2 May 31, 2024
0ef180b
[redirect] Add design doc link for sharing flutter types (#10686)
kevmoo Jun 1, 2024
430a419
Sync: 2024/06/01
AmosHuKe Jun 1, 2024
c95b66a
Update: src/content/release/whats-new.md
AmosHuKe Jun 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ If you prefer, you can use a version manager such as [nvm][],
and run `nvm install` from the repository's root directory.

If you already have Node installed, verify it's available on your path
and already the latest stable version _(currently `20.10` or later)_:
and already the latest stable version _(currently `20.12` or later)_:

```console
node --version
Expand Down Expand Up @@ -226,6 +226,10 @@ following the instructions in [Get the prerequisites](#get-the-prerequisites).
```console
pnpm install
```

Rerun `pnpm install` whenever you incorporate the
latest changes to the `main` branch or if you
experience dependency or import errors when building the site.

5. From the root directory, run the `dash_site` tool to
validate your setup and learn about the available commands.
Expand Down
6 changes: 3 additions & 3 deletions dash_site
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

REQUIRED_DART_VERSION="3.3"
REQUIRED_NODE_VERSION="20.10"
REQUIRED_PNPM_VERSION="8.14"
REQUIRED_DART_VERSION="3.4"
REQUIRED_NODE_VERSION="20.12"
REQUIRED_PNPM_VERSION="9.0"

# Check that the 'dart' command is available on the user's path.
if ! command -v dart &> /dev/null; then
Expand Down
2 changes: 1 addition & 1 deletion examples/codelabs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class Shimmer extends StatefulWidget {
ShimmerState createState() => ShimmerState();
}

// #docregion ShimmerStateAnimation
// #docregion shimmer-state-animation
class ShimmerState extends State<Shimmer> with SingleTickerProviderStateMixin {
late AnimationController _shimmerController;

Expand All @@ -143,9 +143,9 @@ class ShimmerState extends State<Shimmer> with SingleTickerProviderStateMixin {
super.dispose();
}
// code-excerpt-closing-bracket
// #enddocregion ShimmerStateAnimation
// #enddocregion shimmer-state-animation

// #docregion LinearGradient
// #docregion linear-gradient
LinearGradient get gradient => LinearGradient(
colors: widget.linearGradient.colors,
stops: widget.linearGradient.stops,
Expand All @@ -154,7 +154,7 @@ class ShimmerState extends State<Shimmer> with SingleTickerProviderStateMixin {
transform:
_SlidingGradientTransform(slidePercent: _shimmerController.value),
);
// #enddocregion LinearGradient
// #enddocregion linear-gradient

bool get isSized =>
(context.findRenderObject() as RenderBox?)?.hasSize ?? false;
Expand All @@ -165,21 +165,21 @@ class ShimmerState extends State<Shimmer> with SingleTickerProviderStateMixin {
required RenderBox descendant,
Offset offset = Offset.zero,
}) {
final shimmerBox = context.findRenderObject() as RenderBox;
final shimmerBox = context.findRenderObject() as RenderBox?;
return descendant.localToGlobal(offset, ancestor: shimmerBox);
}

// #docregion shimmerChanges
// #docregion shimmer-changes
Listenable get shimmerChanges => _shimmerController;
// #enddocregion shimmerChanges
// #enddocregion shimmer-changes

@override
Widget build(BuildContext context) {
return widget.child ?? const SizedBox();
}
}

// #docregion SlidingGradientTransform
// #docregion sliding-gradient-transform
class _SlidingGradientTransform extends GradientTransform {
const _SlidingGradientTransform({
required this.slidePercent,
Expand All @@ -192,7 +192,7 @@ class _SlidingGradientTransform extends GradientTransform {
return Matrix4.translationValues(bounds.width * slidePercent, 0.0, 0.0);
}
}
// #enddocregion SlidingGradientTransform
// #enddocregion sliding-gradient-transform

class ShimmerLoading extends StatefulWidget {
const ShimmerLoading({
Expand All @@ -208,7 +208,7 @@ class ShimmerLoading extends StatefulWidget {
State<ShimmerLoading> createState() => _ShimmerLoadingState();
}

// #docregion ShimmerLoadingState
// #docregion shimmer-loading-state
class _ShimmerLoadingState extends State<ShimmerLoading> {
Listenable? _shimmerChanges;

Expand All @@ -233,12 +233,12 @@ class _ShimmerLoadingState extends State<ShimmerLoading> {
void _onShimmerChange() {
if (widget.isLoading) {
setState(() {
// update the shimmer painting.
// Update the shimmer painting.
});
}
}
// code-excerpt-closing-bracket
// #enddocregion ShimmerLoadingState
// #enddocregion shimmer-loading-state

@override
Widget build(BuildContext context) {
Expand Down
1 change: 1 addition & 0 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@
{ "source": "/go/mixin-modifier", "destination": "https://docs.google.com/document/d/1la2S1uJrNAawc1yja8hrSxFZJ0cFHnYopmaBYDLwMjg/edit?usp=sharing&resourcekey=0-br1LWMlYC63Q30VGiPtAHg", "type": 301 },
{ "source": "/go/mouse-tracker-no-longer-attaches-annotations", "destination": "https://docs.google.com/document/d/1YuOcepqZjNknAMz1si2m-jAiLT4MP28XEzBcKLHnNiA/edit", "type": 301 },
{ "source": "/go/move-mouse-tracker-to-rendering", "destination": "https://docs.google.com/document/d/1dYNOTZ4kdq6ndNHopjUlrGlGBw3W-3jMbnoNJouIYtE/edit", "type": 301 },
{ "source": "/go/move-flutter-agnostic-types", "destination": "https://docs.google.com/document/d/1qQokfeExIx3E7X_2ogFfZ4U5viBQflwVSKtlazPjgOY/edit?usp=sharing&resourcekey=0-XFum7OfSG2Nkvvq8w5QxdA", "type": 301 },
{ "source": "/go/multiple-applications", "destination": "https://docs.google.com/document/d/1alrr7qimNDazmQx5D80BSHh62V2OINO4UQ5N3HcPnmo/edit?resourcekey=0-wPs1Go9AiKR-yG0-xStuKw", "type": 301 },
{ "source": "/go/multiple-engines", "destination": "https://docs.google.com/document/d/1NwiZPWHd1te46eP2GWwIezDV9CdMQkODAMuF5kWdtLw", "type": 301 },
{ "source": "/go/multiple-flutters", "destination": "https://docs.google.com/document/d/1fdKRufqUzQvERcqNIUSq-GdabXc4k8VIsClzRElJ6KY", "type": 301 },
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"url": "https://github.com/flutter/website.git"
},
"engines": {
"node": ">=20.10.0",
"pnpm": ">=8.14.0"
"node": ">=20.12.0",
"pnpm": ">=9.1.0"
},
"packageManager": "pnpm@8.15.8",
"packageManager": "pnpm@9.1.4",
"scripts": {
"serve": "PRODUCTION=false eleventy --serve",
"build-site-for-staging": "PRODUCTION=false eleventy",
Expand All @@ -24,19 +24,19 @@
"devDependencies": {
"@11ty/eleventy": "3.0.0-alpha.10",
"diff2html": "^3.4.48",
"firebase-tools": "^13.8.0",
"firebase-tools": "^13.10.2",
"hast-util-from-html": "^2.0.1",
"hast-util-select": "^6.0.2",
"hast-util-to-text": "^4.0.2",
"html-minifier-terser": "^7.2.0",
"js-yaml": "^4.1.0",
"markdown-it": "^14.1.0",
"markdown-it-anchor": "^8.6.7",
"markdown-it-anchor": "^9.0.1",
"markdown-it-attrs": "^4.1.6",
"markdown-it-container": "^4.0.0",
"markdown-it-deflist": "^3.0.0",
"markdown-it-table": "^4.1.1",
"sass": "^1.76.0",
"shiki": "^1.4.0"
"sass": "^1.77.3",
"shiki": "^1.6.1"
}
}
Loading
Loading