9774 Commits

Author SHA1 Message Date
Jonah Williams
fa0782b696
reassign jonahwilliams todos (#88707) 2021-08-23 12:27:07 -07:00
Iman khoshabi
adb25e1801
Correct PointerExitEvent class documentation (#88650) 2021-08-23 12:22:07 -07:00
Abhishek Ghaskata
49bf933b59
add margin to vertical stepper (#86067)
* add marging to vertical stepper

* Remove tralling spaces

* Update docstring
2021-08-23 12:02:02 -07:00
Alexander Dahlberg
1a5692b722
Fixed leak and removed no-shuffle tag in widgets/app_overrides_test.dart (#88469)
This PR fixed the problem that has prevented app_overrides_test.dart being shuffled. Part of #85160.

This test is testing WidgetsApp.showPerformanceOverlayOverride and WidgetsApp.debugAllowBannerOverride.

The problem: There was a strong dependecy to the default ordering of the tests. The value of showPerformanceOverlayOverride or debugAllowBannerOverride was expected to be the value that was set in previous test.

The fix: Make the values be set to default values after each test:
WidgetsApp.showPerformanceOverlayOverride=false
WidgetsApp.debugAllowBannerOverride=true
Set the expected value at the start of the test, if the default value is not expected.
2021-08-23 10:03:49 -07:00
Alexander Dahlberg
83b9e99cfb
Fixed leak and removed no-shuffle tag in scheduler_test.dart (#88423)
Co-authored-by: Alexander Dahlberg <alexander.dahlberg@sigma.se>

This PR fixed the problem that has prevented scheduler_test.dart being shuffled. Part of #85160.

One test schedules a task, but events are locked so the scheduled task does not execute and this messes up other tests.
This PR adds a teardown that executes the scheduled task after the test, when events are unlocked.
2021-08-23 10:03:21 -07:00
Alexander Dahlberg
2ee0234471
Fixed leak and removed no-shuffle tag in image_stream_test.dart (#88376)
Fixes test/painting/image_stream_test.dart of #85160

The problem: The timeDilation was changed to 2.0 but not restored. The changed timeDilation carried on to following tests which messed up some of them when using test ordering seed 456.

The Fix: Restore timeDilation to 1.0 at the end of test.
2021-08-23 10:03:03 -07:00
Alexander Dahlberg
60ed5cc8e4
Fixed leak and removed no-shuffle tag in long_press_test.dart (#88373)
Fixes test/gestures/long_press_test.dart of #85160

The LongPressGestureRecognizer in test 'non-allowed pointer does not inadvertently reset the recognizer' was not disposed breaking a lot of other tests.
2021-08-23 10:02:21 -07:00
nt4f04uNd
b5932065fa
Ensure RawImage render object updates (#88369) 2021-08-20 15:03:37 -07:00
Jonah Williams
01d0c53571
partial revert of gesture config (#88534)
Co-authored-by: Zachary Anderson <zanderso@users.noreply.github.com>
2021-08-20 13:43:16 -07:00
nt4f04uNd
17f0d2e5de
init (#88391) 2021-08-20 09:42:05 -07:00
Dan Field
c02961256a
Reland remove DefaultShaderWarmup (#88455) 2021-08-18 21:37:03 -07:00
sigmundch
7a21bd1000
reland disable ideographic script test on web (#88383) 2021-08-18 21:32:04 -07:00
Hans Muller
afe58fbab5
Revert "Reland "Android Q transition by default (#82670)" (#88409)" (#88482) 2021-08-18 20:22:04 -07:00
chunhtai
89d1b9e4c5
Makes PlatformInformationProvider aware of the browser default route … (#88122) 2021-08-18 13:37:02 -07:00
ColdPaleLight
33f5ac6650
ImageInfo adds a new getter named sizeBytes to decouple ImageCache and ui.Image (#86555) 2021-08-18 09:21:12 -07:00
Alex Li
df399f9a8d
Reland "Android Q transition by default (#82670)" (#88409)
* Reland "Android Q transition by default (#82670)"

This reverts commit 4053b4b16cbec129f03cd7201ab1b8250bda72e8.

* Fix `overall_experience_test.dart` for flutter_tools
2021-08-18 09:11:27 -07:00
Michael Goderbauer
922b70dda6
Typo fixes (#88379) 2021-08-17 18:52:05 -07:00
Christopher Fujino
81eb54bf78
update-packages (#88387) 2021-08-17 18:49:32 -07:00
Kate Lovett
3a9e7e3bef
New PR (#88365) 2021-08-17 18:42:03 -07:00
Jenn Magder
4053b4b16c
Revert "Android Q transition by default (#82670)" (#88394)
This reverts commit a1ae4feac518dbce2862760ff5ceb7f3992c8d43.
2021-08-17 17:48:52 -07:00
chunhtai
71948b72db
Enable soft transition for tooltip (#88318) 2021-08-17 16:07:03 -07:00
Alexandre Daigle
ddfaec19ad
Fix null check for content dimensions in page getter (#87824) 2021-08-17 15:57:06 -07:00
Alex Li
a1ae4feac5
Android Q transition by default (#82670) 2021-08-17 15:47:07 -07:00
Swiftaxe
2f46d36bf4
Fixed leak and removed no-shuffle tag in test/gestures/tap_test.dart (#88342) 2021-08-17 10:07:05 -07:00
Jonah Williams
060e4608b1
clean up stale or unnecessary TODOS (#88308) 2021-08-16 21:37:03 -07:00
Dan Field
c91a298249
Take DPR into account for image inversion (#88309) 2021-08-16 15:35:10 -07:00
Gary Qian
a562b3cb3d
Deferred components integration test app (#88030) 2021-08-16 15:32:05 -07:00
Dan Field
a4f5a5871a
Avoid retaining routes when subscriptions are cleared (#88310) 2021-08-16 14:47:03 -07:00
Kate Lovett
e761e64983
Add theme support for choosing android overscroll indicator (#88295) 2021-08-16 13:42:02 -07:00
xubaolin
a4b724d944
fix a scrollbar updating bug (#88152) 2021-08-16 12:17:02 -07:00
LongCatIsLooong
c49eba6c3f
[TextInput] minor fixes (#87973) 2021-08-16 12:12:04 -07:00
YeungKC
a40c5c29e6
Migration text selection manipulation. (#86986)
Consolidate duplicated cut/copy/paste/selectall code so it can be done via Actions in the future.
2021-08-16 10:38:49 -07:00
Tong Mu
31d0787d20
Revert "Revert "Revert "Restores surface size in the postTest of test binding (#87240)" (#87258)" (#87297)" (#88293)
This reverts commit 91f8b6be510093f6ac5ff4ec1e578641a4f7f9b3.
2021-08-16 09:38:25 -07:00
Swiftaxe
e7f9bcba2d
Removed no-shuffle tag and fixed leak in debug_test.dart (#88268)
Co-authored-by: Alexander Dahlberg <alexander.dahlberg@sigma.se>

The TapGestureRecognizer in the test named 'TapGestureRecognizer _sentTapDown toString' was not disposed, which was breaking a couple of other tests.
This worked fine when not shuffling the tests as the test was executed last.
2021-08-16 09:29:19 -07:00
Swiftaxe
fe337dcaf5
Animation controller test (#88251)
Co-authored-by: Alexander Dahlberg <alexander.dahlberg@sigma.se>

Fixes test/animation/animation_controller_test.dart in #85160

Problem:
The test 'animateTo can deal with duration == Duration.Zero' was failing with the following error:

Expected: <0>
Actual: <5>
Expected no animation.
package:test_api expect
package:flutter_test/src/widget_tester.dart 484:3 expect
test/animation/animation_controller_test.dart 511:5 main.

Following line finds 5 transientCallbacks scheduled, while expecting zero, if shuffled with seed 123:

expect(SchedulerBinding.instance!.transientCallbackCount, equals(0), reason: 'Expected no animation.');

This is caused by some other test leaving transientCallbacks scheduled.

Fix:
By disposing the AnimationController after each test, the transientCallbacks get cleaned up.
I chose to dispose all controllers in every test, to make sure there is no risk of leaks.
2021-08-16 09:28:11 -07:00
Pierre-Louis
85ffa8ce18
[Fonts] Improved icons update script (#88153)
* Improved update_icons.dart

* Handle _

* Update dartdoc

* Rename function

* formatting

* fix type

* Refactor ID generation

* rename

* cleanup

* update comment

* replace typedef with type
2021-08-15 12:56:58 +02:00
LongCatIsLooong
b3d12ebd77
Revert "[EditableText] call onSelectionChanged only when there're actual selection/cause changes (#87971)" (#88183) 2021-08-13 17:17:04 -07:00
Abhishek Ghaskata
10aad08a34
add ? (#88019) 2021-08-13 17:02:09 -07:00
zuvola
93d69544a1
Fix AnimatedCrossFade would focus on a hidden widget (#87618)
Moving the focus with the tab key on the external keyboard will move the focus to the widget that is hidden by AnimatedCrossFade.
2021-08-13 08:49:43 -07:00
Justin McCandless
4bd8b288bb
ScaleUpDetails focalPointDelta (#85718)
Corrects the exact definition in code and docs of ScaleUpDetails delta.
2021-08-12 18:02:02 -07:00
chunhtai
b860982938
remove _AbortingSemanticsFragment (#88067) 2021-08-12 17:32:03 -07:00
LongCatIsLooong
6e224ee0e6
[EditableText] call onSelectionChanged only when there're actual selection/cause changes (#87971) 2021-08-12 17:27:03 -07:00
Michael Goderbauer
fbc4e9bcc5
Revert "Update MaterialScrollBehavior.buildScrollbar for horizontal axes (#87740)" (#88129) 2021-08-12 16:12:06 -07:00
Justin McCandless
9e9ca69808
Home/End key support for Linux (#87294)
Support for more desktop keyboard keys/shortcuts.
2021-08-11 21:05:16 -07:00
Greg Spencer
10e4b04010
Switch document generation to use the snippets package (#87231)
Switch document generation to use the snippets package instead of the snippets code in the Flutter repo. In the process, some bugs in sample code analysis have been fixed, and I've fixed some more errors in the samples.

This will allow the snippets package to be developed separately from the Flutter repo, and reduce the code in the Flutter repo.

The snippets code is deleted in this PR.

I also converted some comments in the snippet templates to be regular comments instead of doc comments, because having a doc comment block before the imports causes the Dart import sorter to lose the comment. They should have been regular comments in the first place.

The snippets package resides in the assets-for-api-docs repo.

The sample analysis has also been converted to be run in parallel, and I've bumped the Dartdoc version to 1.0.2.
2021-08-11 19:48:29 -07:00
Hans Muller
871386bbb4
Revert "Changing ElevatedButton.child to be non-nullable (#87901)" (#88071)
This reverts commit 724c0eb65cef6a66241f9f1500dc9ed53991d5be.
2021-08-11 17:29:29 -07:00
Kate Lovett
e127665795
Update MaterialScrollBehavior.buildScrollbar for horizontal axes (#87740) 2021-08-11 14:52:04 -07:00
Greg Spencer
cb651352dd
Fix errors in examples (#87962) 2021-08-11 14:37:06 -07:00
Kate Lovett
d8da091751
Android 12 overscroll stretch effect (#87839) 2021-08-11 16:36:53 -05:00
Ian Hickson
8d89632fdd
Notification doc fixes (#87767) 2021-08-11 14:32:06 -07:00