Commit Graph

29153 Commits

Author SHA1 Message Date
Darren Austin
11f7ff0049 Complete the migration to the TextSelectionTheme by deprecating the opt-in flag and text selection properties in ThemeData. (#66482) 2020-09-24 12:13:00 -07:00
Michael Goderbauer
506998cff6 Allow futures that resolve to null in Future/StreamBuilder (#66506) 2020-09-24 10:04:11 -07:00
TheBiirb
2adb91895c Fixes typos in showDialog documentation (#66213)
* Fixes typos in showDialog documentation
2020-09-24 23:28:39 +08:00
Will Larche
67f51e8ec2 [Icons] Update icon version to point to file that iOS will prefer. (#66524) 2020-09-24 07:02:03 -07:00
Phil Quitslund
1fef5912cf disable pub lints (#66522)
* disable pub lints

* + comments
2020-09-23 21:37:08 -07:00
Greg Spencer
4fad739bf6 Change emoji in About dialog to be a divider (#66409) 2020-09-23 20:42:03 -07:00
Jonah Williams
90d83e37a6 [flutter_tools] register service worker after first frame event (#66082)
Registering the service worker immediately after the documented has loaded may cause SW initialization to compete with framework initialization. It was recommended to us that we defer the service worker setup until after the framework is done with setup, which should be sometime after the first frame.

To implement this, I augmented the binding setup to dispatch an event on the document after the binding has initialized. I don't see any obvious risks with this setup.

Fixes #66066
2020-09-23 18:58:05 -07:00
Yash Johri
9bfab77835 Changed title to label (#66186) 2020-09-23 18:57:03 -07:00
Jonah Williams
192f9e5eb4 Remove skipped tool test, remove integration shard from cirrus (#66503) 2020-09-23 17:27:06 -07:00
Jonah Williams
6642d8f16a [flutter_tools] enable single widget reload optimization by default on master (#66507)
This should be a mostly non breaking change for hot reload workflows that improves performance, but if you see anything odd with hot reload behavior on master please file a bug. This feature can also be disabled without any changes to the SDK with flutter config --no-single-widget-reload-optimization
2020-09-23 17:26:58 -07:00
godofredoc
57cda51f7e Fix gradle_plugin_light_apk test. (#66496) 2020-09-23 16:52:02 -07:00
Jonah Williams
faa4b6635a [flutter_tools] try deleting the web cache directory before copying new web sdk (#66461)
Delete the destination directory for the web sdk before copying the new contents. This might fix an error where the OS refuses to overwrite the files on dev
2020-09-23 16:45:20 -07:00
engine-flutter-autoroll
ca6fea5e87 Roll Engine from 53c0d0c02af0 to dd35b5b65917 (10 revisions) (#66497) 2020-09-23 16:12:04 -07:00
engine-flutter-autoroll
9bbc1e3997 53c0d0c02 Roll Skia from 3eb813e0cc13 to 18f4b1c7e31a (4 revisions) (flutter/engine#21351) (#66462) 2020-09-23 15:07:02 -07:00
Alexandre Ardhuin
29fae79c72 migrate some cupertino files to nullsafety (#66424)
* migrate some cupertino files to nullsafety

* address review comments
2020-09-23 23:12:42 +02:00
Jonah Williams
707aa49e42 [flutter_tools] flush UI thread tasks before finishing hot restart (#66417)
Improve our ability to measure the performance of hot restart. Also flush all UI thread tasks before calling the hot restart "complete" in benchmark mode.

If this is successful at stabilizing the benchmarks, this should be enabled for "normal" hot restart so that we can accurately track execution time.
2020-09-23 13:39:52 -07:00
Jenn Magder
f654346777 Check git commands in Flutter version check test (#66406) 2020-09-23 13:27:24 -07:00
Jonah Williams
fb8163260c [devicelab] increase timeout for cull bench (#66481) 2020-09-23 12:34:00 -07:00
Greg Spencer
bbd7b97664 Change the default visual density to be adaptive based on platform. (#66370)
Based on feedback from various desktop developers, and to be consistent between the defaults and the sample code, this PR switches the default for visual density in desktop themes to be compact instead of standard.

It also removes the same setting from the sample code generated by "flutter create" because it is no longer needed now that it is the default.
2020-09-23 11:14:58 -07:00
Jacob MacDonald
9cee75ba61 update to the latest null safe packages (#66384)
Updates all null safe dependencies to versions that allow 2.10 stable and 2.11 dev releases.

Also updates flutter_goldens and flutter_goldens_client to allow 2.11 dev.
2020-09-23 11:03:29 -07:00
TheBiirb
4813bd71b9 Updated README.md file of the hello_world example (#64766) 2020-09-23 10:57:03 -07:00
Jonah Williams
1d4e7cd52d [flutter_tools] do not add events to closed sink in throttle transform (#66468)
The throttle duration could delay past the point where the destination sink was closed. Check if it is closed before adding an event. Fixes a crash on dev: StateError: Bad State: Stream is already closed.
2020-09-23 10:40:39 -07:00
Emmanuel Garcia
fc1e764264 Expose enable-experiment in Flutter drive (#66311) 2020-09-23 10:38:02 -07:00
TheBiirb
1a9ea39ad7 Make Dismissible's HitTestBehavior an argument (#64379) 2020-09-23 10:02:05 -07:00
Shi-Hao Hong
8ed0ac5331 Update localizations (#65993) 2020-09-23 07:17:02 -07:00
Jonah Williams
51ededb92f [flutter_tools] reland: map file URIs to a multiroot scheme (#66405)
If a file scheme and one or more roots is provided, fall back to this mapping before the direct file path if the file path cannot be turned into a package URI.

Use URI representation so that the transformation is resilient to the org-dartlang-app scheme used by the web builds.

Fixes #66095
Fixes #66404
2020-09-23 07:03:59 -07:00
engine-flutter-autoroll
6b39acdc53 Roll Engine from 57ee3d4b3210 to 3e7ca5b86904 (2 revisions) (#66440) 2020-09-23 05:27:04 -07:00
Alexandre Ardhuin
10febea877 fix nullability issues (#66418) 2020-09-22 22:22:10 -07:00
Alexandre Ardhuin
45fa60eb3e migrate some cupertino files to nullsafety (#66024)
* migrate some cupertino files to nullsafety

* address review comments

* address review comments
2020-09-23 06:46:30 +02:00
Alexandre Ardhuin
71c1f6c3e4 enable lint unnecessary_nullable_for_final_variable_declarations (#66387) 2020-09-23 06:39:47 +02:00
engine-flutter-autoroll
97d6799331 57ee3d4b3 Roll Skia from 2b469ebd0627 to 3eb813e0cc13 (2 revisions) (flutter/engine#21343) (#66410) 2020-09-22 20:07:03 -07:00
Ming Lyu (CareF)
f681fcf32b migrate backdrop_filter_perf (#64482) 2020-09-22 19:52:02 -07:00
Hamdi Kahloun
bd90915999 Fix Semi Hidden helpText in showDatePicker (#65010)
Wrapping the spacing SizedBox in Flexible.
2020-09-22 19:25:34 -07:00
engine-flutter-autoroll
214dac9263 339528342 Roll Skia from c61c895393ea to 2b469ebd0627 (9 revisions) (flutter/engine#21340) (#66400) 2020-09-22 18:37:02 -07:00
LongCatIsLooong
525e76bc7c Positioning IME bars on iOS (#61981) 2020-09-22 18:32:05 -07:00
Jenn Magder
78e54dd46b Revert "[flutter_tools] map file Uri to multi-root scheme if provided (#66151)" (#66403)
This reverts commit af6ba86728.
2020-09-22 17:50:27 -07:00
Jonah Williams
f1472e1fc4 [flutter_tools] only lock if an upgrade/download will be performed (linux/macos) and output building messages to stderr (#65422)
Currently an invocation of flutter/dart will always attempt to acquire a lock. This can pose problems for tools that attempt to run multiple dart/flutter instances.

Instead update the lock logic (on Linux/macOS) so that we only attempt to acquire it if an update/snapshot needs to be performed. To avoid repeatedly performing downloads/snapshots if multiple flutter/dart invocations are fired off concurrently when an update needs to be performed, do a second check of the download/snapshot condition after the lock is released.

Additionally, moves all of the building/debug output to stderr on both the bash and batch scripts. This allows machine mode consumption of the tool to ignore needing to parse/handle the rebuild messages.
2020-09-22 17:44:08 -07:00
engine-flutter-autoroll
fce475bd0f Roll Engine from 4b8477d11573 to c62d6652992b (44 revisions) (#66398) 2020-09-22 17:22:03 -07:00
Gary Qian
eb5cc495b3 Provide defaulting for textScaleFactor when passing to dart:ui (#66375) 2020-09-22 17:17:04 -07:00
Jenn Magder
d5b715d7cb Stream logging from attached debugger on iOS 13+ (#66399) 2020-09-22 17:16:45 -07:00
Jenn Magder
658e6c8a8d Listen to Debug VM stream to get Stdout logs from VMService (#66310) 2020-09-22 17:12:02 -07:00
Yuqian Li
8e8acaac7a Add Overflow back with deprecation (#66305) 2020-09-22 17:07:04 -07:00
Juyeong Lee
33d015199f Fix CupertinoAlertDialog TextStyle (#64468) 2020-09-22 17:02:04 -07:00
Jonah Williams
943b41bd61 [flutter_tools] allow device classes to provide platform-specific interface for devFS Sync (#66266) 2020-09-22 16:57:04 -07:00
Aayan
1b60988f09 List tile docs (#65584) 2020-09-22 16:52:04 -07:00
Jonah Williams
af6ba86728 [flutter_tools] map file Uri to multi-root scheme if provided (#66151)
If a file scheme and one or more roots is provided, fall back to this mapping before the direct file path if the file path cannot be turned into a package URI.

Fixes #66095
2020-09-22 16:51:18 -07:00
Ben Konyi
a3b3d53d62 Revert "Revert "Ensure VmService instance is disposed after failed direct connection attempt (#66123)" (#66164)" (#66377)
This reverts commit 3e6863ab2b.
2020-09-22 16:29:13 -07:00
Dan Field
2102bb0364 Remove last FakeImage implementation (#66379) 2020-09-22 15:24:37 -07:00
Jenn Magder
4881b4b07c Revert "Stream logging from attached debugger on iOS (#66092) (#66390)" (#66397)
This reverts commit 2be4570d3a.
2020-09-22 15:15:56 -07:00
Jenn Magder
2be4570d3a Stream logging from attached debugger on iOS (#66092) (#66390) 2020-09-22 14:59:14 -07:00