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/05/20 #1453

Merged
merged 118 commits into from
May 21, 2024
Merged
Changes from 1 commit
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
e9c8c28
Bump examples/codelabs from `813f742` to `687e664` (#10451)
dependabot[bot] Apr 24, 2024
89fcd77
Adding Firebase resources to App Solutions (#10449)
sfshaza2 Apr 24, 2024
297cb6b
Clarify Gradle imperative apply migration docs for removal of unneede…
gmackall Apr 24, 2024
932e1a1
Add TLHC mode to docs and link issue tracker (#10453)
reidbaker Apr 24, 2024
340ac78
Bump actions/checkout from 4.1.3 to 4.1.4 (#10456)
dependabot[bot] Apr 25, 2024
4cd327b
Bump examples/codelabs from `687e664` to `386e528` (#10455)
dependabot[bot] Apr 25, 2024
a796184
Bump examples/codelabs from `386e528` to `e0ea092` (#10461)
dependabot[bot] Apr 26, 2024
1ad57ee
Adds popscope migration guide (#9872)
chunhtai Apr 26, 2024
c2653b7
Bump github/codeql-action from 3.25.2 to 3.25.3 (#10460)
dependabot[bot] Apr 26, 2024
deeeff1
Update references to compile / min target sdk property (#10459)
navaronbracke Apr 26, 2024
823f030
Add "How to Parse JSON in Dart/Flutter" guide to the JSON and seriali…
bizz84 Apr 28, 2024
f20cd54
Wholistically update the test_drive getting started documentation as …
allantinashemuzeya Apr 28, 2024
023adb4
Update a title in unreleased breaking changes list (#10468)
domesticmouse Apr 29, 2024
3c8f77b
Bump examples/codelabs from `e0ea092` to `cad3558` (#10470)
dependabot[bot] Apr 29, 2024
dbe5a20
Fix: Formatting in 'Configure your target iOS device' guide (#10473)
AmosHuKe Apr 30, 2024
88d3d7c
Add the design document to add support for content:// URIs on Android…
helomri Apr 30, 2024
c8c47ac
Tweaking sidenav to clarify types of monetization (#10476)
sfshaza2 Apr 30, 2024
5748cfe
Update plugin-api-migration.md (#10478)
johnmccutchan May 1, 2024
a0a2ec6
Avoid include shadowing issues in getting started docs (#10475)
parlough May 1, 2024
bbbd8d2
Fix formatting error (#10481)
atsansone May 1, 2024
211a66e
Fix instructions for building the flutter website (#10483)
kenzieschmoll May 1, 2024
e8e3cc8
Add release notes for DevTools 2.35.0 (#10485)
kenzieschmoll May 1, 2024
35be576
Clarified integration test intro (#10433)
atsansone May 1, 2024
e3ea658
Adding landing pages for different kinds of monetization (#10486)
sfshaza2 May 2, 2024
90c90d9
Add missing entry to the devtools_releases.yml file (#10487)
kenzieschmoll May 2, 2024
5e6fdbe
Remove mentions of obsolete features (#10484)
Hixie May 2, 2024
aabc788
Bump site-shared from `80f090a` to `a51135f` (#10489)
dependabot[bot] May 2, 2024
b39ed37
Resolve bash substitution errors in devcontainer setup (#10492)
parlough May 2, 2024
73ba435
Clarify that versions should be adjusted in gradle syntax change (#10…
parlough May 2, 2024
ac14b94
Fix VPN / Device display in iOS (#10482)
atsansone May 2, 2024
e08474c
Add go link to multi-window status (#10480)
loic-sharma May 3, 2024
daaeb21
Update deps, including 11ty for serving fixes (#10499)
parlough May 3, 2024
b597a91
Embed the DevTools extensions video (#10427)
sfshaza2 May 3, 2024
97681c7
Update banner for I/O 2024 (#10502)
parlough May 3, 2024
a445e33
Add alt text to images missing it (#10504)
parlough May 3, 2024
835630b
Migrate misc docregion names to new style (#10503)
parlough May 3, 2024
25d8bae
Update and migrate ui example docregions (#10501)
parlough May 3, 2024
e58f922
Consolidate app-figure includes (#10497)
parlough May 3, 2024
59585cd
Minor current version updates (#10496)
parlough May 3, 2024
515ba68
Replace `list-certificates` and `create-certificates` with `certifica…
nilsreichardt May 4, 2024
b8d25c5
Migrate and cleanup layout doc docregions (#10498)
parlough May 4, 2024
824c72b
Continue migration from `include` to `render` (#10508)
parlough May 4, 2024
f5fba23
Break up examples/development to match newer IA (#10507)
parlough May 5, 2024
ee1dcfd
Standardize docregion ID format in get-started examples (#10510)
parlough May 5, 2024
cbb0d07
Fix italic in navigation & routing page (#10512)
rmtmckenzie May 6, 2024
e68f085
Emphasize current OS card on initial install page (#10511)
parlough May 6, 2024
430fc63
Add a migration guide for Android plugins with Impeller. (#10494)
matanlurey May 6, 2024
c646873
Add mediation to the Ads sidenav and Ads landing page (#10518)
sfshaza2 May 6, 2024
9a25d1a
Adding links to the new wasm article on Medium (#10516)
sfshaza2 May 6, 2024
8b25af1
Enable focusing search field with slash (#10515)
parlough May 6, 2024
0b438dc
Update firebase.json (#10517)
chunhtai May 7, 2024
8af702a
Bump examples/codelabs from `cad3558` to `92731e0` (#10521)
dependabot[bot] May 7, 2024
18f88bf
Bump actions/checkout from 4.1.4 to 4.1.5 (#10522)
dependabot[bot] May 7, 2024
f9f0982
Update documentation for new flutter bootstrapping APIs. (#10256)
eyebrowsoffire May 7, 2024
842546d
Devtools deep linking support (#10509)
sfshaza2 May 7, 2024
e73c3fe
Migrate `app-figure.md` includes to `render` (#10526)
parlough May 8, 2024
dce6e67
Bump site-shared from `a51135f` to `0126475` (#10527)
dependabot[bot] May 8, 2024
d0dfd2b
Solves bad use of FutureBuilder (#10520)
felipecastrosales May 8, 2024
d40b964
Prevent a few icons from being mistakenly read by screen readers (#10…
parlough May 8, 2024
a216a98
Bump github/codeql-action from 3.25.3 to 3.25.4 (#10549)
dependabot[bot] May 9, 2024
027c85e
Update firebase.json (#10529)
chunhtai May 9, 2024
dba6a15
Add migration guide for page apis (#10523)
chunhtai May 9, 2024
2ead8e6
Bump examples/codelabs from `92731e0` to `40e0612` (#10557)
dependabot[bot] May 10, 2024
07257ae
Bump ossf/scorecard-action from 2.3.1 to 2.3.3 (#10556)
dependabot[bot] May 10, 2024
210b3a9
Update for flutter_lints v4 (#10559)
parlough May 10, 2024
322bc76
Added note about updates to predictive back behavior. (#10553)
sfshaza2 May 10, 2024
a40e4a7
Add design doc for performant android orientation changes (#10552)
mossmana May 10, 2024
ee8dc95
[wasm] Update for stable (#10546)
kevmoo May 10, 2024
afebe6a
Fix drag a widget image link (#10560)
parlough May 10, 2024
a3bddbe
Adding AI to the sidenav (#10565)
sfshaza2 May 11, 2024
5df25cc
tweaking the UI of the AI overview page (#10568)
sfshaza2 May 11, 2024
3d5debe
Update universal links page (#10561)
atsansone May 11, 2024
aab9b54
Update: 'flutter.cn/docs' -> 'docs.flutter.cn' (#10572)
AmosHuKe May 12, 2024
7196971
more on Flutter web indexability (#10550)
yjbanov May 12, 2024
04a0ddb
Document asset transformation feature (#10471)
andrewkolos May 12, 2024
729df8b
Add explanation on how to open a drawer (#10548)
sudot May 12, 2024
113be7c
Add preliminary 3.22 release changelog and docs (#10562)
itsjustkevin May 13, 2024
ec441c7
Adaptive and responsive docs (#10305)
sfshaza2 May 13, 2024
8f70e79
Incorporating some of Parker's feedback (#10573)
sfshaza2 May 13, 2024
bcf5e1d
Adding all of the currently supported mediation packages (#10574)
sfshaza2 May 13, 2024
11be616
Update runtime analyzer design doc redirect (#10579)
chunhtai May 13, 2024
a32c7b3
Add `/go/stateful-macro` design doc go link (#10580)
goderbauer May 13, 2024
2a84b82
Update build and examples for 3.22 release (#10584)
parlough May 14, 2024
d822d0a
Update "Delete data on the internet" to handle empty maps (#10585)
johnpryan May 14, 2024
5497da7
Adding a capabilities and policies page (#10582)
sfshaza2 May 14, 2024
1a7311d
Update the status of Impeller on Android as of 3.22. (#10583)
chinmaygarde May 14, 2024
ae27bea
Update supported platforms for 3.22 (#10500)
parlough May 14, 2024
050a844
Docs: Replace measure image with branch image (#10588)
kalyncoose May 14, 2024
43e6e53
Add new games-related codelabs and docs (#10589)
sfshaza2 May 14, 2024
50103e0
Update the banner for I/O 2024 livestream (#10590)
sfshaza2 May 14, 2024
e8a783c
Link to Wonderous from Wasm page (#10592)
mit-mit May 14, 2024
84f2457
Update 3.22 breaking changes (#10591)
parlough May 14, 2024
288f1c3
[wasm] clarify that JS is still complied, even with the --wasm flag (…
kevmoo May 14, 2024
2cc8004
Add the new 3.22 codelabs (#10595)
sfshaza2 May 14, 2024
c6c013f
Updating the what's new page (#10594)
sfshaza2 May 15, 2024
df9f16a
forge2d workshop short link (#10597)
khanhnwin May 15, 2024
461ecc2
Update 3-19-deprecations.md - Fix typos (#10596)
chanpei May 15, 2024
25db06c
Fix incorrect link to Dart 3.4 blog post (#10601)
percival888 May 15, 2024
afe2b9f
Uncomment link to 3.22 announcement blog post (#10599)
parlough May 15, 2024
c3c8f1e
Remove intl_translation workaround (#10603)
parlough May 15, 2024
dd8d5c0
Bump github/codeql-action from 3.25.4 to 3.25.5 (#10606)
dependabot[bot] May 15, 2024
4cfa7fc
Bump examples/codelabs from `155bcda` to `851b1da` (#10604)
dependabot[bot] May 15, 2024
de42588
bootstrapping: this is stable! (#10608)
kevmoo May 15, 2024
250b378
Bump site-shared from `e466136` to `777996f` (#10605)
dependabot[bot] May 15, 2024
a1e2f19
Updating the banner (#10609)
sfshaza2 May 15, 2024
e6d5888
Fix: flutter v3.22 tech blog link (#10611)
iugo May 16, 2024
582c005
Add `/go/use-dart-style-in-flutter-engine` design doc redirect (#10612)
matanlurey May 16, 2024
c8f1d26
fix: adding proper command for extracting archives (#10610)
HicaroD May 16, 2024
348fe05
Update long lists cookbook (#10616)
loic-sharma May 17, 2024
79c12ef
Bump examples/codelabs from `851b1da` to `85f6a5e` (#10619)
dependabot[bot] May 17, 2024
a3c7fbf
Bump actions/checkout from 4.1.5 to 4.1.6 (#10618)
dependabot[bot] May 17, 2024
b672409
[site] fix link pointing to android developer site (#10620)
rivasdiaz May 17, 2024
1b221df
Refactor integration test pages (#10563)
atsansone May 20, 2024
4d38317
Sync: 2024/05/17
AmosHuKe May 20, 2024
3c487bc
Sync: 2024/05/20
AmosHuKe May 20, 2024
382764b
Update: inject_dartpad.js
AmosHuKe May 20, 2024
fe1ba8e
Bump: examples/codelabs from 851b1da25 to c6d179f8c
AmosHuKe May 20, 2024
e5329d8
Update: src/content/platform-integration/android/platform-views.md
AmosHuKe May 20, 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
Prev Previous commit
Next Next commit
Add alt text to images missing it (#10504)
parlough authored May 3, 2024
commit a445e33b2a33b0523b7d0de341fdfc742ff00ce8
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
_site
.cache
.*-cache
.*-metadata
.DS_Store
2 changes: 1 addition & 1 deletion firebase.json
Original file line number Diff line number Diff line change
@@ -630,7 +630,7 @@
]
},
{
"source": "**/*.@(jpg|jpeg|gif|png|webp|webm|svg|md|css|js)",
"source": "**/*.@(avif|jpg|jpeg|gif|png|webp|webm|svg|md|css|js)",
"headers": [
{ "key": "Cache-Control", "value": "max-age=3600" },
{ "key": "Access-Control-Allow-Origin", "value": "*" }
8 changes: 2 additions & 6 deletions src/_includes/docs/android-ios-figure-pair.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<figure class="site-figure">
<div class="site-figure-container">
<img src='/assets/images/docs/get-started/android/{{include.image}}'
alt='{{include.alt}} on Android'
class='{{include.class}}'>
<img src='/assets/images/docs/get-started/android/{{include.image}}' alt='{{include.alt}} on Android' class='{{include.class}}'>
<figcaption class="figure-caption">Android</figcaption>
</div>
<div class="site-figure-container">
<img src='/assets/images/docs/get-started/ios/{{include.image}}'
alt='{{include.alt}} on iOS'
class='{{include.class}}'>
<img src='/assets/images/docs/get-started/ios/{{include.image}}' alt='{{include.alt}} on iOS' class='{{include.class}}'>
<figcaption class="figure-caption">iOS</figcaption>
</div>
</figure>
1 change: 1 addition & 0 deletions src/content/data-and-backend/state-mgmt/simple.md
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ state management from other reactive frameworks,
you can find packages and tutorials listed on the [options page][].

## Our example

<img src='/assets/images/docs/development/data-and-backend/state-mgmt/model-shopper-screencast.gif' alt='An animated gif showing a Flutter app in use. It starts with the user on a login screen. They log in and are taken to the catalog screen, with a list of items. The click on several items, and as they do so, the items are marked as "added". The user clicks on a button and gets taken to the cart view. They see the items there. They go back to the catalog, and the items they bought still show "added". End of animation.' class='site-image-right'>

For illustration, consider the following simple app.
10 changes: 5 additions & 5 deletions src/content/deployment/android.md
Original file line number Diff line number Diff line change
@@ -262,17 +262,17 @@ Opting in allows Flutter to automatically depend on
When you try to build and run your app with the **Run** and **Debug**
options in your IDE, your build might fail with the following message:

<img src='/assets/images/docs/deployment/android/ide-build-failure-multidex.png' width="100%" alt='screenshot of build failure because Multidex support is required'>
<img src='/assets/images/docs/deployment/android/ide-build-failure-multidex.png' width="100%" alt='Build failure because Multidex support is required'>

To enable multidex from the command line,
run `flutter run --debug` and select an Android device:

<img src='/assets/images/docs/deployment/android/cli-select-device.png' width="100%" alt='screenshot of selecting an Android device'>
<img src='/assets/images/docs/deployment/android/cli-select-device.png' width="100%" alt='Selecting an Android device with the flutter CLI.'>

When prompted, enter `y`.
The Flutter tool enables multidex support and retries the build:

<img src='/assets/images/docs/deployment/android/cli-multidex-added-build.png' width="100%" alt='screenshot of a successful build after adding multidex'>
<img src='/assets/images/docs/deployment/android/cli-multidex-added-build.png' width="100%" alt='The output of a successful build after adding multidex.'>

:::note
Multidex support is natively included when targeting
@@ -528,13 +528,13 @@ In Android Studio, open the existing `android/`
folder under your app's folder. Then,
select **build.gradle (Module: app)** in the project panel:

<img src='/assets/images/docs/deployment/android/gradle-script-menu.png' width="100%" alt='screenshot of gradle build script menu'>
<img src='/assets/images/docs/deployment/android/gradle-script-menu.png' width="100%" alt='The Gradle build script menu in Android Studio.'>

Next, select the build variant. Click **Build > Select Build Variant**
in the main menu. Select any of the variants in the **Build Variants**
panel (debug is the default):

<img src='/assets/images/docs/deployment/android/build-variant-menu.png' width="100%" alt='screenshot of build variant menu'>
<img src='/assets/images/docs/deployment/android/build-variant-menu.png' width="100%" alt='The build variant menu in Android Studio with Release selected.'>

The resulting app bundle or APK files are located in
`build/app/outputs` within your app's folder.
2 changes: 1 addition & 1 deletion src/content/get-started/codelab-web.md
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ does work on mobile and desktop
once you download and configure the appropriate tooling.
:::

<img src="/assets/images/docs/get-started/sign-up.gif" alt="The web app that you'll be building" class='site-image-right'>
<img src="/assets/images/docs/get-started/sign-up.gif" alt="The web app that you'll be building." class='site-image-right'>

This is a guide to creating your first Flutter **web** app.
If you are familiar with object-oriented programming,
2 changes: 1 addition & 1 deletion src/content/get-started/flutter-for/declarative.md
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ This, however, requires a slight shift in thinking for how to manipulate UI.

Consider a simplified example below:

<img src="/assets/images/docs/declarativeUIchanges.png" alt="View B (contained by view A) morphs from containing two views, c1 and c2, to containing only view c3">
<img src="/assets/images/docs/declarativeUIchanges.png" alt="View B (contained by view A) morphs from containing two views, c1 and c2, to containing only view c3.">

In the imperative style, you would typically go to ViewB's owner
and retrieve the instance `b` using selectors or with `findViewById` or similar,
2 changes: 1 addition & 1 deletion src/content/get-started/flutter-for/swiftui-devs.md
Original file line number Diff line number Diff line change
@@ -141,7 +141,7 @@ UnconstrainedBox(
)
```

<img src="/assets/images/docs/ui/layout/layout-14.png" alt="When parents pass unbounded constraints to children, and the children are expanding, then there is an overflow warning">
<img src="/assets/images/docs/ui/layout/layout-14.png" alt="When parents pass unbounded constraints to children, and the children are expanding, then there is an overflow warning.">

To learn how constraints work in Flutter,
see [Understanding constraints][].
27 changes: 11 additions & 16 deletions src/content/platform-integration/ios/app-extensions.md
Original file line number Diff line number Diff line change
@@ -32,10 +32,9 @@ add the extension point *target* to your Xcode project.
Flutter project directory.
1. In Xcode, select **File -> New -> Target** from the menu bar.

<figure class="site-figure {{include.class}}">
<figure class="site-figure">
<div class="site-figure-container">
<img src='/assets/images/docs/development/platform-integration/app-extensions/xcode-new-target.png'
height='300'>
<img src='/assets/images/docs/development/platform-integration/app-extensions/xcode-new-target.png' alt='Opening the File -> New menu, then selecting Target in Xcode.' height='300'>
</div>
</figure>
1. Select the app extension you intend to add.
@@ -97,7 +96,7 @@ To add a target to an App Group:
1. Select an App Group from the list.
1. Click **+** to add a new App Group.

{% include docs/app-figure.md image="development/platform-integration/app-extensions/xcode-app-groups.png" %}
{% include docs/app-figure.md image="development/platform-integration/app-extensions/xcode-app-groups.png" alt="Selecting an App Group within an Xcode Runner target configuration." %}

When two targets belong to the same App Group,
they can read from and write to the same source.
@@ -135,10 +134,9 @@ share content with other apps,
such as sharing a picture to create
a new post on a social media app.

<figure class="site-figure {{include.class}}">
<figure class="site-figure">
<div class="site-figure-container">
<img src='/assets/images/docs/development/platform-integration/app-extensions/share-extension.png'
height='300'>
<img src='/assets/images/docs/development/platform-integration/app-extensions/share-extension.png' alt='An example of an entry added to the share menu by a Flutter app' height='300'>
</div>
</figure>

@@ -174,10 +172,9 @@ use an iOS simulator to test your extension in debug mode.
share extension's frameworks and libraries list.
Make sure the embed column says "Embed & Sign".

<figure class="site-figure {{include.class}}">
<figure class="site-figure">
<div class="site-figure-container">
<img src='/assets/images/docs/development/platform-integration/app-extensions/embed-framework.png'
height='300'>
<img src='/assets/images/docs/development/platform-integration/app-extensions/embed-framework.png' alt='The Flutter.xcframework file being marked as Embed & Sign in Xcode.' height='300'>
</div>
</figure>

@@ -192,10 +189,9 @@ use an iOS simulator to test your extension in debug mode.
**Based on configuration file** drop-down menu for your
extension matches the one selected for the normal app target.

<figure class="site-figure {{include.class}}">
<figure class="site-figure">
<div class="site-figure-container">
<img src='/assets/images/docs/development/platform-integration/app-extensions/xcode-configurations.png'
height='300'>
<img src='/assets/images/docs/development/platform-integration/app-extensions/xcode-configurations.png' alt='An example Xcode Runner configuration with each property set to: Based on configuration file.' height='300'>
</div>
</figure>

@@ -212,10 +208,9 @@ use an iOS simulator to test your extension in debug mode.
you should omit the `<YourShareExtensionTargetName>.`
portion.<br>

<figure class="site-figure {{include.class}}">
<figure class="site-figure">
<div class="site-figure-container">
<img src='/assets/images/docs/development/platform-integration/app-extensions/share-extension-info.png'
height='300'>
<img src='/assets/images/docs/development/platform-integration/app-extensions/share-extension-info.png' alt='Setting the NSExtensionPrincipalClass property in the Info.plist file within Xcode.' height='300'>
</div>
</figure>

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Migrating from flutter_driver
description: >
description: >-
Learn how to migrate existing flutter_driver tests to integration_test.
---

@@ -26,13 +26,11 @@ functionality:
* On the right, there's a details screen that displays the plant name
and species.
* On app start, when no plant is selected, a text asking the user to select
a plant is displayed
a plant is displayed
* The list of plants is loaded from a local JSON file located in the
assets folder.
`/assets` folder.

<img src='/assets/images/docs/integration-test/migration-1.png'
class="mw-100"
alt="Starter project screenshot">
<img src='/assets/images/docs/integration-test/migration-1.png' class="mw-100" alt="Starter project screenshot">

You can find the full code example in the [Example Project][] folder.

@@ -56,7 +54,7 @@ This file won't be necessary anymore when using `integration_test`.

To start using the `integration_test` package,
add the `integration_test` to
your pubspec.yaml file if you haven't yet:
your `pubspec.yaml` file if you haven't yet:

```yaml
dev_dependencies: