Skip to content

Commit 59d3276

Browse files
committed
Merge branch 'main' into docs/dropdownbutton-enabled
2 parents e85865f + 59c4ea1 commit 59d3276

163 files changed

Lines changed: 284 additions & 202 deletions

File tree

Some content is hidden

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

‎.github/workflows/dart.yml‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ jobs:
5959
- name: Fetch Dart dependencies
6060
run: dart pub get
6161
continue-on-error: ${{ matrix.experimental }}
62-
- name: Check Dart code formatting
63-
run: dart run dash_site format-dart --check
64-
continue-on-error: ${{ matrix.experimental }}
62+
# Disabled for now due to non-language versioned formatting changes.
63+
# TODO(parlough): Revisit this once standardized on 3.13 beta or newer.
64+
# - name: Check Dart code formatting
65+
# run: dart run dash_site format-dart --check
66+
# continue-on-error: ${{ matrix.experimental }}
6567
- name: Analyze Dart code
6668
run: dart run dash_site analyze-dart
6769
continue-on-error: ${{ matrix.experimental }}

‎cloud_build/firebase-ghcli/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM dart:3.12.0@sha256:3d1b19886b288807b42020ede8f1f9ea7753c91c17c27479ee9e7bf584289a34
1+
FROM dart:3.12.1@sha256:6440c7d5fd8713b0706d0b6190eb2be7ad896101e225fc9d7657034b23ab0592
22

33
RUN apt-get update && apt-get install -y --no-install-recommends curl gpg ca-certificates \
44
# Install the GitHub CLI. \

‎cloud_build/firebase-ghcli/README.md‎

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,64 @@ When the `Dockerfile` file or `cloudbuild.yaml` template in this directory
1818
are changed in a PR, the cloud build template is triggered.
1919
Then a new version of the image is deployed as the latest version in
2020
Container Registry under the `flutter-dev-230821` project on Google Cloud.
21+
22+
## Updating the Dart SDK version
23+
24+
The base Dart image in `Dockerfile` is pinned by both tag and digest:
25+
26+
```dockerfile
27+
FROM dart:<version>@<digest>
28+
```
29+
30+
When updating the Dart SDK version, update both the tag and the digest.
31+
Use the multi-platform image index digest for the tag.
32+
Don't use a platform-specific digest, such as
33+
the digest for only `linux/amd64` or only `linux/arm64/v8`.
34+
35+
### Using `crane`
36+
37+
If you have the `crane` CLI from [`google/go-containerregistry`][], run:
38+
39+
```bash
40+
crane digest docker.io/library/dart:<STABLE_DART_SDK_VERSION>
41+
```
42+
43+
For example, the following command retrieves the digest for
44+
the `3.12.1` stable release of the SDK:
45+
46+
```bash
47+
crane digest docker.io/library/dart:3.12.1
48+
```
49+
50+
Copy the returned `sha256:...` digest.
51+
Then update the `FROM` line in the `Dockerfile` with
52+
the new tag (version) and copied index digest.
53+
54+
```dockerfile
55+
FROM dart:3.12.1@<digest from crane>
56+
```
57+
58+
Don't pass `--platform` when getting the digest for the `Dockerfile`.
59+
Passing a platform returns the digest for that platform's child manifest
60+
instead of the architecture-agnostic index digest.
61+
62+
[`google/go-containerregistry`]: https://github.com/google/go-containerregistry
63+
64+
### Using Docker Hub
65+
66+
If you don't have `crane`, use the
67+
[Dart image tags page on Docker Hub](https://hub.docker.com/_/dart/tags):
68+
69+
1. Search for the new Dart SDK version tag, such as `3.12.1`.
70+
1. Open the tag detail page by selecting the tag name or digest.
71+
1. Ensure the opened tag page has a `MULTI-PLATFORM` badge.
72+
1. Copy the specified `INDEX DIGEST` value.
73+
It should start with `sha256:`.
74+
1. Update the `FROM` line in the `Dockerfile` with
75+
the new tag (SDK version) and index digest.
76+
77+
<img
78+
width="688"
79+
height="248"
80+
alt="Screenshot of the index digest on Docker Hub, outlined with a red box."
81+
src="https://github.com/user-attachments/assets/909bd713-580f-41f5-882b-9afb3b9bbfaf" />

‎examples/_animation/basic_hero_animation/pubspec.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: >-
55
66
resolution: workspace
77
environment:
8-
sdk: ^3.12.0-0
8+
sdk: ^3.12.0
99

1010
dependencies:
1111
flutter:

‎examples/_animation/basic_radial_hero_animation/pubspec.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: >-
66
77
resolution: workspace
88
environment:
9-
sdk: ^3.12.0-0
9+
sdk: ^3.12.0
1010

1111
dependencies:
1212
flutter:

‎examples/_animation/basic_staggered_animation/pubspec.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: An introductory example to staggered animations.
44

55
resolution: workspace
66
environment:
7-
sdk: ^3.12.0-0
7+
sdk: ^3.12.0
88

99
dependencies:
1010
flutter:

‎examples/_animation/hero_animation/pubspec.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Shows how to create a simple Hero transition.
44

55
resolution: workspace
66
environment:
7-
sdk: ^3.12.0-0
7+
sdk: ^3.12.0
88

99
dependencies:
1010
flutter:

‎examples/_animation/radial_hero_animation/pubspec.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: >-
66
77
resolution: workspace
88
environment:
9-
sdk: ^3.12.0-0
9+
sdk: ^3.12.0
1010

1111
dependencies:
1212
flutter:

‎examples/_animation/radial_hero_animation_animate_rectclip/pubspec.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: >-
66
77
resolution: workspace
88
environment:
9-
sdk: ^3.12.0-0
9+
sdk: ^3.12.0
1010

1111
dependencies:
1212
flutter:

‎examples/_animation/staggered_pic_selection/pubspec.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: A more complex staggered animation example.
44

55
resolution: workspace
66
environment:
7-
sdk: ^3.12.0-0
7+
sdk: ^3.12.0
88

99
dependencies:
1010
flutter:

0 commit comments

Comments
 (0)