3513 Commits

Author SHA1 Message Date
LongCatIsLooong
bbb95e5787
EditableText.bringIntoView calls showOnScreen (#58346) 2020-06-01 12:08:01 -07:00
Mehmet Fidanboylu
1d395c5e18
Revert "Add clipBehavior to widgets with clipRect (#55977)" (#58344)
This reverts commit cd593dae1961ca2bc5c045a310f16e6cdffc8294.
2020-05-31 07:41:50 -07:00
Greg Spencer
37f562fa36
Remove callback asserts on FocusableActionDetector (#58272)
This makes the callback arguments to FocusableActionDetector optional, if you (for instance) only want to define shortcuts and actions and a focus node for something.
2020-05-29 15:57:05 -07:00
Justin McCandless
7d17c53992
Helpful assertion for isAlwaysShown error (#58258) 2020-05-29 15:48:01 -07:00
liyuqian
cd593dae19
Add clipBehavior to widgets with clipRect (#55977)
* Add clipBehavior to RenderFlex

* Add clipBehavior to FittedBox

* Add clipBehavior to Flex and FittedBox

* Add clipBehavior to UnconstrainedBox

* Add clipBehavior to Stack and Wrap

* Add clipBehavior to TextEditable

* Add clipBehavior to ListWheelScrollView

* Add clipBehavior to SingleChildScrollView

* Add clipBehavior to RenderViewportBase's widgets

Those widgets are NestedScrollView and ShrinkWrappingViewport.

* Fix tests

* Remove enum Overflow and fix typo

* Remove clipToSize

* Analyze fix

* Remove Mixin and other small fixes

* Fix tests and respect Stack's default clipBehavior

* Add Overflow back to make it non-breaking

* Restore clipBehavior to make it non-breaking

* Small fixes

* Fix rebase
2020-05-29 15:38:50 -07:00
Pedro Massango
af9a409eda
Prevent WhitelistingTextInputFormatter to return a empty string if the current value does not satisfy the formatter (#57264) 2020-05-29 09:48:02 -07:00
Helin Shiah
479f370379
Add function to set structured error early (#58118)
* Add function to set structured error early

* Remove unused imports

* Save test handler in setUp

* Add utils file for shared test service

* Rename structured error functions

* Use setUpAll to save error handler and call initStructuredError from other init

* Rename widget inspector test service

* Remove debugging print statement

* Move error handling setting back to initServiceExtensions

* Rename structured error handler in test

* Namespace environment variable

* Rename test
2020-05-28 16:38:10 -07:00
Hansol Lee
e853155c7e
Error message when size has not been set in RenderBox's performLayout should be well versed (#58151) 2020-05-28 15:03:01 -07:00
Tong Mu
60f1aa25d3
Add mouse cursor API to widgets (phase 1) (#57628)
* Adds default cursor and/or mouseCursor property to a number of widgets.
* Adds `MaterialStateMouseCurrsor`.
2020-05-28 13:16:31 -07:00
Jonah Williams
d30c355d24
[flutter] allow loading either NOTICES or LICENSE (#58131)
To make #57871 easier to land, add support for loading either LICENSES or NOTICES, preferring the later.
2020-05-28 12:06:52 -07:00
Onat Çipli
4f0c82b7a3
fixes isAlwaysShown material scrollbar.dart (#54128) 2020-05-28 11:23:05 -07:00
chunhtai
7e2f555d1b
fix route annoucement for first route and last route (#57339) 2020-05-28 11:18:05 -07:00
Greg Spencer
8ef2915453
Add MediaQueryData.navigationMode and allow controls to be focused when disabled. (#54919)
This adds a new navigationMode to the MediaQueryData that indicates how focusable controls should behave under different navigation modes, currently with two modes: NavigationMode.traditional, and NavigationMode.directional.

It may seem like focusing a disabled control is not desirable, but this is useful for user interfaces that use DPAD navigation because if a control gets disabled, losing focus is disruptive to the user, and it is difficult to control where the focus will end up unless it is done explicitly.
2020-05-27 15:30:19 -07:00
Jose Alba
bd06749edc
Slider value indicator gets disposed if it is activated (#57535) 2020-05-27 15:27:01 -07:00
Ayush Bherwani
8b63c65436
[SwitchListTile] adds controlAffinity property (#58037) 2020-05-27 10:32:03 -07:00
Kirill
e766190556
Deleted deprecated profile func and profile.dart (#57841) 2020-05-27 10:12:04 -07:00
chunhtai
68037a23af
Improve error message when using popuntil with bad predicate (#57247) 2020-05-27 10:02:05 -07:00
Ayush Bherwani
b3434459d5
[CheckboxListTile] exposes contentPadding property of ListTile. (#57868) 2020-05-26 07:07:02 -07:00
Ayush Bherwani
852a30b003
[AppBarTheme] adds centerTitle property (#57736) 2020-05-21 14:57:03 -07:00
Dan Field
02b1080101
Functionality to check handlers set on platform channels (#57696) 2020-05-21 14:52:05 -07:00
Justin McCandless
9f744a9e4c
Allow updating textAlignVertical (#57033) 2020-05-21 14:37:04 -07:00
Stonekity
26fabcd41b
fix memory leak of android view (#50111) 2020-05-21 14:32:03 -07:00
Hansol Lee
e92afc16b6
Have _warpToCurrentIndex() shortcut logic behave properly (#57574)
* Have _warpToCurrentIndex() shortcut logic behave properly

* Add test

* Apply code review

* Fix typo (fromm -> from)
2020-05-20 13:29:01 -07:00
LongCatIsLooong
ca2abf865e
avoid forceToPoint in hit-testing when possible (#57519) 2020-05-19 18:12:03 -07:00
Darren Austin
4c21fb9017
Update the requirements for applying the elevation overlay. (#57526) 2020-05-19 18:02:07 -07:00
Justin McCandless
53d7f24521
Fix Web asking for clipboard permissions (#57324) 2020-05-19 17:57:04 -07:00
Kate Lovett
04860d7256
Step 1 of 3: Add opt-in fixing Dialog border radius to match Material Spec (#56084) 2020-05-19 17:52:05 -07:00
LongCatIsLooong
89a00fc745
fix segment hit test behavior (#57461) 2020-05-18 10:42:02 -07:00
Jose Alba
0423809c2f
Value Indicator uses Global position (#57327)
* Value Indicator uses Global position when calculating horizontal position

* fixed test

* fixed analyzer

* Made globalCenter variable and added comments
2020-05-18 13:22:31 -04:00
Ferhat
a4ca9d7e7d
Resolve skip (#57240) 2020-05-18 10:06:41 -07:00
Andre
6294dd59bb
Make _RenderButtonBarRow.constraints null aware (#57261) 2020-05-18 09:07:02 -07:00
Ayush Bherwani
f2c12d7e79
Add ExpansionTile.childrenPadding property (#57291) 2020-05-18 09:05:49 -07:00
Hans Muller
750dbe0954
ThemeData.brightness == ThemeData.colorScheme.brightness (#56956) 2020-05-18 08:52:02 -07:00
Pedro Massango
07f9563dac
Add autofill support for TextFormField (#57332) 2020-05-18 02:32:02 -07:00
Rene Floor
79ad2d2e20
correctly dispose listeners by image widget (#57201) 2020-05-18 02:17:02 -07:00
Ethan Saadia
2b2bbfa69f
Add option for ExpansionTile to maintain the state of its children when collapsed (#57172) 2020-05-16 15:07:02 -07:00
Ian Hickson
e536774436
Add more documentation to addTimingsCallback (#56952) 2020-05-16 15:02:02 -07:00
liyuqian
88ddde4c81
Remove obsolete UpdateCounted prefix (#57167) 2020-05-16 14:57:08 -07:00
Enol Casielles Martinez
e7b6b52102
avoid AnimatedBuilder rebuilding widget (#55832) 2020-05-16 14:52:08 -07:00
Coin
e5bd2b3d55
Make CircularProgressIndicator's animation match native (#50412) 2020-05-16 14:47:03 -07:00
nturgut
32547dcc7e
Revert " Bring back paste button hide behavior 3 (#57139)" (#57286)
This reverts commit 8de07d5527bcdc6b02e43e8efed19219a84bf82e.
2020-05-15 10:42:37 -07:00
Tong Mu
5fa1c60b17
MouseCursor uses a special class instead of null to defer (#57094)
* Uses a special cursor value MouseCursor.defer to mark deferring. MouseTrackerAnnotation.cursor is now non-null. The mouseCursor argument of widgets or render objects can be null, which indicates using the default value.
* Moves SystemMouseCursors.uncontrolled to MouseCursor.uncontrolled.
* Changes how MouseCursor.debugDescription is defined. Previously MouseCursor.toString returns $runtimeType($debugDescription), while now it returns $debugDescription. Implementations of classes are updated, except for the ones of MouseCursor.defer and MouseCursor.uncontrolled are simply "defer" and "uncontrolled".
2020-05-14 15:54:26 -07:00
Darren Austin
0bcca42bba
Honor the InputDecoratorTheme in the text input fields used by the Date Pickers. (#57189) 2020-05-14 14:42:02 -07:00
Tong Mu
fb94d3fb78
Animation sheet recorder (#55527) 2020-05-14 14:32:03 -07:00
Justin McCandless
8de07d5527
Bring back paste button hide behavior 3 (#57139) 2020-05-14 11:37:02 -07:00
LongCatIsLooong
1c13d665ea
remove redundant transform (#57085) 2020-05-14 11:17:03 -07:00
Ferhat
674fb7e165
Unskip TextStyle web tests (#56710) 2020-05-14 11:07:04 -07:00
Darren Austin
7706a97aba
Localized new strings added in the redesigned Material Date Picker (#56645) 2020-05-14 11:02:11 -07:00
Kate Lovett
c733864aff
Step 1 of 3: Add opt-in for debugCheckHasMaterialLocalizations assertion on TextField (#56090) 2020-05-14 11:02:07 -07:00
Nicolas Schneider
362a557365
allow changing the paint offset of a GlowingOverscrollIndicator (#55829) 2020-05-14 10:57:06 -07:00