Commit graph

20356 commits

Author SHA1 Message Date
Jonah Williams 29898812d4
[framework] make hit slop based on device pointer kind for drag/pan/scale gestures (#64267)
Currently the framework uses fairly large "hit slop" values to disambiguate taps from drags/pans. This makes sense on touch devices where the interaction is not very precise, on mice however it can feel as if the UI is lagging. This is immediately noticeable on our infra dashboard, where it takes almost half of a grid square of drag before the actual drag kicks in.

One potential solution is to always use smaller constants depending on whether the interaction is mouse or touch based. The only reasonable choice is to use the pointer device kind and not target platform - same platform can have different input sources. This requires exposing the pointer device kind in a few new places in several of the gesture detectors, and using the enum to compute the correct hit slop from an expanded set of constants.

This almost works, however there are a few places (notably ListViews) which uses the touch hit slop as a default value in scroll physics. It does not seem like it will be easy to disambiguate a user provided scroll physics constant from the default and/or adjust it somehow - this might require significant changes to scroll physics which I have left out of this PR.

This PR does not adjust:

kTouchSlop used in scroll_physics.dart's minFlingDistance
kTouchSlop used in PrimaryPointerGestureRecognizer/LongPressGestureRecognizer
2020-09-08 15:53:36 -07:00
Aman Gupta c33d8f4e0e
updated_title_property_apidocs (#63884) 2020-09-08 15:50:04 -07:00
Angjie Li d2fa384c31
Allow Developers to enable Accessibility testing on WebFlutterDriver and get the underlying webDriver (#65051) 2020-09-08 13:15:06 -07:00
Alex Fourman 46eacc5462
adds additional guidance on how to use of correctly. (#64791) 2020-09-08 12:50:04 -07:00
Im-Kevin 418e424794
Fix the test error of "Add finders for enableFlutterDriverExtension" and resubmit (#65276) 2020-09-08 12:10:05 -07:00
Ian Hickson 1a010de89f
Make Container always clip a decoration if it has a clip edge (#64840)
This allows us to rationalize the nullability of some of our APIs.
Prior to this we'd end up in a situation where Container assumed that
getClipPath would be non-null but Decoration was ok with return null.
2020-09-08 12:06:28 -07:00
engine-flutter-autoroll 31e5db7a5c
Roll Engine from ac8b9c4c52ea to d1d848e8421e (15 revisions) (#65275)
* 30b829e7e Populates fuchsia node actions in semantics updates. (flutter/engine#20451)

* c2e70109f Roll Skia from 1ee21cdfb6fe to 6763a713f957 (1 revision) (flutter/engine#20982)

* 841401db8 restore FML_DCHECK removed due to a code reviewing error (flutter/engine#20953)

* 367c6dbd1 Don't use GetTaskQueueId() in rasterizer as it breaks Fuchsia (flutter/engine#20983)

* b22a8c69d Let FlutterActivity/Fragment/FragmentActivity have an app bundle path override instead of eager resolving during construction (flutter/engine#20769)

* 0f0ae681e Update test Dart code to pass the latest Dart analyzer rules (flutter/engine#20986)

* d77dd3101 Manual roll of Dart b29f228f62...016e8880f0 (flutter/engine#20967)

* c7b3d5304 Roll Fuchsia Mac SDK from gOI3W1UNU... to EN2ycWLxi... (flutter/engine#20985)

* 6a6986da4 improve sensitivity of BackdropFilter web tests (flutter/engine#20915)

* 9fc9cb2b9 Roll Dart SDK from 016e8880f0ab to 0f0cff3922ad (7 revisions) (flutter/engine#20990)

* 242d52207 [Android R] Sync keyboard animation with view insets vs Android 11/R/API 30 WindowInsetsAnimation (flutter/engine#20843)

* b4e089639 Roll Fuchsia Linux SDK from 81O8Kg_Rw... to A0PKwETay... (flutter/engine#20998)

* d77c4e540 adjust blur radius for HTML to match CanvasKit (flutter/engine#20840)

* 0628492e7 Roll Dart SDK from 0f0cff3922ad to f3a9ca88b664 (1 revision) (flutter/engine#21000)

* d1d848e84 Roll Fuchsia Mac SDK from EN2ycWLxi... to sih5f60Gt... (flutter/engine#20999)
2020-09-08 12:06:01 -07:00
chunhtai 9cb2d4d65c
Fixed the sliver appbar to have a fixed traversal order (#65049) 2020-09-08 12:05:02 -07:00
Per Classon 0bb1e573fc
Revert "Add DataTableTheme to allow for themable DataTables (#64316)" (#65382)
This reverts commit cb4b867721.
2020-09-08 15:28:13 +02:00
Ian Hickson e10bdbbd9d
Fix RangeMaintainingScrollPhysics (#65135) 2020-09-07 11:40:03 -07:00
engine-flutter-autoroll 4732a214a7
Roll Engine from 3f05b521b939 to ac8b9c4c52ea (8 revisions) (#65216) 2020-09-04 18:05:02 -07:00
Jim Graham 9f4d4a5c59
re-enable the post_backdrop_filter test with CPU/GPU measurements (#65201) 2020-09-04 18:00:02 -07:00
Jonah Williams 14af5bbe1e
Revert "Add finders for enableFlutterDriverExtension (#64308)" (#65273)
This reverts commit db4dda2052.
2020-09-04 17:01:30 -07:00
Im-Kevin db4dda2052
Add finders for enableFlutterDriverExtension (#64308) 2020-09-04 14:50:02 -07:00
Zachary Anderson 02d0163244
Revert "ScaffoldMessenger (#64101)" (#65257)
This reverts commit 48f1a0a8d5.
2020-09-04 13:46:53 -07:00
Jonah Williams 9248fda410
[flutter_tools] add EACCES to list of immediate exit tool conditions (#65125)
Similar to the permission denied error on Windows, this is not resolvable by the tool.
2020-09-03 16:08:01 -07:00
Kate Lovett 48f1a0a8d5
ScaffoldMessenger (#64101) 2020-09-03 15:55:04 -07:00
engine-flutter-autoroll b6e92cfcc5
Roll Engine from 165abef0a2cb to 3f05b521b939 (45 revisions) (#65196)
* 5e54c707e Reland: Enable hybrid composition by default on Android (#20722) (flutter/engine#20864)

* 939871799 Roll Skia from db5582b71116 to 44e96bee4b6a (4 revisions) (flutter/engine#20908)

* 5f49a9549 Add auto plugin registration to FlutterFragmentActivity as well (flutter/engine#20865)

* c4c4f341b Wait for first frame before checking layer tree (flutter/engine#20910)

* 0773bf0bd Roll Skia from 44e96bee4b6a to 3913d3e137ed (2 revisions) (flutter/engine#20909)

* 8ec8af75a [windows] Add horizontal scroll support (flutter/engine#20668)

* 1bd9b8e85 Reset Shell::weak_factory_gpu_ on the raster thread (flutter/engine#20869)

* d67923feb Pass text input key events to the EventResponder if they do not yield characters (flutter/engine#20912)

* abe10d102 Roll Dart SDK from 84c3eacc7ba0 to 6eab35f49cbb (2 revisions) (flutter/engine#20913)

* 101316b76 [web] migrate from e2e to integration_test (flutter/engine#20914)

* 1f52ec378 Roll Dart SDK from 6eab35f49cbb to 2a5f37d25453 (1 revision) (flutter/engine#20917)

* 80190580d Default C++ wrapper templates to EncodableValue (flutter/engine#20760)

* 5f3ec38c2 Roll Fuchsia Mac SDK from sI2DAAmSI... to waj2pOhDh... (flutter/engine#20919)

* a65102097 Roll Fuchsia Linux SDK from _SVZn8uN2... to 9tLNFbjA1... (flutter/engine#20920)

* 696c2aafe Roll Skia from 3913d3e137ed to 7b46300fe4ff (4 revisions) (flutter/engine#20924)

* 95f2b7272 Create root isolate asynchronously (flutter/engine#20142)

* 58a620765 Adds fuchsia node roles to accessibility bridge updates. (flutter/engine#20385)

* a76214307 Roll Dart SDK from 2a5f37d25453 to e8e0d5a539fb (3 revisions) (flutter/engine#20928)

* 49d680532 Ensure all images are closed in FlutterImageView (flutter/engine#20842)

* d67bda725 Image.toByteData and Picture.toImage implementations (#3) (flutter/engine#20750)

* 96efe3927 Revert "Adds fuchsia node roles to accessibility bridge updates. (#20385)" (flutter/engine#20936)

* 5585ed990 Revert "Create root isolate asynchronously (#20142)" (flutter/engine#20937)

* f6270c041 Roll Dart SDK from e8e0d5a539fb to b29f228f62e2 (3 revisions) (flutter/engine#20939)

* 15bf1bbf6 [Android R] Integrate DisplayCutouts into viewportMetrics (flutter/engine#20921)

* 615e66801 Clear the GL context only after submitting the frame (flutter/engine#20931)

* ca989b8ae Roll Skia from 7b46300fe4ff to 1338a37a1add (16 revisions) (flutter/engine#20943)

* 8f3f71145 Roll Fuchsia Linux SDK from 9tLNFbjA1... to knpSoAoZq... (flutter/engine#20944)

* 873c00793 Log exception in addition to the stack trace for unhandled exceptions. (flutter/engine#20935)

* d761629cb Roll Skia from 1338a37a1add to 8fa3b4e8cde5 (6 revisions) (flutter/engine#20949)

* f6920dae5 Roll Skia from 8fa3b4e8cde5 to e9a9ad908226 (5 revisions) (flutter/engine#20952)

* 634e499bc Use hint freed specifically for image disposal (flutter/engine#20754)

* c700479db Revert external size changes to Picture (flutter/engine#20950)

* 435379757 Roll Skia from e9a9ad908226 to 3d1d636cd839 (6 revisions) (flutter/engine#20955)

* 80f4481d2 renaming e2e tests to integration (flutter/engine#20954)

* 61e057aa5 Clear GL context before Gr context (flutter/engine#20957)

* f43c3d766 Roll Fuchsia Mac SDK from waj2pOhDh... to 0r88gDzUP... (flutter/engine#20958)

* 5a2db338e Roll Skia from 3d1d636cd839 to 683beccf6776 (13 revisions) (flutter/engine#20961)

* efb339f30 Only clear GL context after changing the thread configuration (flutter/engine#20965)

* 58d5132e0 Roll Fuchsia Linux SDK from knpSoAoZq... to odFvFQV9Z... (flutter/engine#20968)

* 3729fdb79 Roll Skia from 683beccf6776 to a66a9c31a318 (4 revisions) (flutter/engine#20969)

* 40fe7f359 Roll Fuchsia Mac SDK from 0r88gDzUP... to gOI3W1UNU... (flutter/engine#20970)

* e979c29a2 Roll Skia from a66a9c31a318 to be72801f29f9 (1 revision) (flutter/engine#20971)

* 6e8930b26 Roll Skia from be72801f29f9 to f8823b572600 (1 revision) (flutter/engine#20973)

* 68b7b8401 [fuchsia] Send trace events to system tracing on all configurations (flutter/engine#20974)

* 3f05b521b Always set the callback during Rasterizer setup (flutter/engine#20976)
2020-09-03 15:52:58 -07:00
Jonah Williams 30a0b5a50c
Revert "[flutter_tools] split project parsing/validation into separate function (#64814)" (#65202)
This reverts commit 8eed690442.
2020-09-03 14:25:29 -07:00
Jonah Williams 8eed690442
[flutter_tools] split project parsing/validation into separate function (#64814)
In order to share logic across build/archive/ipa commands, move the project parsing/validation into a different function. #64683
2020-09-03 14:14:52 -07:00
Christopher Fujino 34c977f610
remove flutter update-packages from tools-tests (#61593) 2020-09-03 13:49:26 -07:00
Jonah Williams 418681d6f1
[flutter_tools] allow disabling pwa from build command, fix run release build caching (#64587)
Fix run release/profile modes generating a full service worker.
2020-09-03 13:42:47 -07:00
Jaime Blasco 0699c18e99
[flutter_tool] [web] Remove x-frame-options header during debug (#62115)
Currently flutter run -d web creates a server with the x-frame-options: SAMEORIGIN added by default (shelf add it's by default). This doesn't allow you to use it inside a frame.

I am trying to build an embedded simulator in vscode and it requires using an iframe.

With this PR I remove the header for debug and profile mode.
2020-09-03 13:33:39 -07:00
Yuqian Li d7d1461f75
Increase simple animation delay and duration (#64002)
Previously, the CPU/GPU measurement using gauge happened after the
driver test is done. Now, the measurement happens within the driver
test. So we need to properly increase the delay and duration to get a
comparable reading as the old gauge measurements.
2020-09-03 13:25:19 -07:00
Yuqian Li 1135002b0f
Mark nonflaky tests as such (#65054)
Those 2 tests have been green for the last 10 runs
2020-09-03 12:46:24 -07:00
Jonah Williams bd3eee75f3
[flutter_tools] rethrow process exceptions as tool exit from gradle build (#64745)
The flutter tool is currently unable to detect missing permissions in gradle/gradle.bat that would cause a gradle build to fail via process exception. Rather than crashing and exiting, we can display the exception as an error message and tool exit.

While linux/macOS are able to add the +x bit, this is not possible on windows with our current file system/OS API. These crashes represent a substantial amount of crash reporting, but are otherwise not actionable on our end.
2020-09-03 11:55:55 -07:00
Kate Lovett 20936eeac4
Allow for arbitrary placement in SliverGrid (#64750) 2020-09-03 11:20:04 -07:00
Jonah Williams 08e3ed9e2d
[flutter_tools] prevent creation of android devices if adb is not located (#65184)
More work to prevent current #2 crash issue on stable. If adb is not located do not list/create android devices.
2020-09-03 11:01:43 -07:00
Sahand Akbarzadeh 33c619c9ac
fix Container.clipBehaviour, clips the shadow in decoration (#64362) 2020-09-03 10:40:03 -07:00
Jonah Williams a864080112
Revert "Roll Engine from 165abef0a2cb to e979c29a2a50 (42 revisions) (#65178)" (#65188)
This reverts commit eddf0a8abf.
2020-09-03 10:33:07 -07:00
Shi-Hao Hong b80b432555
Move gen_l10n into flutter_tools (#65025) 2020-09-03 09:26:58 -07:00
engine-flutter-autoroll eddf0a8abf
Roll Engine from 165abef0a2cb to e979c29a2a50 (42 revisions) (#65178)
* 5e54c707e Reland: Enable hybrid composition by default on Android (#20722) (flutter/engine#20864)

* 939871799 Roll Skia from db5582b71116 to 44e96bee4b6a (4 revisions) (flutter/engine#20908)

* 5f49a9549 Add auto plugin registration to FlutterFragmentActivity as well (flutter/engine#20865)

* c4c4f341b Wait for first frame before checking layer tree (flutter/engine#20910)

* 0773bf0bd Roll Skia from 44e96bee4b6a to 3913d3e137ed (2 revisions) (flutter/engine#20909)

* 8ec8af75a [windows] Add horizontal scroll support (flutter/engine#20668)

* 1bd9b8e85 Reset Shell::weak_factory_gpu_ on the raster thread (flutter/engine#20869)

* d67923feb Pass text input key events to the EventResponder if they do not yield characters (flutter/engine#20912)

* abe10d102 Roll Dart SDK from 84c3eacc7ba0 to 6eab35f49cbb (2 revisions) (flutter/engine#20913)

* 101316b76 [web] migrate from e2e to integration_test (flutter/engine#20914)

* 1f52ec378 Roll Dart SDK from 6eab35f49cbb to 2a5f37d25453 (1 revision) (flutter/engine#20917)

* 80190580d Default C++ wrapper templates to EncodableValue (flutter/engine#20760)

* 5f3ec38c2 Roll Fuchsia Mac SDK from sI2DAAmSI... to waj2pOhDh... (flutter/engine#20919)

* a65102097 Roll Fuchsia Linux SDK from _SVZn8uN2... to 9tLNFbjA1... (flutter/engine#20920)

* 696c2aafe Roll Skia from 3913d3e137ed to 7b46300fe4ff (4 revisions) (flutter/engine#20924)

* 95f2b7272 Create root isolate asynchronously (flutter/engine#20142)

* 58a620765 Adds fuchsia node roles to accessibility bridge updates. (flutter/engine#20385)

* a76214307 Roll Dart SDK from 2a5f37d25453 to e8e0d5a539fb (3 revisions) (flutter/engine#20928)

* 49d680532 Ensure all images are closed in FlutterImageView (flutter/engine#20842)

* d67bda725 Image.toByteData and Picture.toImage implementations (#3) (flutter/engine#20750)

* 96efe3927 Revert "Adds fuchsia node roles to accessibility bridge updates. (#20385)" (flutter/engine#20936)

* 5585ed990 Revert "Create root isolate asynchronously (#20142)" (flutter/engine#20937)

* f6270c041 Roll Dart SDK from e8e0d5a539fb to b29f228f62e2 (3 revisions) (flutter/engine#20939)

* 15bf1bbf6 [Android R] Integrate DisplayCutouts into viewportMetrics (flutter/engine#20921)

* 615e66801 Clear the GL context only after submitting the frame (flutter/engine#20931)

* ca989b8ae Roll Skia from 7b46300fe4ff to 1338a37a1add (16 revisions) (flutter/engine#20943)

* 8f3f71145 Roll Fuchsia Linux SDK from 9tLNFbjA1... to knpSoAoZq... (flutter/engine#20944)

* 873c00793 Log exception in addition to the stack trace for unhandled exceptions. (flutter/engine#20935)

* d761629cb Roll Skia from 1338a37a1add to 8fa3b4e8cde5 (6 revisions) (flutter/engine#20949)

* f6920dae5 Roll Skia from 8fa3b4e8cde5 to e9a9ad908226 (5 revisions) (flutter/engine#20952)

* 634e499bc Use hint freed specifically for image disposal (flutter/engine#20754)

* c700479db Revert external size changes to Picture (flutter/engine#20950)

* 435379757 Roll Skia from e9a9ad908226 to 3d1d636cd839 (6 revisions) (flutter/engine#20955)

* 80f4481d2 renaming e2e tests to integration (flutter/engine#20954)

* 61e057aa5 Clear GL context before Gr context (flutter/engine#20957)

* f43c3d766 Roll Fuchsia Mac SDK from waj2pOhDh... to 0r88gDzUP... (flutter/engine#20958)

* 5a2db338e Roll Skia from 3d1d636cd839 to 683beccf6776 (13 revisions) (flutter/engine#20961)

* efb339f30 Only clear GL context after changing the thread configuration (flutter/engine#20965)

* 58d5132e0 Roll Fuchsia Linux SDK from knpSoAoZq... to odFvFQV9Z... (flutter/engine#20968)

* 3729fdb79 Roll Skia from 683beccf6776 to a66a9c31a318 (4 revisions) (flutter/engine#20969)

* 40fe7f359 Roll Fuchsia Mac SDK from 0r88gDzUP... to gOI3W1UNU... (flutter/engine#20970)

* e979c29a2 Roll Skia from a66a9c31a318 to be72801f29f9 (1 revision) (flutter/engine#20971)
2020-09-03 09:22:01 -07:00
xster 2032a448ed
Update CupertinoIcons to cupertino_icons 1.0.0 based on SF Symbols (#65083) 2020-09-02 23:36:19 -07:00
Christopher Fujino 3c9315f9a5
update libimobiledevice and usbmuxd (#65140) 2020-09-02 18:58:34 -07:00
Jenn Magder ace54425e0
Add observatory Bonjour service to built iOS Info.plist bundle (#65138) 2020-09-02 18:47:56 -07:00
Christopher Fujino 020215bb4c
Update ios-deploy (#65139) 2020-09-02 18:35:05 -07:00
Jenn Magder 259deec221
Revert "Add observatory Bonjour service to built iOS Info.plist bundle (#65138)" (#65141)
This reverts commit 5e0aa8b9fc.
2020-09-02 18:31:45 -07:00
Jenn Magder 5e0aa8b9fc
Add observatory Bonjour service to built iOS Info.plist bundle (#65138) 2020-09-02 17:57:43 -07:00
Jonah Williams c034f1a1cc
[flutter_tools] fix screenshot command in release mode and help documentation (#65114)
Currently taking a screenshot in release mode crashes and is also not documented as a supported command. Fix both of these and add test cases.
2020-09-02 17:33:41 -07:00
includecmath 6d46ff7e9b
[flutter_tools] flutter run should allow exit when make choose for devices. (#64403) 2020-09-02 17:30:04 -07:00
Juyeong Lee 0b4dad6553
Update hintColor value for Material (#65036) 2020-09-02 16:55:05 -07:00
Jonah Williams d3fd62c843
[flutter_tools] exit with helpful message if where is missing on windows (#65112) 2020-09-02 16:50:04 -07:00
Smadey 68c1b441be
Clamp TabController animation value when calc _DragAnimation.value (#64715) 2020-09-02 16:45:06 -07:00
xubaolin 280e6d6c01
Remov redundant import of dart:math (#65060) 2020-09-02 16:40:04 -07:00
Kate Lovett ee69eebfbd
Update Gold for new endpoint (#64982) 2020-09-02 16:35:06 -07:00
gaaclarke 37de94d7d2
devicelab: started averaging startup time for ios test (#64978) 2020-09-02 16:35:03 -07:00
Jenn Magder 2e67bf2e32
Require xcode_backend.sh arguments (introduced in Flutter v0.0.7) (#65124) 2020-09-02 16:33:26 -07:00
Tom Rivoire 2f96d1f026
Fix contentPadding documentation accent (#65094) 2020-09-02 15:41:19 -07:00
Ray Rischpater, KF6GPE 414c0d8101
Fix per https://github.com/probot/no-response/issues/25 (#65042) 2020-09-02 15:40:10 -07:00
Per Classon cb4b867721
Add DataTableTheme to allow for themable DataTables (#64316) 2020-09-02 15:40:06 -07:00