Skip to content

[sync] 2024/11/02 #1519

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

Merged
merged 159 commits into from
Nov 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
94f5ba5
Bump examples/codelabs from `b36565c` to `6b0759f` (#11102)
dependabot[bot] Sep 2, 2024
9ef2eac
Bump actions/upload-artifact from 4.3.6 to 4.4.0 (#11101)
dependabot[bot] Sep 2, 2024
959de85
Add migration guide to opt out of edge-to-edge by default on Android …
camsim99 Sep 3, 2024
d2f8f03
Go-link for "zero rebuilds" design doc (#11103)
nate-thegrate Sep 3, 2024
76932a6
Adding info about code push to the faq (#11105)
sfshaza2 Sep 3, 2024
12b7f07
Update DK eng mgr careers link (#11107)
mit-mit Sep 4, 2024
25a9e57
Adds note for the common error of indentations (#11106)
Luckey-Elijah Sep 4, 2024
691c91a
add storekit 2 adoption link (#11108)
LouiseHsu Sep 5, 2024
2a2cdbe
Adds wide gamut framework breakage notice. (#11082)
gaaclarke Sep 6, 2024
0f24a54
Update: Extract-Archive -> Expand-Archive (#11112)
AmosHuKe Sep 9, 2024
38a98b0
Fix: Bug in `flutter_site/check_link_references` tool during matching…
AmosHuKe Sep 9, 2024
783e6b6
Update npm deps with 11ty and liquid fixes (#11115)
parlough Sep 9, 2024
556b7a9
Fix formatting of code snippets on iOS dev pages (#11021)
piedcipher Sep 9, 2024
bdc7004
Remove/disable broken scorecard workflow (#11116)
parlough Sep 9, 2024
8cfadc2
Bump examples/codelabs from `6b0759f` to `67b0007` (#11119)
dependabot[bot] Sep 10, 2024
fbdd397
Fix footnotes on architectural overview page (#11118)
parlough Sep 10, 2024
d71e237
Bump examples/codelabs from `67b0007` to `d93cf2b` (#11126)
dependabot[bot] Sep 11, 2024
bf65be1
Update Dart platforms diagram (#11125)
parlough Sep 11, 2024
b62e0b1
Fix styling of text icons (#11124)
parlough Sep 11, 2024
e988263
Switch to a new widget placeholder image in the catalog (#11123)
parlough Sep 11, 2024
e45c121
Remove extra visit link from widget catalog index (#11122)
parlough Sep 11, 2024
0cb37db
Fix headers and toc duplication in widget catalog (#11121)
parlough Sep 11, 2024
cf5df5d
Add `entryPointBaseUrl` to web/initialization.md (#11120)
curt-weber Sep 11, 2024
da8d608
Bump examples/codelabs from `d93cf2b` to `4c8554b` (#11130)
dependabot[bot] Sep 12, 2024
24155fa
Add internet permission / entitlement instructions. (#11129)
domesticmouse Sep 12, 2024
c06cdd2
Adding a support page (#11128)
sfshaza2 Sep 12, 2024
489a616
FWE (v2) User Input (#11072)
khanhnwin Sep 13, 2024
3665cfb
Adds note about color equality after wide gamut. (#11132)
gaaclarke Sep 13, 2024
e8d2b29
Update `firebase.json` with `/to/spm` for Swift Package Manager page …
khanhnwin Sep 13, 2024
16573c2
[web] Polish web embedding docs. (#11133)
ditman Sep 13, 2024
a21b7ac
Remove use of third-party dependency for cookie banner (#11137)
parlough Sep 14, 2024
a0fa11a
Some initial cleanup to FWE user input page (#11136)
parlough Sep 14, 2024
474d0de
Mark site as documenting Flutter 3.24.3 (#11134)
parlough Sep 15, 2024
fa0c78f
Fix nested heading on what's new page (#11141)
parlough Sep 16, 2024
eb6627a
Bump github/codeql-action from 3.26.6 to 3.26.7 (#11144)
dependabot[bot] Sep 16, 2024
e99ec1a
Use codeblock titles instead of comments on web embedding page (#11142)
parlough Sep 16, 2024
ee2a1c6
Bump examples/codelabs from `4c8554b` to `42e1608` (#11143)
dependabot[bot] Sep 16, 2024
89d53dc
npm deps updates and cleanup (#11146)
parlough Sep 16, 2024
9ccb2bc
Make internet permission an include (#11145)
domesticmouse Sep 16, 2024
08c5f76
Update Material 3 menu catalog entry to MenuAnchor (#11150)
parlough Sep 17, 2024
8c3636f
[FWE]: Adding a simple networking sample to get things started (#11147)
domesticmouse Sep 17, 2024
31abbf6
Mark new iOS and macOS releases as "Best effort" (#11149)
parlough Sep 17, 2024
997c893
Bump examples/codelabs from `42e1608` to `18c7db0` (#11153)
dependabot[bot] Sep 17, 2024
daa85c5
Update `firebase.json` with `/go/google-maps-advanced-markers` for Ad…
aednlaxer Sep 18, 2024
6e1bf00
Fix: Text in other languages was removed from anchors (#11151)
AmosHuKe Sep 18, 2024
f1d2e7c
Remove outdated mention of 80fps iOS platform view cap (#11159)
parlough Sep 18, 2024
d8acea9
Update references to iOS 18 beta and release (#11160)
parlough Sep 18, 2024
92837fe
Bump examples/codelabs from `18c7db0` to `1890948` (#11162)
dependabot[bot] Sep 19, 2024
7d3d99a
Bump github/codeql-action from 3.26.7 to 3.26.8 (#11165)
dependabot[bot] Sep 20, 2024
4935994
Bump actions/setup-node from 4.0.3 to 4.0.4 (#11164)
dependabot[bot] Sep 20, 2024
f5c2efc
iOS updates (#11140)
sfshaza2 Sep 20, 2024
c35870b
Update sass and shiki dependencies (#11168)
parlough Sep 23, 2024
21ae949
Reflect deprecation of the HTML renderer on image CORS details (#11155)
JaffaKetchup Sep 23, 2024
7a91f9d
Minor, initial adjustments for ios-latest page (#11169)
parlough Sep 24, 2024
1978153
Add `/go/colorscheme-enhancements` design doc redirect (#11174)
jwill Sep 25, 2024
91ae180
Bump github/codeql-action from 3.26.8 to 3.26.9 (#11176)
dependabot[bot] Sep 25, 2024
1db04be
Bump examples/codelabs from `1890948` to `bb66616` (#11175)
dependabot[bot] Sep 25, 2024
90c528b
Update a few more mentions to the `main` channel (#11173)
parlough Sep 25, 2024
756ce57
Clarify notice about installation in China (#11167)
parlough Sep 25, 2024
a5e1478
Update Wasm documentation (#11131)
JaffaKetchup Sep 25, 2024
ed344b9
Make it clear that relative base hrefs are supported for the client/r…
DanTup Sep 25, 2024
50f5fe4
Add FWE to sidenav (#11171)
ericwindmill Sep 25, 2024
5701d87
Fix broken link to new fundamentals docs (#11180)
parlough Sep 25, 2024
ce96f1b
Bump examples/codelabs from `bb66616` to `ad31963` (#11187)
dependabot[bot] Sep 26, 2024
a028c31
Bump actions/checkout from 4.1.7 to 4.2.0 (#11188)
dependabot[bot] Sep 26, 2024
6c06d73
Replace C cast in example with more correct use of standard macro (#1…
robert-ancell Sep 26, 2024
d8ce958
Fix incorrect title - seems to be copy-pasted from the Windows exampl…
robert-ancell Sep 26, 2024
5d3318d
Fix formatting of various lists in fundamentals docs (#11181)
parlough Sep 26, 2024
d2a4915
Add notes about new `SurfaceProducer` APIs for 3.27. (#11179)
matanlurey Sep 26, 2024
0eda51c
Add a reference to the `flutter_shaders` package (#11186)
domesticmouse Sep 26, 2024
b9c4e3e
Improve formatting of code snippets in layout tutorial (#11190)
parlough Sep 26, 2024
69a53dc
Add go link for Q3 2024 DevIntel (#11193)
ericwindmill Sep 26, 2024
2888f0b
Automatically run `pnpm install` in dash_site tool (#11191)
parlough Sep 26, 2024
fb4fdb4
Fix missing closing character on include (#11195)
robert-ancell Sep 26, 2024
096003c
Add permalink to runWidget docs. (#11196)
ditman Sep 26, 2024
c94de07
Fleshed out typography page with more details (#11183)
jwill Sep 26, 2024
f335927
Removing unneeded instruction for Linux (#11199)
sfshaza2 Sep 27, 2024
d7787d0
Remove outdated mention of iOS platform view cap (#11198)
sfshaza2 Sep 27, 2024
5cebef2
Updating iOS 18 supported feature table (#11211)
sfshaza2 Oct 1, 2024
cf42e97
Use our standard footnote support for 'Inside Flutter' doc (#11209)
parlough Oct 1, 2024
a15df3b
Update old `package:js` mention (#11208)
parlough Oct 1, 2024
ef1e87c
Update lint package versions (#11207)
parlough Oct 1, 2024
d312e05
Bump github/codeql-action from 3.26.9 to 3.26.10 (#11214)
dependabot[bot] Oct 1, 2024
b067f6f
Update to new 11ty beta release (#11210)
parlough Oct 1, 2024
d30792b
More tweaking of iOS docs (#11213)
sfshaza2 Oct 1, 2024
63bc3b6
remove link to the test SEO site (#11215)
yjbanov Oct 1, 2024
927d374
Bump site-shared from `61010ce` to `9de39ab` (#11216)
dependabot[bot] Oct 2, 2024
12e958d
Add temporary Dash image to FWE index (#11218)
ericwindmill Oct 2, 2024
f6d87b2
Add go link to new service worker doc. (#11223)
ditman Oct 3, 2024
c95f360
Update gradle plugin apply migration doc (#11197)
sfshaza2 Oct 3, 2024
24645fc
Bump github/codeql-action from 3.26.10 to 3.26.11 (#11226)
dependabot[bot] Oct 4, 2024
e5ebef9
Add go link to Updating Material 3 Sliders doc. (#11228)
TahaTesser Oct 4, 2024
fd57092
Remove codelabs.flutter-io.cn (#11222)
AmosHuKe Oct 4, 2024
5d00f5f
Update to stable 3.0 release of 11ty (#11229)
parlough Oct 4, 2024
a1fef55
Add `go/default-animation-style` design doc redirect (#11230)
caseycrogers Oct 4, 2024
43ada18
Add release notes for DevTools 2.40.0 (#11231)
kenzieschmoll Oct 4, 2024
ad2ebee
Fix typo in sidenav for in animation cookbook recipe "Animate a widge…
WalkQuackBack Oct 7, 2024
d3f682a
Add `/to/web-html-renderer-deprecation` redirect (#11238)
kevmoo Oct 7, 2024
a1b1e48
Updated slugify function to replace `+` with `plus` (#11236)
tbansod2018 Oct 7, 2024
91fc802
Add `flutter.dev/to/engine-tool-bug` redirect (#11239)
matanlurey Oct 7, 2024
066a86e
Add `flutter.dev/to/engine-rbe` tooling redirect (#11241)
matanlurey Oct 8, 2024
e5ff60a
FIX: Broken links on "new-color-scheme-roles.md" page (#11245)
rydmike Oct 8, 2024
62f8a9e
Bump github/codeql-action from 3.26.11 to 3.26.12 (#11244)
dependabot[bot] Oct 8, 2024
e34fd1c
Bump actions/checkout from 4.2.0 to 4.2.1 (#11243)
dependabot[bot] Oct 8, 2024
4889ab1
Bump examples/codelabs from `ad31963` to `6ee198e` (#11242)
dependabot[bot] Oct 8, 2024
bd64e8a
Rename DevTools 2.40.0 notes to 2.40.1 to include CP release (#11255)
kenzieschmoll Oct 9, 2024
aceda4a
Fix typo in vscode.md: change 'you' to 'your' (#11253)
shreyaspranav Oct 9, 2024
eb0a1ff
Minor updates to npm deps (#11254)
parlough Oct 9, 2024
207c4a9
Work around a broken redirect in the `flutter` tool (#11257)
sfshaza2 Oct 9, 2024
da7c404
Fix line highlighting on web-dev page (#11251)
xjccc Oct 10, 2024
06549e3
Add `/go/glossary-expansion` design doc redirect (#11260)
parlough Oct 11, 2024
be099d6
Update layout.md (Just a one word typo) (#11262)
nikhilrawal Oct 11, 2024
e565f7e
Adds "Launching a Compose activity" article (#11219)
craiglabenz Oct 11, 2024
40a348a
Fix new surface provider camerax PR url (#11227)
ThibaultBee Oct 11, 2024
5705fd7
Bump site-shared from `9de39ab` to `65d653b` (#11259)
dependabot[bot] Oct 11, 2024
e9c11d3
Minor formatting fixes for new compose-activity article (#11266)
parlough Oct 14, 2024
b8faa73
Remove unused example code and update dependabot config (#11265)
parlough Oct 14, 2024
816f0a5
Remove codelabs submodule and usages (#11264)
parlough Oct 14, 2024
5acbfa5
Bump github/codeql-action from 3.26.12 to 3.26.13 (#11270)
dependabot[bot] Oct 14, 2024
9b68b29
Reduce overflowing in nested navigation cookbook recipe (#11247)
tbansod2018 Oct 14, 2024
4182478
fix: typo in update-data.md (#11273)
iveloff-developer Oct 15, 2024
7ed8ad6
Update URL strategies page to clarify `flutter_web_plugins` setup (#1…
chrismercredi Oct 16, 2024
d953536
Update /tools/ide redirect to vs code (#11280)
khanhnwin Oct 16, 2024
0db9771
Follow up clean up to URL strategy config doc (#11278)
parlough Oct 16, 2024
4001355
Bump site-shared from `65d653b` to `7527a0e` (#11279)
dependabot[bot] Oct 16, 2024
5d246f4
Adding new compose activity article to sidenav (#11277)
sfshaza2 Oct 16, 2024
31da761
Update lints for example snippets (#11283)
parlough Oct 17, 2024
5b9e769
Update pinned npm dependencies, particularly sass to catch its new de…
parlough Oct 18, 2024
b7f746c
Remove ncurses from necessary AS dependencies on linux (#11286)
parlough Oct 18, 2024
ee37ad9
Updating the supported platforms page (#11271)
sfshaza2 Oct 21, 2024
fe9fb8d
Changed "h/w arch" to "target arch" as per Yegor (#11298)
sfshaza2 Oct 21, 2024
6d029b3
Update outdated flutter.dev link in tool output example (#11295)
nickf2k Oct 22, 2024
2e53e55
Fix typo in step 2 of page animation transition cookbook (#11299)
tanguypouriel Oct 22, 2024
2f94e01
Add go link to `dart:io` reimplementation design doc (#11305)
parlough Oct 22, 2024
fdf47ff
Sidenav upkeep (#11302)
parlough Oct 23, 2024
bf548f2
Bump github/codeql-action from 3.26.13 to 3.27.0 (#11306)
dependabot[bot] Oct 23, 2024
c361cc5
Add Dart code snippets (#11310)
khanhnwin Oct 23, 2024
e1b2dd0
Bump actions/checkout from 4.2.1 to 4.2.2 (#11314)
dependabot[bot] Oct 24, 2024
db3d7f6
Bump site-shared from `7527a0e` to `99868e7` (#11312)
dependabot[bot] Oct 24, 2024
93fe19a
Announce deprecation of `.flutter-plugins`. (#11303)
matanlurey Oct 24, 2024
5119ced
Add go link for multi-window-api (#11315)
Saviq Oct 24, 2024
c1c00a1
Add Flutter in Production course by Andrea Bizzotto (#11308)
bizz84 Oct 24, 2024
781c859
Fix a few typos across the site (#11293)
parlough Oct 24, 2024
2878b5f
Updated link to article about Firebase multiple flavors setup (#11313)
bizz84 Oct 24, 2024
8b346c1
Migration guide for `ThemeData.dialogBackgroundColor` deprecation (#1…
TahaTesser Oct 24, 2024
48a7072
Update courses.md (#11297)
tadaspetra Oct 24, 2024
4ee1d83
Update async weather reference (#11307)
emmanuel-ferdman Oct 24, 2024
20e4688
Tiny cleanup of phrasing in `.flutter-plugins` removal notice (#11330)
matanlurey Oct 25, 2024
6e73956
Bump actions/setup-node from 4.0.4 to 4.1.0 (#11328)
dependabot[bot] Oct 25, 2024
ab5ff38
Remove test-drive page from get-started flow (#11337)
parlough Oct 28, 2024
780fc63
Update minimum recommended CocoaPods version to support Xcode 16 (#11…
loic-sharma Oct 31, 2024
6ab52d1
Add `/to` short links for `et` and `engine-tool`. (#11344)
matanlurey Oct 31, 2024
6fbd62f
Declare `package:flutter_gen` to be deprecated (#11343)
matanlurey Oct 31, 2024
b980954
Fix Errors in PowerShell Code in Flutter Setup Guide for China (#11329)
undef-i Oct 31, 2024
ab2ea7b
Flutter from Compose documentation (#11345)
craiglabenz Oct 31, 2024
5fba15f
Add Flutter Forum as a support option (#11350)
mit-mit Nov 1, 2024
547da8f
ImageFilter default tile mode automatic selection breaking change not…
jonahwilliams Nov 1, 2024
f018f64
Sync: 2024/11/02
AmosHuKe Nov 2, 2024
8dcb35c
Sync: inject_dartpad
AmosHuKe Nov 2, 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
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
experimental: false
continue-on-error: ${{ matrix.experimental }}
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: recursive
- uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1
Expand All @@ -55,7 +55,7 @@ jobs:
runs-on: ubuntu-latest
if: github.repository == 'cfug/flutter.cn'
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: recursive
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
Expand All @@ -73,12 +73,12 @@ jobs:
if: |
github.repository == 'cfug/flutter.cn'
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: recursive
- name: Enable Corepack
run: corepack enable
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
runs-on: ubuntu-latest
if: github.repository == 'cfug/flutter.cn'
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: recursive
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
Expand All @@ -126,14 +126,14 @@ jobs:
github.ref == 'refs/heads/main' &&
github.repository == 'cfug/flutter.cn'
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: recursive
# docs.flutter.cn | https://github.com/cfug/flutter.cn/pull/1518
fetch-depth: 0
- name: Enable Corepack
run: corepack enable
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.head.repo.full_name == 'cfug/flutter.cn' }}
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: recursive
# docs.flutter.cn | https://github.com/cfug/flutter.cn/pull/1518
fetch-depth: 0
- name: Enable Corepack
run: corepack enable
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ node_modules
package-lock.json
pubspec.lock
tmp/

# Temporary as codelabs used to be a submodule
examples/codelabs
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,3 @@
path = site-shared
url = https://github.com/dart-lang/site-shared
branch = main
[submodule "examples/codelabs"]
path = examples/codelabs
url = https://github.com/flutter/codelabs
2 changes: 1 addition & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
analyzer:
exclude: [flutter, site-shared, src, tmp, 'examples/codelabs']
exclude: [flutter, site-shared, src, tmp]
2 changes: 1 addition & 1 deletion eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function (eleventyConfig) {

eleventyConfig.addPassthroughCopy('src/content/assets/js');
// inject_dartpad 暂时放置在本地 tool/inject_dartpad/
// eleventyConfig.addPassthroughCopy({'site-shared/packages/inject_dartpad/lib/inject_dartpad.js': 'assets/js/inject_dartpad.js'});
// eleventyConfig.addPassthroughCopy({'site-shared/pkgs/inject_dartpad/lib/inject_dartpad.js': 'assets/js/inject_dartpad.js'});
eleventyConfig.addPassthroughCopy('src/content/assets/images', { expand: true });
// docs.flutter.cn - translator
eleventyConfig.addPassthroughCopy('src/content/assets/translator');
Expand Down
19 changes: 19 additions & 0 deletions examples/accessibility/lib/main.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import 'package:flutter/material.dart';

void main() => runApp(const AccessibleApp());

class AccessibleApp extends StatelessWidget {
const AccessibleApp({super.key});

@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Your accessible app',
home: Scaffold(
appBar: AppBar(
title: const Text('Your accessible app'),
),
),
);
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: null_safety_basics
description: Some code to demonstrate null safety.
name: your_accessible_app
description: A Flutter project to contain accessibility-related code excerpts.
version: 1.0.0
publish_to: none

environment:
sdk: ^3.5.0
Expand Down
26 changes: 26 additions & 0 deletions examples/accessibility/test/a11y_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:your_accessible_app/main.dart';

void main() {
testWidgets('Follows a11y guidelines', (tester) async {
final SemanticsHandle handle = tester.ensureSemantics();
await tester.pumpWidget(const AccessibleApp());

// Checks that tappable nodes have a minimum size of 48 by 48 pixels
// for Android.
await expectLater(tester, meetsGuideline(androidTapTargetGuideline));

// Checks that tappable nodes have a minimum size of 44 by 44 pixels
// for iOS.
await expectLater(tester, meetsGuideline(iOSTapTargetGuideline));

// Checks that touch targets with a tap or long press action are labeled.
await expectLater(tester, meetsGuideline(labeledTapTargetGuideline));

// Checks whether semantic nodes meet the minimum text contrast levels.
// The recommended text contrast is 3:1 for larger text
// (18 point and above regular).
await expectLater(tester, meetsGuideline(textContrastGuideline));
handle.dispose();
});
}
38 changes: 0 additions & 38 deletions examples/basics/lib/main.dart

This file was deleted.

1 change: 0 additions & 1 deletion examples/codelabs
Submodule codelabs deleted from ad3196
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,12 @@ Route step2() {
);
}

// #docregion step3
var curve = Curves.ease;
var curveTween = CurveTween(curve: curve);
// #enddocregion step3
void createCurves() {
// #docregion step3
var curve = Curves.ease;
var curveTween = CurveTween(curve: curve);
// #enddocregion step3
}

Route step4() {
return PageRouteBuilder(
Expand Down
102 changes: 52 additions & 50 deletions examples/cookbook/effects/nested_nav/lib/add_navigator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void main() {
),
// #docregion OnGenerateRoute
onGenerateRoute: (settings) {
late Widget page;
final Widget page;
if (settings.name == routeHome) {
page = const HomeScreen();
} else if (settings.name == routeSettings) {
Expand Down Expand Up @@ -71,7 +71,7 @@ class SetupFlow extends StatefulWidget {
}

class SetupFlowState extends State<SetupFlow> {
// #docregion AddNavigator
// #docregion AddNavigator
final _navigatorKey = GlobalKey<NavigatorState>();

void _onDiscoveryComplete() {
Expand Down Expand Up @@ -134,7 +134,7 @@ class SetupFlowState extends State<SetupFlow> {
settings: settings,
);
}
// #enddocregion AddNavigator
// #enddocregion AddNavigator

@override
void initState() {
Expand Down Expand Up @@ -304,56 +304,58 @@ class FinishedPage extends StatelessWidget {
body: Center(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 24),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Container(
width: 250,
height: 250,
decoration: const BoxDecoration(
shape: BoxShape.circle,
color: Color(0xFF222222),
),
child: const Center(
child: Icon(
Icons.lightbulb,
size: 175,
color: Colors.white,
child: SingleChildScrollView(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Container(
width: 200,
height: 200,
decoration: const BoxDecoration(
shape: BoxShape.circle,
color: Color(0xFF222222),
),
child: const Center(
child: Icon(
Icons.lightbulb,
size: 140,
color: Colors.white,
),
),
),
),
const SizedBox(height: 32),
const Text(
'Bulb added!',
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold,
),
),
const SizedBox(height: 32),
ElevatedButton(
style: ButtonStyle(
padding: WidgetStateProperty.resolveWith((states) {
return const EdgeInsets.symmetric(
horizontal: 24, vertical: 12);
}),
backgroundColor: WidgetStateColor.resolveWith((states) {
return const Color(0xFF222222);
}),
shape: WidgetStateProperty.resolveWith((states) {
return const StadiumBorder();
}),
),
onPressed: onFinishPressed,
child: const Text(
'Finish',
const SizedBox(height: 32),
const Text(
'Bulb added!',
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold,
),
),
),
],
const SizedBox(height: 32),
ElevatedButton(
style: ButtonStyle(
padding: WidgetStateProperty.resolveWith((states) {
return const EdgeInsets.symmetric(
horizontal: 24, vertical: 12);
}),
backgroundColor: WidgetStateColor.resolveWith((states) {
return const Color(0xFF222222);
}),
shape: WidgetStateProperty.resolveWith((states) {
return const StadiumBorder();
}),
),
onPressed: onFinishPressed,
child: const Text(
'Finish',
style: TextStyle(
fontSize: 24,
),
),
),
],
),
),
),
),
Expand All @@ -378,16 +380,16 @@ class HomeScreen extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
children: [
Container(
width: 250,
height: 250,
width: 200,
height: 200,
decoration: const BoxDecoration(
shape: BoxShape.circle,
color: Color(0xFF222222),
),
child: Center(
child: Icon(
Icons.lightbulb,
size: 175,
size: 140,
color: Theme.of(context).scaffoldBackgroundColor,
),
),
Expand Down
Loading
Loading