Skip to content

Commit e8e3cde

Browse files
authored
[sync] 2024/09/02 (#1489)
2 parents 7aefa2f + 9f61b03 commit e8e3cde

File tree

81 files changed

+1929
-1672
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+1929
-1672
lines changed

examples/animation/animate1/lib/main.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ class _LogoAppState extends State<LogoApp> with SingleTickerProviderStateMixin {
1818
super.initState();
1919
controller =
2020
AnimationController(duration: const Duration(seconds: 2), vsync: this);
21-
// #docregion addListener
21+
// #docregion add-listener
2222
animation = Tween<double>(begin: 0, end: 300).animate(controller)
2323
..addListener(() {
24-
// #enddocregion addListener
24+
// #enddocregion add-listener
2525
setState(() {
2626
// The state that has changed here is the animation object's value.
2727
});
28-
// #docregion addListener
28+
// #docregion add-listener
2929
});
30-
// #enddocregion addListener
30+
// #enddocregion add-listener
3131
controller.forward();
3232
}
3333

examples/animation/animate4/lib/main.dart

+5-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ class LogoWidget extends StatelessWidget {
1919

2020
// #docregion grow-transition
2121
class GrowTransition extends StatelessWidget {
22-
const GrowTransition(
23-
{required this.child, required this.animation, super.key});
22+
const GrowTransition({
23+
required this.child,
24+
required this.animation,
25+
super.key,
26+
});
2427

2528
final Widget child;
2629
final Animation<double> animation;

examples/animation/implicit/container5/lib/main.dart

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import 'dart:math';
66

77
import 'package:flutter/material.dart';
88

9-
const _duration = Duration(milliseconds: 400);
10-
119
double randomBorderRadius() {
1210
return Random().nextDouble() * 64;
1311
}
@@ -63,7 +61,7 @@ class _AnimatedContainerDemoState extends State<AnimatedContainerDemo> {
6361
color: color,
6462
borderRadius: BorderRadius.circular(borderRadius),
6563
),
66-
duration: _duration,
64+
duration: const Duration(milliseconds: 400),
6765
),
6866
),
6967
ElevatedButton(

examples/animation/implicit/container6/lib/main.dart

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import 'dart:math';
66

77
import 'package:flutter/material.dart';
88

9-
const _duration = Duration(milliseconds: 400);
10-
119
double randomBorderRadius() {
1210
return Random().nextDouble() * 64;
1311
}
@@ -63,7 +61,7 @@ class _AnimatedContainerDemoState extends State<AnimatedContainerDemo> {
6361
color: color,
6462
borderRadius: BorderRadius.circular(borderRadius),
6563
),
66-
duration: _duration,
64+
duration: const Duration(milliseconds: 400),
6765
curve: Curves.easeInOutBack,
6866
),
6967
),

examples/codelabs

Submodule codelabs updated 1080 files

examples/layout/lakes/step3/lib/main.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class ButtonSection extends StatelessWidget {
9494
@override
9595
Widget build(BuildContext context) {
9696
final Color color = Theme.of(context).primaryColor;
97-
// #enddocregion button-start
97+
// #enddocregion button-start
9898
return SizedBox(
9999
child: Row(
100100
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
@@ -117,7 +117,7 @@ class ButtonSection extends StatelessWidget {
117117
],
118118
),
119119
);
120-
// #docregion button-start
120+
// #docregion button-start
121121
}
122122
// #docregion button-with-text
123123
}

firebase.json

+2
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,7 @@
573573
{ "source": "/go/static-tooling-in-devtools", "destination": "https://docs.google.com/document/d/1i6ISzzSKKDiiVftTnkCCvdgXEjK2eqYlPjCOKTjnvx8/edit?resourcekey=0-uyAiZEjFplyibsAkDAqKJw#", "type": 301 },
574574
{ "source": "/go/strategy-2022", "destination": "https://docs.google.com/document/d/e/2PACX-1vTI9X2XHN_IY8wDO4epQSD1CkRT8WDxf2CEExp5Ef4Id206UOMopkYqU73FvAnnYG6NAecNSDo9TaEO/pub", "type": 301 },
575575
{ "source": "/go/strategy-2023", "destination": "https://docs.google.com/document/d/e/2PACX-1vRknZ4Jkc-pWSMsDDyKwMrry7k2BSL_I94JCCQrg8FiHuy4fcypkgIVFbQVKPmzDQHfd20uZf2rFiXP/pub", "type": 301 },
576+
{ "source": "/go/string-annotation", "destination": "https://docs.google.com/document/d/18NRf-ziYvPCLr2xFoUqfRtanfZysrUvLAUz-BM_D2Ac", "type": 301 },
576577
{ "source": "/go/studio-rasterization-context-for-multi-view", "destination": "https://docs.google.com/document/d/1Eqb8xeoRKpLq2OVkJX_ux3azVLGJgJcaY5uSWzqdc_4/edit", "type": 301 },
577578
{ "source": "/go/subpixel-antialiasing", "destination": "https://docs.google.com/document/d/1yEycgo5ivZ_lu2MAnMBLreZvROFdamy9-9q-QvMvL9U/edit?usp=sharing", "type": 301 },
578579
{ "source": "/go/supporting-dart-callbacks", "destination": "https://docs.google.com/document/d/1k7OimxbxXzdv3U7-TfB88yG5hIScN3TH6Jcvdcl4izM/edit", "type": 301 },
@@ -711,6 +712,7 @@
711712
{ "source": "/to/review-gradle-config", "destination": "/deployment/android#review-the-gradle-build-configuration", "type": 301 },
712713
{ "source": "/to/save-layer-perf", "destination": "/perf/best-practices#use-savelayer-thoughtfully", "type": 301 },
713714
{ "source": "/to/state-management-sample", "destination": "/data-and-backend/state-mgmt/simple", "type": 301 },
715+
{ "source": "/to/switch-flutter-version", "destination": "/release/upgrade/#switching-to-a-specific-flutter-version", "type": 301 },
714716
{ "source": "/to/track-widget-creation", "destination": "/tools/devtools/inspector#track-widget-creation", "type": 301 },
715717
{ "source": "/to/troubleshoot-devices", "destination": "/get-started/install", "type": 301 },
716718
{ "source": "/to/unbounded-constraints", "destination": "/ui/layout/constraints#unbounded", "type": 301 },

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"node": ">=20.12.0",
1313
"pnpm": ">=9.1.0"
1414
},
15-
"packageManager": "pnpm@9.6.0",
15+
"packageManager": "pnpm@9.9.0",
1616
"scripts": {
1717
"serve": "PRODUCTION=false eleventy --serve",
1818
"build-site-for-staging": "PRODUCTION=false eleventy",
@@ -23,20 +23,20 @@
2323
},
2424
"devDependencies": {
2525
"@11ty/eleventy": "3.0.0-beta.1",
26-
"diff2html": "^3.4.48",
27-
"firebase-tools": "^13.15.0",
28-
"hast-util-from-html": "^2.0.1",
26+
"firebase-tools": "^13.16.0",
27+
"hast-util-from-html": "^2.0.2",
2928
"hast-util-select": "^6.0.2",
3029
"hast-util-to-text": "^4.0.2",
3130
"html-minifier-terser": "^7.2.0",
3231
"js-yaml": "^4.1.0",
32+
"liquidjs": "10.16.4",
3333
"markdown-it": "^14.1.0",
34-
"markdown-it-anchor": "^9.0.1",
35-
"markdown-it-attrs": "^4.1.6",
34+
"markdown-it-anchor": "^9.1.0",
35+
"markdown-it-attrs": "^4.2.0",
3636
"markdown-it-container": "^4.0.0",
3737
"markdown-it-deflist": "^3.0.0",
3838
"markdown-it-footnote": "^4.0.0",
3939
"sass": "^1.77.8",
40-
"shiki": "^1.12.1"
40+
"shiki": "^1.14.1"
4141
}
4242
}

0 commit comments

Comments
 (0)