Commit graph

21000 commits

Author SHA1 Message Date
Jonah Williams 1c976933f3
[flutter_tools] support Android Studio 4.1 on Windows (#67992)
Android Studio 4.1 moved the location of the .home file on Windows which is used to located the install directory. This functionality is important because it is how we locate and discover the Android SDK functionality, as well as the appropriate JRE.

fixes #67986
2020-10-13 11:33:26 -07:00
Miguel Beltran 1aaa455f1b
Fix for "Pass RouteSettings to the internal Route in showCupertinoModalPopup" (#67990) 2020-10-13 11:32:20 -07:00
xubaolin 4982555982
Add more unit test cases for EditableText widget (#66889) 2020-10-13 11:32:03 -07:00
Jonah Williams 37ebe3d82a
Revert "prevent pageView scrolling when calling ensureVisible (#67988)" (#68036)
This reverts commit 62cf4dbf10.
2020-10-13 10:52:23 -07:00
Ren You a57f45e080
Revert "More EditableText docs (#66864)" (#68025)
This reverts commit daa6b2cc29.
2020-10-13 09:08:48 -07:00
xubaolin 62cf4dbf10
prevent pageView scrolling when calling ensureVisible (#67988) 2020-10-12 23:12:02 -07:00
engine-flutter-autoroll 625ffcaaa6
Roll Engine from c2938d06b193 to 663440688996 (2 revisions) (#67987) 2020-10-12 22:07:02 -07:00
Nobuhiro Tabuki 1e180062aa
[flutter_tools] Support IntelliJ 2020.1 and later on Linux and Windows (#58853)
This PR will update IntelliJ IDEA/Community validation logic for 2020.1 and later on Linux and Windows.
2020-10-12 22:03:36 -07:00
engine-flutter-autoroll 081c47b83d
Roll Engine from 11d756a62ed0 to c2938d06b193 (27 revisions) (#67983)
* 85b0031f7 Migration to PlatformDispatcher and multi-window (flutter/engine#20496)

* 0d151816c Remove uses of Dart VM bytecode mode from Flutter engine (flutter/engine#21741)

* 8be6cc039 Roll Skia from 88cda17bbeb8 to 61003cde7688 (4 revisions) (flutter/engine#21744)

* a2046aeb6 Revert "fix On iOS, dialog titles are announced twice (#19826)" (flutter/engine#21714)

* 3bd695b18 Roll Skia from 61003cde7688 to 13fc260c7080 (1 revision) (flutter/engine#21746)

* ca250c972 Roll Fuchsia Mac SDK from lqn8xmlDn... to gzhbqRUap... (flutter/engine#21749)

* 7f0e17b67 Roll Skia from 13fc260c7080 to aa64c352b349 (1 revision) (flutter/engine#21752)

* d97e74c7c Roll Fuchsia Linux SDK from EBX49sN_X... to YRTc9YoiB... (flutter/engine#21753)

* 7fc1a0386 Roll Skia from aa64c352b349 to d71dc2d25b8b (1 revision) (flutter/engine#21758)

* a3f3f989a Roll Fuchsia Mac SDK from gzhbqRUap... to _0R2HD4c8... (flutter/engine#21759)

* d4b8d676f Roll Fuchsia Linux SDK from YRTc9YoiB... to Nw5-0_sVF... (flutter/engine#21760)

* 910ce92e6 Roll Fuchsia Mac SDK from _0R2HD4c8... to 82ankF-Ht... (flutter/engine#21762)

* bd03014c2 Roll Fuchsia Mac SDK from 82ankF-Ht... to FFpTJfmj1... (flutter/engine#21768)

* f230fded7 Use buildroot clang for scenario app (flutter/engine#21690)

* 766d68282 Roll Fuchsia Linux SDK from Nw5-0_sVF... to h-DeV4tgE... (flutter/engine#21771)

* cff4ee74a Roll Skia from d71dc2d25b8b to ceb6214a556a (5 revisions) (flutter/engine#21772)

* fd1ba9ccf Ignore analysis warning for doc comment (flutter/engine#21773)

* 978cfd6d5 Roll Skia from ceb6214a556a to 9213e610ed92 (8 revisions) (flutter/engine#21774)

* 106842989 Roll Dart SDK from 06536d68ca0f to e256855d07ba (6 revisions) (flutter/engine#21775)

* 190fd8eb5 Reland "Create root isolate asynchronously (#20142)" (flutter/engine#21747)

* 10ed56318 Roll Skia from 9213e610ed92 to 840e8ea7403e (11 revisions) (flutter/engine#21779)

* e18cd9687 Roll Skia from 840e8ea7403e to ab6e62c131e9 (7 revisions) (flutter/engine#21783)

* 931a04683 Fix documentation build for window changes. (flutter/engine#21780)

* 38d8ebaa4 E2e screenshot tests2 (flutter/engine#21383)

* d912d502d [null-safety] fix build rule to produce sound dill (flutter/engine#21784)

* 05d97932b Extract a TextRange class for selection (flutter/engine#21722)

* c2938d06b Revert "Migration to PlatformDispatcher and multi-window #20496" (flutter/engine#21792)
2020-10-12 21:03:20 -07:00
Jonah Williams ac751cc50c
[flutter_tools] verify checksum of downloaded artifacts (#67839)
All of the network requests from google cloud storage include an x-goog-hash header which contains an MD5 checksum. If present, use to validate that the downloaded binary is valid. This will rule out corrupt files as the cause of getting started crashers in the flutter_tool.

#38980

This does not fully resolve the above issue, because while we can check if the checksum matches what was expected from cloud storage, this A) may not necessarily be present and B) may not match up to what should be uploaded as part of the engine build process.

But when life gives you lemons you hash those lemons using an outdated hashing algorithm.
2020-10-12 17:44:23 -07:00
Jonah Williams eb24393efe
remove missing argument (#67974) 2020-10-12 17:18:09 -07:00
Jonah Williams 5dfe7e6d51
[flutter_tools] attempt to stabilize hot restart benchmark the old fashioned way (#67971)
A change which sped up hot restart locally caused many of the devicelab measures to regress. I think this is because we do not measure when the isolate is actually "ready", so starting a reload or restart prematurely can cause time spent doing initialization to be registered as part of the reload operation.

A fix for this would be to have the framework include some sort of "initialization complete" event ... but it is not clear what the correct trigger would be. Perhaps after the first frame is successfully registered?

(9a3a0dc caused the benchmark regression - possibly since we spend less time syncing files now so we start the restart earlier)
2020-10-12 17:00:26 -07:00
Shi-Hao Hong 46238de8c5
[NNBD] Migrate some Material tests to NNBD (#67887)
Migrates the following files to NNBD: 
* input_decorator_test.dart
* list_tile_test.dart
* localizations_test.dart
* material_button_test.dart
* material_state_property_test.dart
* material_test.dart
* mergeable_material_test.dart
2020-10-13 07:57:23 +08:00
Shi-Hao Hong 244f5ab598
Expose date symbols and patterns for en_US in framework (#67900)
* Expose date symbols and patterns for en_US in framework
2020-10-13 07:56:10 +08:00
Jonah Williams 8aee75f645
Revert "Pass RouteSettings to the internal Route in showCupertinoModalPopup (#56024)" (#67969)
This reverts commit da58f5e6fe.
2020-10-12 16:09:20 -07:00
Miguel Beltran da58f5e6fe
Pass RouteSettings to the internal Route in showCupertinoModalPopup (#56024) 2020-10-12 15:53:54 -07:00
Jonah Williams 18bb4d7254
Revert "[flutter_tools] reland: fold process resolution logic into the flutter tool (#67957)" (#67968)
This reverts commit bd8138797e.
2020-10-12 15:53:16 -07:00
Jonah Williams 52f8b89c0e
[flutter_tools] dont allow creating package name that is invalid (#67786)
According to https://dart.dev/tools/pub/pubspec#name , uppercase is not permitted for package names.
2020-10-12 15:38:23 -07:00
Jonah Williams bd8138797e
[flutter_tools] reland: fold process resolution logic into the flutter tool (#67957)
Reland of #67669

The flutter tool has a number of crashes on stable where an ArgumentError is thrown due to the process manager not being able to resolve an executable.

So that we can adjust/modify this logic, fold it into flutter and add some additional logging.
caches the resolved executable per target directory, to avoid repeated look ups.
Instead of throwing an argument error, attempts to run the executable as given if an exact path can't be found
Accept files or symlinks for the executable path.
user where/which to resolve path instead of package:process logic.
2020-10-12 15:37:02 -07:00
Jonah Williams c606f044d7
[gestures] make stylus pointer types use touch pan/drag slop (#67885) 2020-10-12 15:20:50 -07:00
Dan Field b6c56fdeaf
Add test for TabBarView (#67799) 2020-10-12 14:25:17 -07:00
Hans Muller 6219b30850
Replace obsolete FlatButton reference in flutter_driver extension_test.dart (#67952) 2020-10-12 14:22:13 -07:00
Kate Lovett 9464661a98
Fix sample code (#67940) 2020-10-12 14:22:03 -07:00
Anurag Roy 7f1540f323
Add contentPadding property for RadioListTile (#67438)
Exposes contentPadding property for RadioListTile from its appropriate ListTile.
2020-10-12 14:22:01 -07:00
Michael Goderbauer 053ebf2c08
Make CupertinoTabScaffold restorable (#67770) 2020-10-12 14:17:02 -07:00
LongCatIsLooong daa6b2cc29
More EditableText docs (#66864) 2020-10-12 14:12:06 -07:00
xubaolin dd41f41f34
CupertinoTextField should not accept requestFocus when disabled (#65235) 2020-10-12 14:07:05 -07:00
Jonah Williams 408cd71d82
[flutter_tools] check asset files while the tool waits for the frontend_server compile (#67826)
On every hot reload, the flutter tool must file stat each asset in the bundle. With a large number of assets or a slow file system, this can take 20 - 30 ms. Do this operation while the flutter tool is waiting for a response from the frontend_server.

No tests updated since this is only a timing update. Any difference in behavior will be shown on benchmarks
2020-10-12 14:06:40 -07:00
Jonah Williams 354e2a57b1
Revert "[flutter_tools] fold executable resolution into flutter (#67669)" (#67954)
This reverts commit 10c78c264a.
2020-10-12 13:15:39 -07:00
Jonah Williams 10c78c264a
[flutter_tools] fold executable resolution into flutter (#67669)
The flutter tool has a number of crashes on stable where an ArgumentError is thrown due to the process manager not being able to resolve an executable. Fold the resolution logic into the tool and use where/which instead of the package:process specific logic.
2020-10-12 12:51:37 -07:00
Jonah Williams ac614de7ac
[flutter_tools] validate that SkSL bundle path exists (#67883)
Fixes #61772

tool exit if there is no file at the path provided when building/running with sksl
2020-10-12 12:49:51 -07:00
Jonah Williams fd11d149f7
[flutter_tools] teach flutter drive to uninstall if install fails (#67936)
Work towards #39925

Currently flutter run will uninstall and reinstall if the initial install fails and the APK was previously installed. Allow drive to share this same logic by moving it into installApp and out of startApp.

This should reduce the occurrence of the error in the devicelab.
2020-10-12 12:49:36 -07:00
Sergey Solodukhin 3e069a433b
fix issue #55400 PopupMenuButton positions menu incorrectly with nest… (#65832) 2020-10-12 11:52:04 -07:00
Darren Austin 7ce0dce2e5
Migrate even more Material framework tests to null safety. (#67849) 2020-10-12 11:30:26 -07:00
nturgut fda735cf31
add links missed in the first pr (#67780) 2020-10-12 11:23:34 -07:00
Michael Goderbauer 18795b471e
Migrate some widget tests to NNBD (#67776) 2020-10-12 11:18:52 -07:00
Jonah Williams b4e4e8d965
[flutter_tools] do not crash validator if intellij JAR file is missing (#67931)
This failure has been happening for a while but was covered by the overly broad catch. Removing that revealed that newer intellij versions have a different plugins file. The tool still can't find the file, but it won't crash now

Fixes #67918
2020-10-12 10:34:05 -07:00
Per Classon 7668f06ffe
[Material] Use primary color for selected rows and checkboxes in DataTable (#67919) 2020-10-12 10:17:03 -07:00
Justin McCandless b93f71f9c8
NNDB TextField tests (#67696)
Just another nnbd conversion PR.
2020-10-12 09:59:05 -07:00
Sam Rawlins 23c7ee9deb
Bump meta to 1.3.0-nullsafety.4 (#67744) 2020-10-12 09:50:30 -07:00
Jonah Williams 10a1a7016a
[flutter_tool] prepend module name on Windows pwr shell (#67801)
In case different powershell module is installed over the default name. Fixes #22896
2020-10-12 09:49:41 -07:00
nturgut 0bc87a5816
make the new e2e tests blocker (#67788) 2020-10-12 09:48:24 -07:00
Jonah Williams 0afddf3578
[flutter_tools] use fixed entry for dill uploads (#67837)
For historical reasons, the flutter tool uploads dill files to paths based on the entrypoint URI. This isn't actually necessary, and the tool can use specific files : main.dart.incremental.dill for incremental dills, and main.dart.dill/main.dart.swap.dill for full dills. This allows hot restarting applications with an entrypoint outside of lib/ and simplifies the devFS code.

Fixes #63243
2020-10-12 09:47:41 -07:00
xubaolin 8538b4f546
Fix TextField bug when the formatter repeatedly format (#67892) 2020-10-12 09:37:03 -07:00
chunhtai 345188d40e
make Router.of nullable (#67683) 2020-10-12 09:32:07 -07:00
Jonah Williams 08576cb671
[flutter_tools] HACKTOBERFEST (#67882)
HACKTOBERFEST
2020-10-12 09:31:02 -07:00
xubaolin 8211aaa2ae
Fix ListTile assert when layout at zero size (#66798)
* Fix ListTile assert when layout at zero size #66636
2020-10-12 17:25:38 +08:00
xubaolin d914d5d2f9
Fix typos in the [BottomNavigationBar] document (#67811) 2020-10-12 02:22:01 -07:00
Alexandre Ardhuin eefcff900c
Final definite assignment (#67682) 2020-10-10 14:42:02 -07:00
Jonah Williams 1a9d635f64
[flutter_tools] remove --with-driver-test (#67783)
Remove flutter create --with-driver-test . Fixes #64095
2020-10-09 21:03:37 -07:00