Commit Graph

17556 Commits

Author SHA1 Message Date
Kate Lovett
8271539451 Conditionally apply clipping in StretchingOverscrollIndicator (#91389) 2021-10-06 17:13:02 -07:00
Kate Lovett
8eb7e2a2fb Remove deprecated formatting classes (#90296) 2021-10-06 17:08:02 -07:00
Taha Tesser
b6459f9b63 Migrate to Gradle 7.0.2 / AGP 7.0.1 (#90642) 2021-10-06 17:01:13 -07:00
Kate Lovett
72924f1307 Remove autovalidate deprecations (#90292) 2021-10-06 16:28:02 -07:00
Tomasz Gucio
db426693c5 Remove duplicate comments in TextEditingActionTarget (#91362) 2021-10-06 16:18:04 -07:00
Jenn Magder
afbfc1f33a Migrate assets, common, icon_tree_shaker to null safety (#91309) 2021-10-06 15:16:33 -07:00
Dan Field
5112f86c94 Clear asset manager caches on memory pressure (#91353) 2021-10-06 10:18:02 -07:00
Bjarte Bore
1c374c6598 Added support for MaterialState to InputDecorator (#91182) 2021-10-06 09:36:06 -07:00
Pierre-Louis
3e43c3e110 Categorize flutter tool commands (#87747) 2021-10-05 17:28:04 -07:00
Kate Lovett
3aed0b671f Fix scrollbar dragging into overscroll when not allowed (#90634) 2021-10-05 15:33:03 -07:00
Michael Goderbauer
dc54c7f7be Remove accidental print (#91317) 2021-10-05 15:13:03 -07:00
Greg Spencer
8405868db4 Update outdated platform directories in examples (#91125)
The first of three or four changes to update the platform directories of the packages in the Flutter repo that have out date platform code.

This batch includes updating the flutter_view example, updating the sanity check numbers in analyze.dart, and adding some missing Podfiles in the examples. I also eliminated some trailing whitespace in the templates for Android.
2021-10-05 14:52:11 -07:00
stuartmorgan
64fd68ed42 Don't generate plugin registry in ResidentWebRunner (#91281)
* Don't generate plugin registry in ResidentWebRunner

generateDartPluginRegistry was being set to true unconditionally in
ResidentRunner, bypassing the primary check in
DartPluginRegistrantTarget, and the targetPlatform was not set in that
codepath, bypassing the second after the changes in
https://github.com/flutter/flutter/pull/87991. This caused web hot
restarts to be slower due to doing unnecessary work.

This ensures that generateDartPluginRegistry is false in the
ResidentWebRunner to skip that unnecessary step.

Fixes https://github.com/flutter/flutter/issues/91262

* Formatting

Co-authored-by: Zachary Anderson <zanderso@users.noreply.github.com>

Co-authored-by: Zachary Anderson <zanderso@users.noreply.github.com>
2021-10-05 12:27:53 -07:00
Alexander Aprelev
947ffa1f90 Use recently introduced Isolate.exit() in compute implementation (#91124)
* Use recently introduced Isolate.exit() in compute implementation

* Remove unused isolate variable
2021-10-05 12:04:20 -07:00
Ian Hickson
2bab6514b0 Enable avoid_implementing_value_types lint (#91078) 2021-10-04 13:48:04 -07:00
Greg Spencer
fd9ce27748 Clean up examples, remove section markers and --template args (#91133)
This does a cleanup of the examples, removing all of the "section" markers and extra comments that we don't need anymore now that the samples are no longer in the source code. It also removes the --template arguments from the {@tool dartpad} and {@tool sample} directives, since those are no longer used. It converts two examples that I discovered were still embedded into linked examples in the examples folder.

I didn't delete the templates from the snippets config folder yet, because there are still embedded samples in the dart:ui package from the engine that use them. Once dart:ui no longer uses the templates, they can be removed.

I bumped the version of the snippets package to pick up a change that allows removal of the --template argument.
2021-10-04 12:16:17 -07:00
Ian Hickson
126cd7388e Clean up dependency pins and update all packages (#91109) 2021-10-04 10:28:03 -07:00
Jenn Magder
61e2e86611 Add iOS build -destination flag (#90915) 2021-10-04 10:18:03 -07:00
xubaolin
905ac63e34 Fix some scrollbar track and border painting issues (#90311) 2021-10-04 08:13:04 -07:00
Christopher Fujino
91dd3276fd migrate vm service to null safety (#88320) 2021-10-02 10:18:03 -07:00
Littlegnal
1b73a35fba Change project.buildDir in standalone subprojects property (#91030) 2021-10-01 17:18:05 -07:00
stuartmorgan
23cea26715 Add dartPluginClass support for Android and iOS (#87991) 2021-10-01 16:03:04 -07:00
Fernando Moraes
7ff13ca405 Update TabPageSelector Semantics Label Localization (#87430) 2021-10-01 14:28:04 -07:00
LongCatIsLooong
0e72f99237 Restart input connection after EditableText.onSubmitted (#84307) 2021-10-01 14:23:05 -07:00
Ian Hickson
4315cdcf76 Some test cleanup for flutter_tools. (#90227) 2021-10-01 10:38:02 -07:00
Kate Lovett
5ab6c7bce1 Fix overflow edge case in overscrolled RenderShrinkWrappingViewport (#90419) 2021-10-01 09:08:02 -07:00
Kate Lovett
778876597a Remove AndroidViewController.id deprecation (#90294) 2021-10-01 09:03:02 -07:00
Kate Lovett
eda41e5720 Remove vsync deprecation (#90293) 2021-10-01 08:58:03 -07:00
Ian Hickson
989f864497 Enable avoid_setters_without_getters (#91067) 2021-10-01 00:58:05 -07:00
Hans Muller
50604c614e Add a warning about Icon.size to IconButton (#91051) 2021-09-30 23:18:02 -07:00
stuartmorgan
97fb8c0560 Fix Dart plugin registrant interaction with 'flutter test' (#90288)
Building an application for a desktop platform that transitively included any Dart-based plugins (such as path_provider) broke `flutter test`, because its compilation was overriding the provided main (in this case, the test main) with `generated_main.dart` if it was present. This PR:
- Changes the `flutter test` compilation path to update `generated_main.dart`, so that the tests will work, and will include any registered Dart plugins.
- Makes using `generated_main.dart` during recompile opt-in, to try to reduce the chance of a similar bug happening with other codepaths in the future.

Fixes https://github.com/flutter/flutter/issues/88794
2021-09-30 20:25:13 -07:00
Christopher Fujino
738a7747cc [flutter_tools] Handle disk device not found (#90996) 2021-09-30 17:28:57 -07:00
Greg Spencer
d94c18d2b9 Add external focus node constructor to Focus widget (#90843)
I've added a Focus.withExternalFocusNode constructor to the Focus widget (and the FocusScope widget) that makes it explicit that the widget's attributes won't affect the settings of the given focus node.

This is to help address #83023, which is a snag in the API that people run into occasionally.

This should help make it explicit when you want the widget attributes to take precedence, and when you don't.
2021-09-30 16:46:38 -07:00
Jenn Magder
c48c428e46 Xcode 13 as minimum recommended version (#90906) 2021-09-30 12:23:55 -07:00
Christopher Fujino
afd84ad425 flutter update-packages (#90994) 2021-09-30 11:38:02 -07:00
Greg Spencer
01af8e5987 Make flutter update-packages run in parallel (#91006)
This modifies the flutter update-packages and flutter update-packages --force-upgrade commands so that the many invocations of "dart pub get" in each repo project run in parallel instead of in series.
2021-09-30 10:26:31 -07:00
Jenn Magder
faaca13f22 Catch FormatException from bad simulator log output (#90966) 2021-09-30 09:33:04 -07:00
Hans Muller
0438bdfe12 TextStyle.apply,copyWith,merge should support a package parameter (#90986) 2021-09-29 15:35:28 -07:00
Kenzie (Schmoll) Davisson
5a85c0d81c Launch DevTools from the 'dart devtools' command instead of pub (#90894) 2021-09-29 15:32:24 -07:00
Kenzie (Schmoll) Davisson
15967669b2 Add richMessage parameter to the Tooltip widget. (#88539) 2021-09-29 15:31:54 -07:00
Justin McCandless
cf09d99372 Handle invalid selection in TextEditingActionTarget (#90826)
Prevents bugs related to invalid (-1,-1) selection in keyboard shortcuts
2021-09-29 13:14:10 -07:00
nt4f04uNd
96a63cfe48 use FadeTransition instead of Opacity where applicable (#75110) 2021-09-29 12:18:03 -07:00
Greg Spencer
bac1af32ee Reland: "Fix tooltip so only one shows at a time when hovering (#90457)" (#90917)
This reverts commit ab51a02 and fixes the test that broke the first time it landed.
2021-09-29 08:56:52 -07:00
Nicholas Shahan
3074c9e04b Add tests for web library platform defines (#90620) 2021-09-28 22:08:04 -07:00
LongCatIsLooong
7684f8b7c5 Reland "Make FilteringTextInputFormatter's filtering Selection/Composing Region agnostic" #89327 (#90211) 2021-09-28 16:48:06 -07:00
Greg Spencer
ab51a0260d Revert "Fix tooltip so only one shows at a time when hovering (#90457)" (#90909)
This reverts commit 885b2f56e1 to green up the build.

Submitting on red to fix the build.
2021-09-28 15:18:53 -07:00
Greg Spencer
777463c276 Adjust size of delete button to take up at most less than half of chip. (#90845)
This adjusts the size of the delete button so that it takes up just slightly less than half of the chip, so that legacy tests that tap on the center of the chip still hit the chip, and not the delete button.

A follow-on change for #90531
2021-09-28 14:20:36 -07:00
Greg Spencer
885b2f56e1 Fix tooltip so only one shows at a time when hovering (#90457)
In the process of fixing #90044, I realized that it's also possible for hovered tooltips to show more than one at a time if the widgets are nested, so this PR is a fix that prevents more than one tooltip from showing at a time with hovered tooltips.
2021-09-28 14:20:01 -07:00
yk3372
d2c8b62351 make Elevated&Outlined&TextButton support onHover&onFocus callback (#90688) 2021-09-28 10:51:14 -07:00
Greg Spencer
ab2b0851a2 Add smoke tests for all the examples, fix 17 broken examples. (#89021)
This adds a smoke test for every single API example. It also fixes 17 tests that had bugs in them, or were otherwise broken, and even fixes one actual bug in the framework, and one limitation in the framework.

The bug in the framework is that NetworkImage's _loadAsync method had await response.drain<List<int>>();, but if the response is null, it will throw a cryptic exception saying that Null can't be assigned to List<int>. The fix was just to use await response.drain<void>(); instead.

The limitation is that RelativePositionedTransition takes an Animation<Rect> rect parameter, and if you want to use a RectTween with it, the value emitted there is Rect?, and one of the examples was just casting from Animation<Rect> to Animation<Rect?>, which is invalid, so I modified RelativePositionedTransition to take a Rect? and just use Rect.zero if the rect is null.
2021-09-28 09:32:06 -07:00