18495 Commits

Author SHA1 Message Date
xubaolin
f1d8e30c4b
Add HitTestBehavior property to MouseRegion (#100405) 2022-03-22 23:55:11 -07:00
xubaolin
16dda86539
Fix a ModalbottomSheet bug (#99970) 2022-03-22 15:55:13 -07:00
Jonah Williams
32c021bd33
[framework] use Uint8List for SMC (#100582) 2022-03-22 15:00:13 -07:00
Danny Tuppeny
ea8aeb7427
[dap] Remove some code that's not longer required (#98928) 2022-03-22 14:20:12 -07:00
Kate Lovett
8e7b361651
Add back Gold passfail (#100576) 2022-03-22 14:00:20 -07:00
Darren Austin
86c02e998b
Migrate Card widget to Material 3. (#100532) 2022-03-22 13:46:56 -07:00
LongCatIsLooong
dc331d393b
[RenderAnimatedSize] Resume interrupted resizing animation on attach (#100519) 2022-03-22 13:15:12 -07:00
Anurag Roy
74f08c7352
[flutter_tools] Skip version freshness check for non-standard remotes (#97202) 2022-03-22 12:50:21 -07:00
Taha Tesser
a24246029a
Make Tooltip state class public (#100553) 2022-03-22 12:10:22 -07:00
Michael Goderbauer
8560d914eb
Upgrade to flutter_lints 2.0 (#99881) 2022-03-22 11:00:23 -07:00
Kate Lovett
d435b72448
Revert "Re-land text selection theme clean up" (#100564) 2022-03-22 10:30:22 -07:00
Darren Austin
a6e945fb1f
Add surfaceTint color to the ColorScheme. (#100153) 2022-03-21 23:14:33 -07:00
LongCatIsLooong
69b92f0452
Hide autocomplete menu on select. (#100251) 2022-03-21 21:25:09 -07:00
Chris Bracken
fd3c34c9d4
[macOS] Use arm64 snapshot in arm64 App.framework (#100504)
Previously, https://github.com/flutter/flutter/pull/100271 enabled
building universal macOS binaries by default, but included a bug causing
the arm64 App.framework to be built such that the TEXT section
containing the app instructions built by gen_snapshot incorrectly
contained x86_64 instructions rather than arm64 instructions.

When building macOS (and iOS) apps, Flutter builds them in three
components:
* The Runner application: built by Xcode
* The bundled App.framework: built from assembly code generated by
  gen_snapshot from the application's Dart sources.
* The bundled FlutterMacOS.framework: built as part of the engine build
  and packaged by copying the distributed binary framework from our
  artifacts cache.

Building App.framework consists of the following steps:
* For each architecture, invoke gen_snapshot to generate
  architecture-specific assembly code, which is then built to object
  code and linked into an architecture-specific App.framework.
* Use the `lipo` tool to generate a universal binary that includes both
  x86_64 and arm64 architectures.

Previously, we were building architecture specific App.framework
binaries. However, for all architectures we were (mistakenly) invoking
the general `gen_snapshot` tool (which emitted x64 instructions, and
which is now deprecated) instead of the architecture-specific
`gen_snapshot_x86` and `gen_snapshot_arm64` builds which emit
instructions for the correct architecture.

This change introduces a small refactoring, which is to split the
`getNameForDarwinArch` function into two functions:
* `getDartNameForDarwinArch`: the name for the specified architecture as
  used in the Dart SDK, for example as the suffix of `gen_snapshot`.
* `getNameForDarwinArch`: the name for the specified architecture
  as used in Apple tools, for example as an argument to `lipo`. For
  consistency, and to match developer expectations on Darwin platforms,
  this is also the name used in Flutter's build outputs.

Issue: https://github.com/flutter/flutter/issues/100348
2022-03-21 20:36:57 -07:00
Jesús S Guerrero
50f3e47b67
Revert "[flutter_tools] remove pub dependencies from universal #97722" (#100508) 2022-03-21 19:20:10 -07:00
Kate Lovett
63a12b3d31
Re-land text selection theme clean up (#99927) 2022-03-21 17:56:28 -05:00
Kate Lovett
5bc9340233
Put stretch indicator behind m3 flag (#100234) 2022-03-21 17:55:57 -05:00
Chris Yang
e6bd208196
Reland "Add the refresh rate fields to perf_test #99710" (#99854) 2022-03-21 15:55:13 -07:00
Kate Lovett
c9312c784d
Fix stretch edge case (#99365) 2022-03-21 15:50:18 -07:00
gaaclarke
97258979df
Revert "Starts using the --source flag to compile the dart registrant. (#98046) (#100493) 2022-03-21 13:40:23 -07:00
Pierre-Louis
9d4e81678b
Fix deprecated_new_in_comment_reference for material library (#100289)
* fix deprecated_new_in_comment_reference for `material` library

in a future version of the SDK, these will be flagged, fix them now

* Update pubspec.yaml
2022-03-21 20:18:40 +01:00
MrBirb
4d2dc5d642
Typo in EditableText strutStyle (#100474) 2022-03-21 11:55:15 -07:00
Taha Tesser
4cea5ee0da
CupertinoSwitch: Add clickable cursor for web (#99554) 2022-03-21 10:10:24 -07:00
Pierre-Louis
8c1c2f6af5
Introduce Theme extensions (#98033)
* first pass

* x

* x

* address feedback

* support multiple extensions

* add convenience function, Object ⇒ dynamic, lerping

* remove not-useful comment

* fix examples/api lower sdk constraint

* remove trailing spaces

* remove another pesky trailing space

* improve lerp

* address feedback

* hide map implementation from constructor and copyWith

* use iterableproperty

* Revert "hide map implementation from constructor and copyWith"

This reverts commit a6994af0046e3c90dbc9405cac628feb5b2d3031.

* slow down sample

* make theme extension params required

* add null check

* improve documentation

* fix hashCode and operator == overrides

* modify existing tests

* remove trailing spaces

* add all tests except lerping

* fix lerping bug

* add toString to themeExtension example

* add lerping test

* assume non-nullability in example

* address feedback

* update docs

* remove trailing space

* use Map.unmodifiable
2022-03-21 15:26:30 +01:00
fzyzcjy
36fa6c4d90
Fix wrong documentation: There is no LeaderLayer._lastOffset anymore (#100300) 2022-03-18 16:55:12 -07:00
chunhtai
c98cb4a450
Add fadeDuration back to TextSelectionOverlay (#100381)
* Add fadeDuration back to TextSelectionOverlay

* fix build and add dart fix

* format

* add test
2022-03-18 13:05:18 -07:00
Jonah Williams
5a52ad6dbd
[framework] Remove danger zone (#100246) 2022-03-18 11:30:21 -07:00
Justin McCandless
a217bbb6de
Hide toolbar after select all on desktop (#100261) 2022-03-18 10:50:18 -07:00
Taha Tesser
795fe375bc
Fix PopupMenuButton's IconButton not inheriting IconTheme size (#100199) 2022-03-18 10:05:17 -07:00
Michael Goderbauer
3d46ab920b
Reorganize compute docs and add sample code (#100253) 2022-03-17 18:45:21 -07:00
Anthony
7c73053f70
[Material] Use InkSparkle for splashFactory in ThemeData when useMaterial3 is true for Android non-web runtimes (#99882)
[Material] Use InkSparkle for splashFactory in ThemeData when useMaterial3 is true for Android non-web runtimes (#99882)
2022-03-17 20:49:42 -04:00
Jonah Williams
984d8a8b5a
Revert "[framework] don't hit test for system nav bar or system chrome on desktop" (#100263) 2022-03-17 16:55:24 -07:00
Justin McCandless
30846de3ec
Material text selection menu should not show pointer cursor (#100248) 2022-03-17 16:50:15 -07:00
Dan Field
ff74557c3a
Specify destination when building for macOS (#100315)
Fixes #86590
2022-03-17 16:39:05 -07:00
Jesús S Guerrero
03b4f2bf50
[flutter_tools] process exception during linux_doctor is handled (#100159) 2022-03-17 16:15:22 -07:00
Danny Tuppeny
b39a9473f8
Handle Flutter.Error events and disable structure errors for noDebug mode (#100149) 2022-03-17 16:05:21 -07:00
Darren Austin
6ec0b83580
Add support for surface tint color overlays to Material widget. (#100036) 2022-03-17 15:58:24 -07:00
Christopher Fujino
e99a66a47e
[flutter_tools] check if stream is open before sending message in ios device (#99947) 2022-03-17 15:55:24 -07:00
Kate Lovett
2386fd90c9
Disable post-submit Gold failures entirely (#100332) 2022-03-17 17:07:02 -05:00
jellynoone
3c6b760e4c
Refractor compute (#99527) 2022-03-17 13:40:10 -07:00
Liam Appelbe
1d2f9c975b
Reintroduce the ability to override the coverage formatter (#100320) 2022-03-17 13:38:36 -07:00
Christopher Fujino
0d83e80104
[flutter_tools] Null safe update packages (#99357) 2022-03-17 13:35:17 -07:00
Yegor
c2409797ff
Roll chrome 96 attempt 2 (#100073)
* [web] roll Chromium dep to 96.2

Roll Chromium 96.2.

This is the second attempt to roll it. The previous attempt
(https://github.com/flutter/flutter/pull/99725) failed due to a LUCI
cache issue.

* cache-bust CIPD dependency by changing its name
* specify chrome_and_driver version in canvaskit tests
* fix CRC corruption in kTransparentImage
2022-03-17 13:23:43 -07:00
Emmanuel Garcia
d92fedcccb
Reland: "Always use texture layer when displaying an Android view" (#100237) 2022-03-17 12:46:26 -07:00
Chris Bracken
a618ca27a7
[macOS] Enable universal binary builds by default (#100271)
This changes the default build architectures for Flutter macOS apps to
x86_64 and arm64. Previously, we manually excluded arm64 builds via the
EXCLUDE_ARCHS Xcode setting in Flutter's generated xcconfig file. This
eliminates setting EXCLUDE_ARCHS during the build and updates the
default architectures in the tool and in the macos_assemble.sh wrapper.

Issue: https://github.com/flutter/flutter/issues/97681
Umbrella issue: https://github.com/flutter/flutter/issues/60113
2022-03-17 12:28:39 -07:00
Kate Lovett
7f241ba3fa
Disable post-submit failures (#100308) 2022-03-17 11:58:26 -05:00
Brian Quinlan
f6c4c3df19
Remove unnecessary ignore: override_on_non_overriding_member (#99793) 2022-03-16 19:10:17 -07:00
Harsh Bhikadia
fece72cac7
docs(flutter_test): fix mention of non-existing matchesSemanticsNode (#99659) 2022-03-16 18:55:18 -07:00
Taha Tesser
1cd4eebf47
Add missing expansionTileTheme theme copyWith test (#100165) 2022-03-16 11:25:17 -07:00
Gary Qian
63ff7a199b
MigrateConfig and migrate integration testing base (#99092) 2022-03-16 11:10:22 -07:00