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

[Re-land#2] Button padding M3 #119498

Merged
merged 206 commits into from Jan 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
206 commits
Select commit Hold shift + click to select a range
1b4d4f4
init scaled changes
esouthren Jan 12, 2023
9d86acb
add correct padding values for M3
esouthren Jan 13, 2023
9f33957
revert unneeded change
esouthren Jan 13, 2023
cc273e4
Update packages/flutter/lib/src/material/text_button.dart
esouthren Jan 13, 2023
ac0bf49
Update packages/flutter/lib/src/material/text_button.dart
esouthren Jan 13, 2023
7aa06ae
comment fixes
esouthren Jan 13, 2023
d4fe3e3
test update
esouthren Jan 13, 2023
3dc1e4e
docstring fixes
esouthren Jan 13, 2023
210e981
e44a0de4c Roll Fuchsia Mac SDK from JLTTlcNPJeScjSO2B... to FeFYsNPy6…
engine-flutter-autoroll Dec 29, 2022
52e1f29
Roll Plugins from e11cb245bb8e to 2d66f30e5825 (2 revisions) (#117781)
engine-flutter-autoroll Dec 29, 2022
5af1787
4dd8a694f Roll Skia from cc3e0cd0a743 to c776239198f7 (1 revision) (f…
engine-flutter-autoroll Dec 29, 2022
912760d
3460f349b [fuchsia] Set presentation interval (flutter/engine#38549) …
engine-flutter-autoroll Dec 29, 2022
7c8c0b9
Roll Flutter Engine from 3460f349b01d to 1752b5b84680 (2 revisions) (…
engine-flutter-autoroll Dec 29, 2022
1003b1e
a63bd854a [fuchsia] Add trace flow for Flatland::Present (flutter/eng…
engine-flutter-autoroll Dec 29, 2022
fb302fa
Roll Flutter Engine from a63bd854ac5a to 5713a216076f (2 revisions) (…
engine-flutter-autoroll Dec 29, 2022
60409a3
Roll Flutter Engine from 5713a216076f to 780082203ea9 (2 revisions) (…
engine-flutter-autoroll Dec 30, 2022
c6da592
9095f7a8b Roll Dart SDK from fa6cf7241184 to 224ac5ed9c66 (1 revision…
engine-flutter-autoroll Dec 30, 2022
bfa7ccb
0118b461b Roll Fuchsia Mac SDK from FeFYsNPy64-PEXPer... to 2lzQU8FEj…
engine-flutter-autoroll Dec 30, 2022
c93ce57
e03d7c8bb Roll Skia from 13435162b783 to 9e8f31e3020c (3 revisions) (…
engine-flutter-autoroll Dec 30, 2022
32ec731
af6078b5f Roll Skia from 9e8f31e3020c to 486deb23bc2a (2 revisions) (…
engine-flutter-autoroll Dec 30, 2022
876ee1c
7e5cc7bb6 Roll Dart SDK from 224ac5ed9c66 to 9f0d8b9f20da (1 revision…
engine-flutter-autoroll Dec 30, 2022
283eb85
d4a04a538 Roll Fuchsia Linux SDK from KCm_e3N4gosNuY4IW... to IApTRqW…
engine-flutter-autoroll Dec 30, 2022
e035f2d
b202b3db9 Roll Flutter from 17482fd425ee to d2127ad344e8 (14 revision…
engine-flutter-autoroll Dec 30, 2022
e8a47c6
Roll Flutter Engine from d4a04a538050 to 9153966bcb06 (2 revisions) (…
engine-flutter-autoroll Dec 30, 2022
e608c91
b9bf51d16 Roll Dart SDK from 9f0d8b9f20da to 881c0b56a1f7 (1 revision…
engine-flutter-autoroll Dec 30, 2022
7d34566
Roll Flutter Engine from b9bf51d16f25 to f6ad9b6d00e3 (2 revisions) (…
engine-flutter-autoroll Dec 31, 2022
284b78c
932591ec0 Roll Fuchsia Linux SDK from CXcPP_JZKQbSu2eIP... to PkN8FdI…
engine-flutter-autoroll Dec 31, 2022
eca12c8
3d8c5ef10 Roll Fuchsia Linux SDK from PkN8FdI4aC9z7W4mI... to OOL-jWR…
engine-flutter-autoroll Jan 1, 2023
514b64b
Roll Flutter Engine from 3d8c5ef1060c to a7decc3e459b (2 revisions) (…
engine-flutter-autoroll Jan 1, 2023
a0fabfe
0a2029cf3 Roll Fuchsia Linux SDK from OOL-jWRElkQ2P3vJz... to AE3lAqT…
engine-flutter-autoroll Jan 1, 2023
2620c53
5fe7d5b4e Roll Skia from 01aeec883a43 to 2ffa04c2f77c (2 revisions) (…
engine-flutter-autoroll Jan 2, 2023
cf1ca12
e5d605b3a Roll Skia from 2ffa04c2f77c to 269dce7e16bb (1 revision) (f…
engine-flutter-autoroll Jan 2, 2023
44cc9be
71c5f1704 Roll Fuchsia Linux SDK from AE3lAqTc632VsY14L... to UAq0LO5…
engine-flutter-autoroll Jan 2, 2023
2392422
472e34cbb Roll Skia from 269dce7e16bb to fde37f5986fd (1 revision) (f…
engine-flutter-autoroll Jan 2, 2023
a89e3b8
Roll Plugins from b202b3db98dc to e85f8ac1502d (3 revisions) (#117875)
engine-flutter-autoroll Jan 3, 2023
4f3f5e5
[flutter_tools] timeline_test.dart flaky (#116667)
Jasguerrero Jan 3, 2023
e553cd8
7e51aef0a Roll Skia from fde37f5986fd to 809e328ed55c (1 revision) (f…
engine-flutter-autoroll Jan 3, 2023
be4f2d9
Updated to tokens v0.150. (#117350)
darrenaustin Jan 3, 2023
c852f01
Simplify null check. (#117026)
asashour Jan 3, 2023
46e0d68
Roll Flutter Engine from 7e51aef0a1be to 1d2ba73d1059 (9 revisions) (…
engine-flutter-autoroll Jan 3, 2023
0378d38
Reland "Remove single-view assumption from ScrollPhysics (#117503)" (…
goderbauer Jan 3, 2023
0ae8d2c
Minor documentation fix on BorderRadiusDirectional.zero (#117661)
gnprice Jan 3, 2023
55ba63d
fix typos (#117592)
CicadaCinema Jan 3, 2023
c83fc6a
c0b3f8fce Make `AccessibilityBridge` a `AXPlatformTreeManager` (flutt…
engine-flutter-autoroll Jan 3, 2023
f2bea1a
Add convenience constructors for SliverList (#116605)
thkim1011 Jan 3, 2023
dfba596
2213b80dd [Impeller Scene] Use std::chrono for animation durations (f…
engine-flutter-autoroll Jan 3, 2023
c1e6bf8
Reland "Add support for double tap and drag for text selection #10957…
Renzo-Olivares Jan 4, 2023
8d79721
== override parameters are non-nullable (#117839)
srawlins Jan 4, 2023
40a0e14
Fix the message strings for xcodeMissing and xcodeIncomplete (#117922)
peixinli Jan 4, 2023
bc82dff
32c468507 Roll quiver to 3.2.1 (flutter/engine#38617) (#117942)
engine-flutter-autoroll Jan 4, 2023
de7fe7e
Send text direction in selection rects (#117436)
moffatman Jan 4, 2023
543e031
Correctly propagate verbosity to subtasks in flutter.gradle (#117897)
mraleph Jan 4, 2023
cd9f3fc
Roll Plugins from e85f8ac1502d to f9dda6a27b79 (3 revisions) (#117972)
engine-flutter-autoroll Jan 4, 2023
6fb2558
[flutter_tools] Fix null check in parsing web plugin from pubspec.yam…
christopherfujino Jan 4, 2023
3b329e7
roll packages (#117940)
fluttergithubbot Jan 4, 2023
e488aa5
roll packages (#118001)
fluttergithubbot Jan 4, 2023
b5a093d
[Android] Increase timeout duration for spell check integration test …
camsim99 Jan 5, 2023
6e7e468
Roll Flutter Engine from 32c468507b32 to cdd3bf29e27a (8 revisions) (…
engine-flutter-autoroll Jan 5, 2023
75b6f8f
60515762e [Impeller Scene] Compute joint transforms and apply them to…
engine-flutter-autoroll Jan 5, 2023
124d92c
35b7dee32 [Impeller] Set adaptive tolerance when rendering FillPathGe…
engine-flutter-autoroll Jan 5, 2023
6f0148a
b9b0193ea Roll Skia from 60e4a4a27375 to 158d51b34caa (19 revisions) …
engine-flutter-autoroll Jan 5, 2023
c872b68
a01548f5f [Impeller Scene] Fix material/vertex color overlapping (flu…
engine-flutter-autoroll Jan 5, 2023
eeb9b74
Roll Plugins from f9dda6a27b79 to 320461910156 (2 revisions) (#118040)
engine-flutter-autoroll Jan 5, 2023
3c644e0
072a9ca37 Add `TextProvider` and `TextEdit` patterns to `AXPlatformNo…
engine-flutter-autoroll Jan 5, 2023
5520bf6
bb4015269 Roll Skia from 158d51b34caa to ecd3a2f865ba (1 revision) (f…
engine-flutter-autoroll Jan 5, 2023
f6faa04
Avoid using `TextAffinity` in `TextBoundary` (#117446)
LongCatIsLooong Jan 5, 2023
163c269
74861f369 Reduce the size of Overlay FlutterImageView in HC mode (flu…
engine-flutter-autoroll Jan 5, 2023
1382294
5bd90d6e7 Consider more roles as text (flutter/engine#38645) (#118049)
engine-flutter-autoroll Jan 5, 2023
8e833c4
[EMPTY] Commit to refresh the tree that is currently red (#118062)
drewroengoogle Jan 5, 2023
dcd6d49
Remove doc reference to the deprecated ui.FlutterWindow API (#118064)
jason-simmons Jan 6, 2023
a3d27d2
Fix `flutter update-packages` regression by fixing parameters in "pub…
nehalvpatel Jan 6, 2023
49777bf
Adding 'is' to list of kotlin reserved keywords (#116299)
gmackall Jan 6, 2023
51ceabe
Added expandIconColor property on ExpansionPanelList Widget (#115950)
M97Chahboun Jan 6, 2023
4a9266e
Update docstring (#118072)
a-wallen Jan 6, 2023
c8f8838
Fix out-of-sync ExpansionPanel animation (#105024)
morriskurz Jan 6, 2023
aaf5cec
Roll Plugins from 320461910156 to 276cfd4b212d (2 revisions) (#118099)
engine-flutter-autoroll Jan 6, 2023
fd6372e
33d7f8a1b Remove single view assumptions from `window.dart` (flutter/…
engine-flutter-autoroll Jan 6, 2023
bcf279e
InteractiveViewer parameter to return to pre-3.3 trackpad/Magic Mouse…
moffatman Jan 6, 2023
7e351be
0a0e3d205 Roll Flutter from 43b912090224 to 507062032fa4 (9 revisions…
engine-flutter-autoroll Jan 9, 2023
cf5dec7
Roll Flutter Engine from 33d7f8a1b307 to 03609b420beb (6 revisions) (…
engine-flutter-autoroll Jan 9, 2023
fc8cc9e
remove the unused check in selectable_text (#117716)
LucasXu0 Jan 9, 2023
e2a513b
Roll Flutter Engine from 03609b420beb to b5513d7a442a (2 revisions) (…
engine-flutter-autoroll Jan 9, 2023
180b570
Roll Flutter Engine from b5513d7a442a to 5bdb04f33f99 (2 revisions) (…
engine-flutter-autoroll Jan 9, 2023
104c6ff
51baed6e0 [fuchsia][scenic] Use infinite hit region (flutter/engine#3…
engine-flutter-autoroll Jan 9, 2023
75e6067
Update to Xcode 14.2 (#117507)
jmagman Jan 9, 2023
b27c8f6
Allow iOS and macOS plugins to share darwin directory (#115337)
jmagman Jan 9, 2023
9bb6c0b
Roll Flutter Engine from 51baed6e01b8 to 5df0072a0e63 (3 revisions) (…
engine-flutter-autoroll Jan 9, 2023
755f7a6
Use program during attach if provided (#118130)
helin24 Jan 9, 2023
70dbc45
eb5c6f0b4 iOS FlutterTextureRegistry should be a proxy, not the engin…
engine-flutter-autoroll Jan 9, 2023
5995858
Update `ListTile` to support Material 3 (#117965)
TahaTesser Jan 9, 2023
787fa41
3a7d8862f Re-enable UIA text/range provider unit tests (flutter/engin…
engine-flutter-autoroll Jan 9, 2023
4321cf9
Fix path for require.js (#118120)
nshahan Jan 9, 2023
c7bca87
ee0c4d26b Roll flutter/packages to 25454e (flutter/engine#38685) (#11…
engine-flutter-autoroll Jan 9, 2023
9cb9100
Roll Flutter Engine from ee0c4d26b0fa to 264aa032cf75 (2 revisions) (…
engine-flutter-autoroll Jan 9, 2023
8c00159
9c0b187a1 Roll Dart SDK from 853eff8b0faa to 418bee5da2e2 (4 revision…
engine-flutter-autoroll Jan 10, 2023
26caea6
add closed/open focus traversal; use open on web (#115961)
yjbanov Jan 10, 2023
c9bae48
Roll Flutter Engine from 9c0b187a1139 to 716bb9172c0d (3 revisions) (…
engine-flutter-autoroll Jan 10, 2023
b9a64d7
Hide InkWell hover highlight when an hovered InkWell is disabled (#11…
bleroux Jan 10, 2023
e94767c
Allow select cases to be numbers (#116625)
thkim1011 Jan 10, 2023
39a732b
[Impeller Scene] Add SceneC asset importing (#118157)
bdero Jan 10, 2023
033131d
Add a comment about repeat event + fix typos (#118095)
bleroux Jan 10, 2023
ec13171
Add MaterialStateProperty `overlayColor` & `mouseCursor` and fix hov…
TahaTesser Jan 10, 2023
92a9321
Roll Flutter Engine from 716bb9172c0d to 687e3cb0fbe2 (2 revisions) (…
engine-flutter-autoroll Jan 10, 2023
fb92ec9
Roll Plugins from 0a0e3d205ca3 to 9fdc899b72ca (8 revisions) (#118253)
engine-flutter-autoroll Jan 10, 2023
9680e2e
Manually mark Windows run_debug_test_windows as unflaky (#118112)
loic-sharma Jan 10, 2023
2e5c65e
Marks Mac_arm64_android run_debug_test_android to be unflaky (#117469)
fluttergithubbot Jan 10, 2023
9a9c910
Marks Mac_arm64_ios run_debug_test_macos to be unflaky (#117990)
fluttergithubbot Jan 10, 2023
99738a7
remove unsound mode web test (#118256)
jonahwilliams Jan 10, 2023
04a7128
Update `CupertinoPicker` example (#118248)
TahaTesser Jan 10, 2023
1b3fa23
roll packages (#118117)
fluttergithubbot Jan 10, 2023
bfc23e9
Add option for opting out of enter route snapshotting. (#118086)
Time1ess Jan 10, 2023
899660f
roll packages (#118272)
fluttergithubbot Jan 10, 2023
d54feea
Roll Flutter Engine from 687e3cb0fbe2 to c1d61cf11da8 (6 revisions) (…
engine-flutter-autoroll Jan 10, 2023
32f35ce
Align `flutter pub get/upgrade/add/remove/downgrade` (#117896)
sigurdm Jan 10, 2023
9362fba
ae9e181e3 Roll Dart SDK from 5e344de60564 to 7b4d49402252 (1 revision…
engine-flutter-autoroll Jan 11, 2023
9e4d7a1
Fix Finnish TimeOfDate format (#118204)
thkim1011 Jan 11, 2023
2907aab
Roll Flutter Engine from ae9e181e30c2 to 53bd4bbf9646 (3 revisions) (…
engine-flutter-autoroll Jan 11, 2023
9546a5e
9ade91c8b removed forbidden skia include (flutter/engine#38761) (#118…
engine-flutter-autoroll Jan 11, 2023
2dcff5f
8d7beac82 Roll Dart SDK from 7b4d49402252 to 23cbd61a1327 (1 revision…
engine-flutter-autoroll Jan 11, 2023
89f9e0b
6256f05db Roll Fuchsia Mac SDK from 6xysoRPCXJ3cJX12x... to a9NpYJbjh…
engine-flutter-autoroll Jan 11, 2023
b5bfcef
FIX: UnderlineInputBorder hashCode and equality by including borderRa…
rydmike Jan 11, 2023
e866208
Bump actions/upload-artifact from 3.1.1 to 3.1.2 (#118116)
dependabot[bot] Jan 11, 2023
1fa3b7c
Bump actions/checkout from 3.1.0 to 3.3.0 (#118052)
dependabot[bot] Jan 11, 2023
7cee407
Bump github/codeql-action from 2.1.35 to 2.1.37 (#117104)
dependabot[bot] Jan 11, 2023
93b5a6a
6048f9110 Roll Dart SDK from 23cbd61a1327 to 22fa50e09ee8 (3 revision…
engine-flutter-autoroll Jan 11, 2023
e6ee8bc
Roll Plugins from 9fdc899b72ca to 620a059d62b2 (4 revisions) (#118317)
engine-flutter-autoroll Jan 11, 2023
465c454
ee76ab71e Cleanup Skia includes in image_generator/descriptor (flutte…
engine-flutter-autoroll Jan 11, 2023
d86349b
Roll Flutter Engine from ee76ab71e0a6 to cccaae2f3d8b (3 revisions) (…
engine-flutter-autoroll Jan 11, 2023
f480f02
764a9e012 Roll Skia from e1f3980272f3 to dfb838747295 (48 revisions) …
engine-flutter-autoroll Jan 12, 2023
385b471
Roll Flutter Engine from 764a9e01204d to 4a8d6866a1c0 (2 revisions) (…
engine-flutter-autoroll Jan 12, 2023
c944cc9
Marks Mac_ios complex_layout_scroll_perf_bad_ios__timeline_summary to…
fluttergithubbot Jan 12, 2023
21106f8
Marks Mac channels_integration_test to be unflaky (#111571)
fluttergithubbot Jan 12, 2023
f33aca6
Marks Mac_ios platform_views_scroll_perf_non_intersecting_impeller_io…
fluttergithubbot Jan 12, 2023
f1d59a6
Fix `SliverAppBar.large` and `SliverAppBar.medium` do not use `foregr…
TahaTesser Jan 12, 2023
bc1525e
docs: update docs about color property in material card (#117263)
SuhwanCha Jan 12, 2023
8736529
Fix M3 `Drawer` default shape in RTL (#118185)
TahaTesser Jan 12, 2023
e38666c
[M3] Add error state support for side property of CheckBox (#118386)
esouthren Jan 12, 2023
57a7ce1
Roll Plugins from 620a059d62b2 to 39197f17ca59 (6 revisions) (#118391)
engine-flutter-autoroll Jan 12, 2023
b0088b6
Move debug error message from failed pub to logger.printTrace (#118379)
sigurdm Jan 12, 2023
2adf595
[tool] Generate a binary version of the asset manifest (#117233)
andrewkolos Jan 12, 2023
c20ab54
IconButtonTheme should be overridden by the AppBar/AppBarTheme's icon…
QuncCccccc Jan 12, 2023
08118d4
reduce pub output from flutter create (#118285)
andrewkolos Jan 12, 2023
67a91d3
roll packages (#118277)
fluttergithubbot Jan 12, 2023
ab440bc
[web] Update build to use generated JS runtime for Dart2Wasm. (#118359)
joshualitt Jan 12, 2023
d71c188
Roll Flutter Engine from 4a8d6866a1c0 to c01465a18f31 (9 revisions) (…
engine-flutter-autoroll Jan 12, 2023
bb8de3c
Add MSYS2 detection on Windows Terminal (#117612)
awesometic Jan 12, 2023
319555c
Add documentation for drag/fling offset in WidgetController. (#118288)
peixinli Jan 12, 2023
08497b9
688015782 fixed glfw example for arm64 (flutter/engine#38426) (#118413)
engine-flutter-autoroll Jan 12, 2023
096f00f
Use correct API docs link in create --sample help message (#118371)
parlough Jan 12, 2023
00654da
Roll Flutter Engine from 688015782762 to 35cfe9158648 (2 revisions) (…
engine-flutter-autoroll Jan 12, 2023
ff1dede
Fix tap/drag callbacks firing when TapAndDragGestureRecognizer has no…
Renzo-Olivares Jan 13, 2023
cbf1e58
8aa26baa9 Roll Dart SDK from edd406c07399 to 20cca507d98b (1 revision…
engine-flutter-autoroll Jan 13, 2023
4148fd6
add generated_plugins.cmake (#116581)
IvoB1987 Jan 13, 2023
8b570fd
Enable xcode cache cleanup for a few days. (#118419)
godofredoc Jan 13, 2023
e1d972a
99509a7e4 Correct FrameTimingRecorder's raster start time. (flutter/e…
engine-flutter-autoroll Jan 13, 2023
361e58f
Roll Flutter Engine from 99509a7e4275 to f3f05368033b (2 revisions) (…
engine-flutter-autoroll Jan 13, 2023
4c878f2
Add `allowedButtonsFilter` to prevent Draggable from appearing with s…
bernaferrari Jan 13, 2023
849c550
15d59792e Roll Skia from dfb838747295 to 9e51c2c9e231 (26 revisions) …
engine-flutter-autoroll Jan 13, 2023
93affe7
a62d25326 Roll Skia from dfb838747295 to cc983d28f3bf (27 revisions) …
engine-flutter-autoroll Jan 13, 2023
67baa92
dfa0327f8 Roll Skia from cc983d28f3bf to fd54be29a3cc (3 revisions) (…
engine-flutter-autoroll Jan 13, 2023
807ba86
07603c6d4 Roll Dart SDK from 20cca507d98b to 3d629d00a8d7 (2 revision…
engine-flutter-autoroll Jan 13, 2023
7e76c4a
Fix copying/applying font fallback with package (#118393)
IchordeDionysos Jan 13, 2023
59936cd
dec608917 Roll Fuchsia Mac SDK from nIPtQ59jG1pxyatOq... to 21nYb648V…
engine-flutter-autoroll Jan 13, 2023
e4b73b4
970889b87 Roll Skia from fd54be29a3cc to c72c7bf7e45b (3 revisions) (…
engine-flutter-autoroll Jan 13, 2023
5761a74
a512cebdc Roll Dart SDK from 3d629d00a8d7 to 645fd748e79e (1 revision…
engine-flutter-autoroll Jan 13, 2023
77f5ce0
Roll Plugins from 39197f17ca59 to 92a5367d58df (4 revisions) (#118457)
engine-flutter-autoroll Jan 13, 2023
c53b451
Added LinearBorder, an OutlinedBorder like BoxBorder (#116940)
HansMuller Jan 13, 2023
6f5f8f6
Marks Mac_ios spell_check_test to be unflaky (#117743)
fluttergithubbot Jan 13, 2023
ecf06b4
[Linux] Add a 'flutter run' console output test (#118279)
loic-sharma Jan 13, 2023
2e89e10
Add Info.plist from build directory as input path to Thin Binary buil…
vashworth Jan 13, 2023
4793c78
[flutter_tools] re-enable web shader compilation (#118461)
jonahwilliams Jan 13, 2023
dca919c
Bump github/codeql-action from 2.1.37 to 2.1.38 (#118482)
dependabot[bot] Jan 13, 2023
be104b6
master merge
esouthren Jan 15, 2023
9a8e37f
remove whitespace
esouthren Jan 15, 2023
12eac3d
add newline
esouthren Jan 15, 2023
f3d4d64
newline fixes
esouthren Jan 15, 2023
f50f937
newline fix
esouthren Jan 15, 2023
45a48e5
test fix
esouthren Jan 16, 2023
928d00b
Update documentation about accent color (#116778)
guidezpl Jan 16, 2023
76664d1
e44a0de4c Roll Fuchsia Mac SDK from JLTTlcNPJeScjSO2B... to FeFYsNPy6…
engine-flutter-autoroll Dec 29, 2022
c23aedf
Roll Plugins from e11cb245bb8e to 2d66f30e5825 (2 revisions) (#117781)
engine-flutter-autoroll Dec 29, 2022
663ddb5
Roll Flutter Engine from 5713a216076f to 780082203ea9 (2 revisions) (…
engine-flutter-autoroll Dec 30, 2022
de5b9f3
Reland "Add support for double tap and drag for text selection #10957…
Renzo-Olivares Jan 4, 2023
e0cf677
roll packages (#117940)
fluttergithubbot Jan 4, 2023
6d11936
roll packages (#118001)
fluttergithubbot Jan 4, 2023
81c7098
[EMPTY] Commit to refresh the tree that is currently red (#118062)
drewroengoogle Jan 5, 2023
6de7175
Remove doc reference to the deprecated ui.FlutterWindow API (#118064)
jason-simmons Jan 6, 2023
a601775
Fix `flutter update-packages` regression by fixing parameters in "pub…
nehalvpatel Jan 6, 2023
acf825b
[Impeller Scene] Add SceneC asset importing (#118157)
bdero Jan 10, 2023
8ae896b
roll packages (#118117)
fluttergithubbot Jan 10, 2023
9f140fe
roll packages (#118272)
fluttergithubbot Jan 10, 2023
c0f2ece
Align `flutter pub get/upgrade/add/remove/downgrade` (#117896)
sigurdm Jan 10, 2023
5bccad5
Bump github/codeql-action from 2.1.35 to 2.1.37 (#117104)
dependabot[bot] Jan 11, 2023
26c28d0
Move debug error message from failed pub to logger.printTrace (#118379)
sigurdm Jan 12, 2023
2e1fec6
[tool] Generate a binary version of the asset manifest (#117233)
andrewkolos Jan 12, 2023
9e36710
reduce pub output from flutter create (#118285)
andrewkolos Jan 12, 2023
c54bac5
roll packages (#118277)
fluttergithubbot Jan 12, 2023
59120dc
Fix tap/drag callbacks firing when TapAndDragGestureRecognizer has no…
Renzo-Olivares Jan 13, 2023
ff08c2a
Add `allowedButtonsFilter` to prevent Draggable from appearing with s…
bernaferrari Jan 13, 2023
9d84f5d
15d59792e Roll Skia from dfb838747295 to 9e51c2c9e231 (26 revisions) …
engine-flutter-autoroll Jan 13, 2023
569354c
[flutter_tools] re-enable web shader compilation (#118461)
jonahwilliams Jan 13, 2023
ae1fedf
remove whitespace
esouthren Jan 15, 2023
47d0536
fix rebase mess
esouthren Jan 16, 2023
415131b
fix time picker tests
esouthren Jan 17, 2023
0cec768
whitespace fix
esouthren Jan 17, 2023
b8493aa
actual whitespace fix
esouthren Jan 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 2 additions & 3 deletions examples/api/lib/material/app_bar/app_bar.1.dart
Expand Up @@ -98,7 +98,7 @@ class _AppBarExampleState extends State<AppBarExample> {
label: const Text('shadow color'),
),
const SizedBox(width: 5),
ElevatedButton.icon(
ElevatedButton(
onPressed: () {
if (scrolledUnderElevation == null) {
setState(() {
Expand All @@ -111,8 +111,7 @@ class _AppBarExampleState extends State<AppBarExample> {
});
}
},
icon: const Icon(Icons.add),
label: Text(
child: Text(
'scrolledUnderElevation: ${scrolledUnderElevation ?? 'default'}',
),
),
Expand Down
28 changes: 20 additions & 8 deletions packages/flutter/lib/src/material/elevated_button.dart
Expand Up @@ -333,10 +333,10 @@ class ElevatedButton extends ButtonStyleButton {
/// * hovered - 3
/// * focused or pressed - 1
/// * `padding`
/// * `textScaleFactor <= 1` - horizontal(16)
/// * `1 < textScaleFactor <= 2` - lerp(horizontal(16), horizontal(8))
/// * `2 < textScaleFactor <= 3` - lerp(horizontal(8), horizontal(4))
/// * `3 < textScaleFactor` - horizontal(4)
/// * `textScaleFactor <= 1` - horizontal(24)
/// * `1 < textScaleFactor <= 2` - lerp(horizontal(24), horizontal(12))
/// * `2 < textScaleFactor <= 3` - lerp(horizontal(12), horizontal(6))
/// * `3 < textScaleFactor` - horizontal(6)
/// * `minimumSize` - Size(64, 40)
/// * `fixedSize` - null
/// * `maximumSize` - Size.infinite
Expand All @@ -351,6 +351,10 @@ class ElevatedButton extends ButtonStyleButton {
/// * `enableFeedback` - true
/// * `alignment` - Alignment.center
/// * `splashFactory` - Theme.splashFactory
///
/// For the [ElevatedButton.icon] factory, the start (generally the left) value of
/// [padding] is reduced from 24 to 16.

@override
ButtonStyle defaultStyleOf(BuildContext context) {
final ThemeData theme = Theme.of(context);
Expand Down Expand Up @@ -390,10 +394,12 @@ class ElevatedButton extends ButtonStyleButton {
}

EdgeInsetsGeometry _scaledPadding(BuildContext context) {
final bool useMaterial3 = Theme.of(context).useMaterial3;
final double padding1x = useMaterial3 ? 24.0 : 16.0;
return ButtonStyleButton.scaledPadding(
const EdgeInsets.symmetric(horizontal: 16),
const EdgeInsets.symmetric(horizontal: 8),
const EdgeInsets.symmetric(horizontal: 4),
EdgeInsets.symmetric(horizontal: padding1x),
EdgeInsets.symmetric(horizontal: padding1x / 2),
EdgeInsets.symmetric(horizontal: padding1x / 2 / 2),
MediaQuery.textScaleFactorOf(context),
);
}
Expand Down Expand Up @@ -496,7 +502,13 @@ class _ElevatedButtonWithIcon extends ElevatedButton {

@override
ButtonStyle defaultStyleOf(BuildContext context) {
final EdgeInsetsGeometry scaledPadding = ButtonStyleButton.scaledPadding(
final bool useMaterial3 = Theme.of(context).useMaterial3;
final EdgeInsetsGeometry scaledPadding = useMaterial3 ? ButtonStyleButton.scaledPadding(
const EdgeInsetsDirectional.fromSTEB(16, 0, 24, 0),
const EdgeInsetsDirectional.fromSTEB(8, 0, 12, 0),
const EdgeInsetsDirectional.fromSTEB(4, 0, 6, 0),
MediaQuery.textScaleFactorOf(context),
) : ButtonStyleButton.scaledPadding(
const EdgeInsetsDirectional.fromSTEB(12, 0, 16, 0),
const EdgeInsets.symmetric(horizontal: 8),
const EdgeInsetsDirectional.fromSTEB(8, 0, 4, 0),
Expand Down
60 changes: 56 additions & 4 deletions packages/flutter/lib/src/material/filled_button.dart
Expand Up @@ -345,6 +345,50 @@ class FilledButton extends ButtonStyleButton {
/// shape's [OutlinedBorder.side]. Typically the default value of an
/// [OutlinedBorder]'s side is [BorderSide.none], so an outline is not drawn.
///
/// ## Material 3 defaults
///
/// If [ThemeData.useMaterial3] is set to true the following defaults will
/// be used:
///
/// * `textStyle` - Theme.textTheme.labelLarge
/// * `backgroundColor`
/// * disabled - Theme.colorScheme.onSurface(0.12)
/// * others - Theme.colorScheme.secondaryContainer
/// * `foregroundColor`
/// * disabled - Theme.colorScheme.onSurface(0.38)
/// * others - Theme.colorScheme.onSecondaryContainer
/// * `overlayColor`
/// * hovered - Theme.colorScheme.onSecondaryContainer(0.08)
/// * focused or pressed - Theme.colorScheme.onSecondaryContainer(0.12)
/// * `shadowColor` - Theme.colorScheme.shadow
/// * `surfaceTintColor` - Colors.transparent
/// * `elevation`
/// * disabled - 0
/// * default - 1
/// * hovered - 3
/// * focused or pressed - 1
/// * `padding`
/// * `textScaleFactor <= 1` - horizontal(24)
/// * `1 < textScaleFactor <= 2` - lerp(horizontal(24), horizontal(12))
/// * `2 < textScaleFactor <= 3` - lerp(horizontal(12), horizontal(6))
/// * `3 < textScaleFactor` - horizontal(6)
/// * `minimumSize` - Size(64, 40)
/// * `fixedSize` - null
/// * `maximumSize` - Size.infinite
/// * `side` - null
/// * `shape` - StadiumBorder()
/// * `mouseCursor`
/// * disabled - SystemMouseCursors.basic
/// * others - SystemMouseCursors.click
/// * `visualDensity` - Theme.visualDensity
/// * `tapTargetSize` - Theme.materialTapTargetSize
/// * `animationDuration` - kThemeChangeDuration
/// * `enableFeedback` - true
/// * `alignment` - Alignment.center
/// * `splashFactory` - Theme.splashFactory
///
/// For the [FilledButton.icon] factory, the start (generally the left) value of
/// [padding] is reduced from 24 to 16.
@override
ButtonStyle defaultStyleOf(BuildContext context) {
switch (_variant) {
Expand All @@ -364,10 +408,12 @@ class FilledButton extends ButtonStyleButton {
}

EdgeInsetsGeometry _scaledPadding(BuildContext context) {
final bool useMaterial3 = Theme.of(context).useMaterial3;
final double padding1x = useMaterial3 ? 24.0 : 16.0;
return ButtonStyleButton.scaledPadding(
const EdgeInsets.symmetric(horizontal: 16),
const EdgeInsets.symmetric(horizontal: 8),
const EdgeInsets.symmetric(horizontal: 4),
EdgeInsets.symmetric(horizontal: padding1x),
EdgeInsets.symmetric(horizontal: padding1x / 2),
EdgeInsets.symmetric(horizontal: padding1x / 2 / 2),
MediaQuery.textScaleFactorOf(context),
);
}
Expand Down Expand Up @@ -467,7 +513,13 @@ class _FilledButtonWithIcon extends FilledButton {

@override
ButtonStyle defaultStyleOf(BuildContext context) {
final EdgeInsetsGeometry scaledPadding = ButtonStyleButton.scaledPadding(
final bool useMaterial3 = Theme.of(context).useMaterial3;
final EdgeInsetsGeometry scaledPadding = useMaterial3 ? ButtonStyleButton.scaledPadding(
const EdgeInsetsDirectional.fromSTEB(16, 0, 24, 0),
const EdgeInsetsDirectional.fromSTEB(8, 0, 12, 0),
const EdgeInsetsDirectional.fromSTEB(4, 0, 6, 0),
MediaQuery.textScaleFactorOf(context),
) : ButtonStyleButton.scaledPadding(
const EdgeInsetsDirectional.fromSTEB(12, 0, 16, 0),
const EdgeInsets.symmetric(horizontal: 8),
const EdgeInsetsDirectional.fromSTEB(8, 0, 4, 0),
Expand Down
36 changes: 29 additions & 7 deletions packages/flutter/lib/src/material/outlined_button.dart
Expand Up @@ -287,10 +287,10 @@ class OutlinedButton extends ButtonStyleButton {
/// * `surfaceTintColor` - null
/// * `elevation` - 0
/// * `padding`
/// * `textScaleFactor <= 1` - horizontal(16)
/// * `1 < textScaleFactor <= 2` - lerp(horizontal(16), horizontal(8))
/// * `2 < textScaleFactor <= 3` - lerp(horizontal(8), horizontal(4))
/// * `3 < textScaleFactor` - horizontal(4)
/// * `textScaleFactor <= 1` - horizontal(24)
/// * `1 < textScaleFactor <= 2` - lerp(horizontal(24), horizontal(12))
/// * `2 < textScaleFactor <= 3` - lerp(horizontal(12), horizontal(6))
/// * `3 < textScaleFactor` - horizontal(6)
/// * `minimumSize` - Size(64, 40)
/// * `fixedSize` - null
/// * `maximumSize` - Size.infinite
Expand All @@ -307,6 +307,9 @@ class OutlinedButton extends ButtonStyleButton {
/// * `enableFeedback` - true
/// * `alignment` - Alignment.center
/// * `splashFactory` - Theme.splashFactory
///
/// For the [OutlinedButton.icon] factory, the start (generally the left) value of
/// [padding] is reduced from 24 to 16.
@override
ButtonStyle defaultStyleOf(BuildContext context) {
final ThemeData theme = Theme.of(context);
Expand Down Expand Up @@ -347,10 +350,12 @@ class OutlinedButton extends ButtonStyleButton {
}

EdgeInsetsGeometry _scaledPadding(BuildContext context) {
final bool useMaterial3 = Theme.of(context).useMaterial3;
final double padding1x = useMaterial3 ? 24.0 : 16.0;
return ButtonStyleButton.scaledPadding(
const EdgeInsets.symmetric(horizontal: 16),
const EdgeInsets.symmetric(horizontal: 8),
const EdgeInsets.symmetric(horizontal: 4),
EdgeInsets.symmetric(horizontal: padding1x),
EdgeInsets.symmetric(horizontal: padding1x / 2),
EdgeInsets.symmetric(horizontal: padding1x / 2 / 2),
MediaQuery.textScaleFactorOf(context),
);
}
Expand Down Expand Up @@ -424,6 +429,23 @@ class _OutlinedButtonWithIcon extends OutlinedButton {
clipBehavior: clipBehavior ?? Clip.none,
child: _OutlinedButtonWithIconChild(icon: icon, label: label),
);

@override
ButtonStyle defaultStyleOf(BuildContext context) {
final bool useMaterial3 = Theme.of(context).useMaterial3;
if (!useMaterial3) {
return super.defaultStyleOf(context);
}
final EdgeInsetsGeometry scaledPadding = ButtonStyleButton.scaledPadding(
const EdgeInsetsDirectional.fromSTEB(16, 0, 24, 0),
const EdgeInsetsDirectional.fromSTEB(8, 0, 12, 0),
const EdgeInsetsDirectional.fromSTEB(4, 0, 6, 0),
MediaQuery.textScaleFactorOf(context),
);
return super.defaultStyleOf(context).copyWith(
padding: MaterialStatePropertyAll<EdgeInsetsGeometry>(scaledPadding),
);
}
}

class _OutlinedButtonWithIconChild extends StatelessWidget {
Expand Down
13 changes: 9 additions & 4 deletions packages/flutter/lib/src/material/text_button.dart
Expand Up @@ -270,7 +270,7 @@ class TextButton extends ButtonStyleButton {
/// * `shadowColor` - Theme.shadowColor
/// * `elevation` - 0
/// * `padding`
/// * `textScaleFactor <= 1` - all(8)
/// * `textScaleFactor <= 1` - (horizontal(12), vertical(8))
/// * `1 < textScaleFactor <= 2` - lerp(all(8), horizontal(8))
/// * `2 < textScaleFactor <= 3` - lerp(horizontal(8), horizontal(4))
/// * `3 < textScaleFactor` - horizontal(4)
Expand Down Expand Up @@ -320,7 +320,7 @@ class TextButton extends ButtonStyleButton {
/// * `surfaceTintColor` - null
/// * `elevation` - 0
/// * `padding`
/// * `textScaleFactor <= 1` - all(8)
/// * `textScaleFactor <= 1` - lerp(horizontal(12), horizontal(4))
/// * `1 < textScaleFactor <= 2` - lerp(all(8), horizontal(8))
/// * `2 < textScaleFactor <= 3` - lerp(horizontal(8), horizontal(4))
/// * `3 < textScaleFactor` - horizontal(4)
Expand All @@ -338,6 +338,9 @@ class TextButton extends ButtonStyleButton {
/// * `enableFeedback` - true
/// * `alignment` - Alignment.center
/// * `splashFactory` - Theme.splashFactory
///
/// For the [TextButton.icon] factory, the end (generally the right) value of
/// [padding] is increased from 12 to 16.
/// {@endtemplate}
@override
ButtonStyle defaultStyleOf(BuildContext context) {
Expand Down Expand Up @@ -378,8 +381,9 @@ class TextButton extends ButtonStyleButton {
}

EdgeInsetsGeometry _scaledPadding(BuildContext context) {
final bool useMaterial3 = Theme.of(context).useMaterial3;
return ButtonStyleButton.scaledPadding(
const EdgeInsets.all(8),
useMaterial3 ? const EdgeInsets.symmetric(horizontal: 12, vertical: 8) : const EdgeInsets.all(8),
const EdgeInsets.symmetric(horizontal: 8),
const EdgeInsets.symmetric(horizontal: 4),
MediaQuery.textScaleFactorOf(context),
Expand Down Expand Up @@ -491,8 +495,9 @@ class _TextButtonWithIcon extends TextButton {

@override
ButtonStyle defaultStyleOf(BuildContext context) {
final bool useMaterial3 = Theme.of(context).useMaterial3;
final EdgeInsetsGeometry scaledPadding = ButtonStyleButton.scaledPadding(
const EdgeInsets.all(8),
useMaterial3 ? const EdgeInsetsDirectional.fromSTEB(12, 8, 16, 8) : const EdgeInsets.all(8),
const EdgeInsets.symmetric(horizontal: 4),
const EdgeInsets.symmetric(horizontal: 4),
MediaQuery.textScaleFactorOf(context),
Expand Down
53 changes: 53 additions & 0 deletions packages/flutter/test/material/elevated_button_test.dart
Expand Up @@ -1147,6 +1147,59 @@ void main() {
expect(paddingWidget.padding, const EdgeInsets.all(22));
});

testWidgets('M3 ElevatedButton has correct padding', (WidgetTester tester) async {
final Key key = UniqueKey();
await tester.pumpWidget(
MaterialApp(
theme: ThemeData.from(colorScheme: const ColorScheme.light(), useMaterial3: true),
home: Scaffold(
body: Center(
child: ElevatedButton(
key: key,
onPressed: () {},
child: const Text('ElevatedButton'),
),
),
),
),
);

final Padding paddingWidget = tester.widget<Padding>(
find.descendant(
of: find.byKey(key),
matching: find.byType(Padding),
),
);
expect(paddingWidget.padding, const EdgeInsets.symmetric(horizontal: 24));
});

testWidgets('M3 ElevatedButton.icon has correct padding', (WidgetTester tester) async {
final Key key = UniqueKey();
await tester.pumpWidget(
MaterialApp(
theme: ThemeData.from(colorScheme: const ColorScheme.light(), useMaterial3: true),
home: Scaffold(
body: Center(
child: ElevatedButton.icon(
key: key,
icon: const Icon(Icons.favorite),
onPressed: () {},
label: const Text('ElevatedButton'),
),
),
),
),
);

final Padding paddingWidget = tester.widget<Padding>(
find.descendant(
of: find.byKey(key),
matching: find.byType(Padding),
),
);
expect(paddingWidget.padding, const EdgeInsetsDirectional.fromSTEB(16.0, 0.0, 24.0, 0.0));
});

testWidgets('Elevated buttons animate elevation before color on disable', (WidgetTester tester) async {
// This is a regression test for https://github.com/flutter/flutter/issues/387

Expand Down
53 changes: 53 additions & 0 deletions packages/flutter/test/material/filled_button_test.dart
Expand Up @@ -1224,6 +1224,59 @@ void main() {
expect(paddingWidget.padding, const EdgeInsets.all(22));
});

testWidgets('M3 FilledButton has correct padding', (WidgetTester tester) async {
final Key key = UniqueKey();
await tester.pumpWidget(
MaterialApp(
theme: ThemeData.from(colorScheme: const ColorScheme.light(), useMaterial3: true),
home: Scaffold(
body: Center(
child: ElevatedButton(
key: key,
onPressed: () {},
child: const Text('FilledButton'),
),
),
),
),
);

final Padding paddingWidget = tester.widget<Padding>(
find.descendant(
of: find.byKey(key),
matching: find.byType(Padding),
),
);
expect(paddingWidget.padding, const EdgeInsets.symmetric(horizontal: 24));
});

testWidgets('M3 FilledButton.icon has correct padding', (WidgetTester tester) async {
final Key key = UniqueKey();
await tester.pumpWidget(
MaterialApp(
theme: ThemeData.from(colorScheme: const ColorScheme.light(), useMaterial3: true),
home: Scaffold(
body: Center(
child: FilledButton.icon(
key: key,
icon: const Icon(Icons.favorite),
onPressed: () {},
label: const Text('ElevatedButton'),
),
),
),
),
);

final Padding paddingWidget = tester.widget<Padding>(
find.descendant(
of: find.byKey(key),
matching: find.byType(Padding),
),
);
expect(paddingWidget.padding, const EdgeInsetsDirectional.fromSTEB(16.0, 0.0, 24.0, 0.0));
});

testWidgets('By default, FilledButton shape outline is defined by shape.side', (WidgetTester tester) async {
const Color borderColor = Color(0xff4caf50);
await tester.pumpWidget(
Expand Down