Commit graph

21308 commits

Author SHA1 Message Date
Konstantin Scheglov 7b86be228e
Use runZonedGuarded() instead of deprecated onError. (#69160) 2020-10-28 08:43:31 -07:00
Greg Spencer 55289324c6
Remove nullOk in MediaQuery.of (#68736)
Adds MediaQuery.maybeOf to replace calling MediaQuery.of(context, nullOk: true), and removes the nullOk parameter. Also changes MediaQuery.of to return a non-nullable value, and removes many instances of the ! operator, reducing the possible places where a null dereference could occur.
2020-10-28 07:56:41 -07:00
Daniel Edrisian 35a94f70e1
Adaptive progress indicator (#69143) 2020-10-27 23:47:04 -07:00
Jacob MacDonald fb508db94d
allow 2.12 prerelease sdks in flutter_goldens[_client] (#69148) 2020-10-27 17:16:24 -07:00
Kate Lovett b86fa13235
Add horizontal gesture support for CupertinoScrollbar (#69063) 2020-10-27 15:57:03 -07:00
Daniel Edrisian d3a8b03574
Adaptive TextField (#68918) 2020-10-27 15:27:03 -07:00
Jonah Williams 9e5e763ebe
[flutter_tools] document flutter root initialization (#67884)
Moves the flutter root initialization to a static method on the cache. This is a small step towards making this functionality non-static and instead injected like normal members - however, completely removing all of the static-ness at once was too large of a change.

Instead document and add unit tests and change existing code as little as possible.

#47161
2020-10-27 15:20:07 -07:00
Michael Goderbauer f5ce638959
Add Directionality.maybeOf (#69117) 2020-10-27 14:44:50 -07:00
Gildásio Filho 48a9fc13d5
Updated SearchDelegate to follow custom InputDecorationTheme (#55209)
Updated SearchDelegate to follow InputDecorationTheme
2020-10-27 14:08:43 -07:00
Anurag Roy cd690f9559
[flutter_tools] Add --verify-only flag to flutter upgrade (#68866)
* Add --verify-only flag for flutter upgrade
2020-10-27 14:06:39 -07:00
Jonah Williams 18f0a2288e
[flutter_tools] update to vm_service 5.2.0, update to dwds 7.0.0 (#69067)
Rolls in several fixes to web tooling, including better handling of absolute file imports. Updates to latest vm service to unblock null safety mode query

Co-authored-by: Gary Roumanis <grouma@google.com>
Co-authored-by: Anna Gringauze <annagrin@google.com>
2020-10-27 13:55:32 -07:00
Dan Field 36f9af3f55
reland driver vm_service migration (#69126)
* One more reland of "Driver vm service (#68654)" (#69074)" (#69077)" (#69089)"

This reverts commit e5814756a2.

* pub run test
2020-10-27 11:30:24 -07:00
Justin McCandless 09dc5599dd
Selecting spaces (#68227)
When attempting to select a space on mobile, Flutter will try to select the word before the space too, if one exists.
2020-10-27 11:30:07 -07:00
Yuqian Li 891bd95e1a
Add clipBehavior to BoxFit doc (#68662) 2020-10-27 11:07:04 -07:00
Jonah Williams e9b18c1d9c
[null-safety] fix the snippets (#69122) 2020-10-27 11:04:16 -07:00
Jonah Williams 8c3d564ded
[flutter_tools] fix test expectation in resident_runner.dart (#69121) 2020-10-27 10:11:02 -07:00
Justin McCandless c12d9b9c19
IME private command docs improvement (#68630)
Just a docs-only improvement in EditableText and text input.
2020-10-27 09:22:47 -07:00
Jonah Williams 3300a1bd68
[flutter_tools] eagerly set asset directory path, cache flutter views, simplify error handling (#68978)
Performs some small cleanup on the hot reload code path.

- Combines nested try/catch into single try catch, update on clause now that package:vm_service is used and Map does not need to be caught.
- Cache FlutterViews for the lifetime of the hot reload method handler
- Set asset directory path once during startup and remove conditional set during hot reload
2020-10-27 09:20:05 -07:00
Michael Goderbauer 95563ff197
Make WidgetsLocalizations.of non-nullable (#69055) 2020-10-27 09:16:41 -07:00
Justin McCandless 291ee94506
AutocompleteCore (#62927)
A new widget that chooses an item from a list based on text input. Just the core widget, with Material and Cupertino versions to come.
2020-10-27 08:58:52 -07:00
Jonah Williams 4b017b6220
remove unnecessary null aware operator (#69107) 2020-10-27 07:24:27 -07:00
Michael Goderbauer 9fb1c521b1
InheritedTheme updates (#69050) 2020-10-27 06:57:03 -07:00
Shi-Hao Hong d50bfd5f66
Fix null issue with dynamically updating from zero tabs for TabBar (#69005) 2020-10-27 06:52:04 -07:00
Michel Feinstein 60a58ab780
Update form.dart (#68968) 2020-10-27 06:47:04 -07:00
xubaolin b99443c7ff
Apply Desktop specs for Tooltip (#68681) 2020-10-27 06:42:03 -07:00
engine-flutter-autoroll f468fd6663
Roll Engine from 1857470267f1 to 64e659991025 (11 revisions) (#69085) 2020-10-27 06:37:07 -07:00
Daniel Edrisian e818c47059
Added CupertinoSearchTextField (#68074) 2020-10-27 06:37:03 -07:00
Dan Field e5814756a2
Revert "Revert "Revert "Driver vm service (#68654)" (#69074)" (#69077)" (#69089)
This reverts commit 05ab0eba19.
2020-10-27 01:47:03 -07:00
Dan Field 05ab0eba19
Revert "Revert "Driver vm service (#68654)" (#69074)" (#69077)
This reverts commit 19ce7a86af.
2020-10-26 19:22:25 -07:00
Jonah Williams 19ce7a86af
Revert "Driver vm service (#68654)" (#69074)
This reverts commit 3ecac303b4.

Co-authored-by: Dan Field <dfield@gmail.com>
2020-10-26 18:56:34 -07:00
Jonah Williams 6cd847c767
[flutter_tools] update test platform to use buildInfo instead of mode + additional params (#69033) 2020-10-26 18:50:17 -07:00
Dan Field 3ecac303b4
Driver vm service (#68654)
Migrate flutter_driver to use package:vm_service
2020-10-26 17:09:14 -07:00
Michel Feinstein e949ff54af
Error on FocusTraversalGroup or Focus docs (#68981) 2020-10-26 16:56:12 -07:00
Jonah Williams e0ec9a06dc
[flutter_tools] Make ApplicationPackageFactory inject dependencies for Android Builds (#67827)
* [flutter_tools] simplication of application store logic

* maybe return null

* fix install tests

* Clean up imports

* revert windows test

* remove unused import
2020-10-26 16:51:32 -07:00
chunhtai 6cfb86fbcb
Fix crash if update pages right after a navigator pop (#68923) 2020-10-26 16:50:54 -07:00
Michael Goderbauer 27e1efc159
Delay Route disposal until OverlayEntries are unmounted (#68913) 2020-10-26 16:22:37 -07:00
Jonah Williams e7b66ac7ad
[flutter_tools] do not include AS validator if android is not enabled (#69047) 2020-10-26 15:59:00 -07:00
Yegor 7a10b46ee0
Print errors in all build modes (#69046) 2020-10-26 15:57:02 -07:00
Jonah Williams 2e54c4a8ea
[flutter_tools] implement safe file copy with multiple fallbacks (#69000)
The tool observes a large number of unhandled exceptions during the file copy portion of flutter create. it is difficult to tell whether the permission issue is caused by the source/destination, or whether it is due to a bug in dart:io.

To work around this, implement a permission check for both the source and dest files. If either fails, the tool can exit with a more specific message.

If these checks pass, then perform the actual copy. If the copy fails, fallback to manually copying the bytes
2020-10-26 15:49:07 -07:00
Jonah Williams 8b973f01c4
[flutter_tools] add package_config.json to analyze_once_test.dart (#69059)
* [flutter_tools] add package_config.json to analyze_once_test.dart
2020-10-26 15:46:51 -07:00
MH Johnson 70aa1227c2
[Material] Fix BottomNavTheme.showSelectedLabels bug (#67342) 2020-10-26 14:47:02 -07:00
Jacob MacDonald 193fe3e980
Update null safe deps to prepare for the 2.12 sdk version (#69041)
* update pinned null safety deps

* run update-packages

* add http dep to devicelab package

* rerun update-packages
2020-10-26 14:31:13 -07:00
Jonah Williams b44696626c
[null-safety] add language version to freeform template (#69043) 2020-10-26 13:22:36 -07:00
Alexandre Ardhuin 17cdf5559d
enable unnecessary_string_escapes and use_raw_strings (#68302) (#69025) 2020-10-26 12:42:05 -07:00
engine-flutter-autoroll 6d271b9106
185747026 Roll Skia from aea82732415c to c493eabd56d0 (2 revisions) (flutter/engine#22118) (#69032) 2020-10-26 12:27:04 -07:00
Jonah Williams 183fe75d58
[flutter_tools] reland: drive service (#68887)
Overhaul of flutter drive in order to deliver a better experience, namely:

* flutter run and flutter drive now share more flags, so code paths that were previously only testable on run are now testable on drive.
* Removes web-initialize-platform as this is no longer used
* flutter drive correctly sets up a logger that shows native exceptions, by connecting to the vm service.
* VM service connection now provides access to memory info without launching devtools (only for debug/profile mode)

Web changes

* Passes on the one test in the repo, otherwise the webdriver code has been isolated as much as possible

Additional NNBD related bug fixes:

No longer passes --enable-experiment to the test script. (FYI @blasten ). earlier we might have assumed that the flutter gallery benchmarks would be migrated along side the app and flutter driver, but only the app under test needs to be migrated. The test scripts should never be run with the experiment.
2020-10-26 10:11:30 -07:00
engine-flutter-autoroll cf64f2e331
Roll Engine from e2c375084d08 to 42b3b0af6340 (5 revisions) (#69027) 2020-10-26 09:42:02 -07:00
Justin McCandless b76253b60a
minScale docs reference the need for a larger boundaryMargin when scaling below 1.0 (#68494) 2020-10-26 08:42:04 -07:00
engine-flutter-autoroll a676863939
e2c375084 Roll Dart SDK from 1897e02f5b1c to 96369fde1083 (2 revisions) (flutter/engine#22113) (#69002) 2020-10-26 08:37:06 -07:00
Justin McCandless c2bb928981
Proper light/dark colors, and test that text is not color of background (#67679) 2020-10-26 08:37:03 -07:00