Commit Graph

14181 Commits

Author SHA1 Message Date
Chris Bracken
8fa5c55e54 Match lerped values using moreOrLessEquals (#64908)
Several of our tests make use of numbers without an exact floating point
representation (frequently 0.x where x!=5) which, when scaled, also
scale the error. The end result is that some of these tests currently
implicitly rely on an implementation detail of floating point math and
are sensitive to differences in the ~15th decimal place.

This patch reduces the sensitivity of some of these tests, checking
values using `moreOrLessEquals` from the flutter_test package
rather than requiring en exact match.
2020-08-30 19:05:20 -07:00
Shi-Hao Hong
34541c3073 Revert "A benchmark test case for measuring scroll smoothness (#61998)" (#64883)
This reverts commit 12b7355da1.
2020-08-30 18:42:10 +08:00
Ming Lyu (CareF)
12b7355da1 A benchmark test case for measuring scroll smoothness (#61998) 2020-08-29 04:28:03 -07:00
LongCatIsLooong
fe55dc2b13 Reland "Prevent viewport.showOnScreen from scrolling the viewport if the specified Rect is already visible. (#56413)" reverted in #64091 (#64513) 2020-08-28 22:13:04 -07:00
Jonah Williams
2436de1391 Revert "Reland "Re-enable the Dart Development Service (DDS) (#64671)" (#64802)" (#64845)
This reverts commit eef0050d08.
2020-08-28 18:02:15 -07:00
Ben Konyi
eef0050d08 Reland "Re-enable the Dart Development Service (DDS) (#64671)" (#64802)
* Reland "Re-enable the Dart Development Service (DDS) (#64671)"

This reverts commit 2ae25cc2d7.

* Fix MDNS building Observatory URI with port 0 instead of forwarding the device port

* Added MDNS test
2020-08-28 16:18:35 -07:00
callumsteele4
e37b427a2a Fix Android autofill username hint docs (#64776) 2020-08-28 16:18:06 -07:00
gaowanqiu
619eccd2e3 Fix negative usableCrossAxisExtent in release mode (#64441) 2020-08-28 16:13:05 -07:00
xubaolin
c26c2363a0 Slider paint incorrectly when the track shape is rectangular (#64534) 2020-08-28 16:08:10 -07:00
Broccolism
f1a2357463 feat: Text constructor, overflow, and softWrap docs (#64175) 2020-08-28 16:08:06 -07:00
Broccolism
f690577f88 Update: Documentation for ListView constructor should warn about changing widget list (#63503) 2020-08-28 16:03:04 -07:00
Zachary Anderson
dff7ea1c4f Revert "Avoid thinning frameworks in iOS extensions (#64674)" (#64829)
This reverts commit ce9cde8c4e.
2020-08-28 15:23:22 -07:00
Paul Berry
60494b4c1e Remove unnecessary downcasts on numeric operations. (#64760) 2020-08-28 10:58:04 -07:00
Jenn Magder
ce9cde8c4e Avoid thinning frameworks in iOS extensions (#64674) 2020-08-28 10:43:04 -07:00
xubaolin
a3fe33af65 The OverscrollIndicator should not overflow the scrollable view's edge (#64239) 2020-08-28 10:38:05 -07:00
Justin McCandless
8f370dff65 SelectableText long press on iOS (#63994) 2020-08-28 10:33:05 -07:00
Ben Konyi
2ae25cc2d7 Revert "Re-enable the Dart Development Service (DDS) (#64671)" (#64797)
This reverts commit d7d12412e5.
2020-08-28 09:00:53 -07:00
Kate Lovett
cad4d1333e Fix Gold json for digest paramset (#64757) 2020-08-27 17:48:05 -07:00
Jonah Williams
5a4fa220e2 [flutter_tools] handle OsError thrown during azure detector (#64749) 2020-08-27 17:13:04 -07:00
Matt Carroll
57b6952471 Added support for lerpDuration() (#64668) 2020-08-27 16:48:05 -07:00
chunhtai
fbc15384bb Fixes router to not report route information when it is already up to… (#64596) 2020-08-27 16:43:05 -07:00
Ian Hickson
8a6a76a334 migrate rendering to nullsafety (#64621) 2020-08-27 16:38:10 -07:00
Ming Lyu (CareF)
dcdee4bb0d Add resampler unit test with widget (#64424) 2020-08-27 16:38:05 -07:00
Ben Konyi
d7d12412e5 Re-enable the Dart Development Service (DDS) (#64671)
This change re-enables DDS and outputs the DDS URI in place of the VM
service URI on the console. If --disable-dds is not provided,
--host-vmservice-port will be used to determine the port for DDS rather
than the host port for the VM service, which will instead be randomly
chosen.
2020-08-27 16:35:00 -07:00
Jonah Williams
d3515f5fb6 [flutter_tools] add analytics to code size, add more testing (#64578)
* [flutter_tools] add analytics to code size, add more testing

* add gradle case

* Update build_macos_test.dart

* move analytics to code size tooling

* Update analyze_size.dart

* fix analysis
2020-08-27 09:45:10 -07:00
Jonah Williams
401d401c59 [flutter_tools] reland: avoid creating Android Devices if AndroidSDK cannot be found (#64665)
Avoid creating AndroidDevice discovery if the SDK cannot be located. Previously the tool would use which/where adb, however this required us to handle the AndroidSdk class being potentially null - which required an additional layer of indirection around all access. Sometimes these were forgotten leading to NPEs.

In general, not much can be done with an Android Device if the actual SDK is not installed.

Reland with fixed code + tests for null SDK + adb in AndroidDeviceDiscovery
2020-08-27 09:44:31 -07:00
Mouad Debbar
e7a35a67ce [web] Enable word boundary tests (#64570) 2020-08-26 21:23:03 -07:00
younghwan
5559b6d0ab Update Visibility docs on maintainSize (#64148) 2020-08-26 20:48:04 -07:00
Haeseok Lee
86814cabc4 Fixed the description of the focusColor property included in input_decorator (#63981) 2020-08-26 20:43:05 -07:00
Alexander Brusher
39e7eeaed1 Disables tests failing due to new semantics flag. (#63595) 2020-08-26 20:38:05 -07:00
Remi Rousselet
68c31d3d09 Use a LinkedList to improve the performance of ChangeNotifier (#62330)
* Use a LinkedList in ChangeNotifier implementation to take O(N^2) notification time to O(N)
2020-08-26 11:34:03 -07:00
Jonah Williams
562986108e Revert "Reland: Increase threshold for usage of compute for utf8 decoding on large strings to 50 KB (#64498)" (#64652)
This reverts commit 54e2a0e694.
2020-08-26 10:51:09 -07:00
Kenzie Schmoll
8c8b91069d Fix typo in flutter_tools --analyze-size output. (#64592) 2020-08-26 06:03:05 -07:00
Ian Hickson
4fcc2617d5 Migrate physics tests to NNBD (#64584) 2020-08-26 00:46:03 -07:00
Dan Field
d0596582fe Fix tests that use bogus objects, update TestImageInfo interface (#64599) 2020-08-25 23:26:06 -07:00
Jenn Magder
f5187535d5 Revert "[flutter_tools] avoid creating Android Devices if AndroidSDK cannot be found (#64524)" (#64602)
This reverts commit 47596c6203.
2020-08-25 17:55:58 -07:00
Greg Spencer
c8bbb522c5 Protect against null context in release mode (#64474) 2020-08-25 13:01:03 -07:00
LongCatIsLooong
6536f65048 Revert "Warns when single line text fields overflow (#63639)" (#64573)
This reverts commit 0ab5ecc86b.
2020-08-25 11:11:15 -07:00
Jonah Williams
47596c6203 [flutter_tools] avoid creating Android Devices if AndroidSDK cannot be found (#64524)
Avoid creating AndroidDevice discovery if the SDK cannot be located. Previously the tool would use which/where adb, however this required us to handle the AndroidSdk class being potentially null - which required an additional layer of indirection around all access. Sometimes these were forgotten leading to NPEs.

In general, not much can be done with an Android Device if the actual SDK is not installed.
2020-08-25 11:08:27 -07:00
Jonah Williams
f0a3cbace3 [flutter_tools] handle FileSystemException thrown when attempting to decode stamp file (#64559)
Fixes #64246

If decoding the string contents of a stamp file fails, treat it as if the stamp file is missing. This is always safe to do, since at worst it downloads more artifacts. The files could end up corrupted if they were edited by another program, for example
2020-08-25 10:58:21 -07:00
Jonah Williams
23032d772d [flutter_tools] refactor artifact downloading to retry zip exceptions. (#64512) 2020-08-25 10:06:04 -07:00
chunhtai
39d7a019c1 Reland "fix wrap intrinsic height calculation (#63420)" (#64276) 2020-08-25 10:01:07 -07:00
Jonah Williams
059de1537e [flutter_tools] support code size tooling on iOS, linux, windows, macOS, and Android on Windows (#63610)
Adds support for size analysis on iOS, macOS, linux, and Windows - using an uncompressed directory based approach. The output format is not currently specified.

Adds support for size analysis on android on windows, switching to package:archive

Updates the console format to display as a tree, allowing longer paths. Increases the number of dart libraries shown (to avoid only ever printing the flutter/dart:ui libraries, which dominate the size)
2020-08-25 10:00:24 -07:00
stuartmorgan
dd0c881275 [windows] Update plugin template (#64521)
The pointer-argument-based version of Success() is deprecated; this
updates the template to use the new reference-based version (which
allows for inline construction of the response value).

Part of https://github.com/flutter/flutter/issues/63975
2020-08-25 08:30:05 -07:00
Mouad Debbar
707f995de3 [web] Fix and enable editable_text_test.dart (#64516) 2020-08-25 04:51:03 -07:00
LongCatIsLooong
0ab5ecc86b Warns when single line text fields overflow (#63639) 2020-08-24 18:16:05 -07:00
Jenn Magder
e960d773ee Change iOS plugin simulator archs from allow list to deny list (#64504) 2020-08-24 17:48:05 -07:00
Jonah Williams
54e2a0e694 Reland: Increase threshold for usage of compute for utf8 decoding on large strings to 50 KB (#64498) 2020-08-24 17:01:04 -07:00
xubaolin
f44f43358f Fix bug when tapping ListTitle with CheckboxListTile tristate enable (#63925)
* fix bug when tap ListTitle when tristate enable #63846

* fix bug when tap ListTitle when tristate enable #63846

* code style

* improve the unit test case

* bow to convention
2020-08-24 15:31:33 -07:00
Jonah Williams
41e553bbfc [flutter_tools] migrate flutter_goldens, flutter_goldens client to null-safety (#64201) 2020-08-24 15:31:05 -07:00