6586 Commits

Author SHA1 Message Date
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
Justin McCandless
066c5def0a
Consistent American spelling of 'behavior' (#58016) 2020-05-27 10:17:02 -07:00
Kirill
e766190556
Deleted deprecated profile func and profile.dart (#57841) 2020-05-27 10:12:04 -07:00
Tim Sneath
356b958f66
Update platform_view.dart (#57516) 2020-05-27 10:07:05 -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
Devon Carew
9d58a87066
fix a typo in trace events for the image cache (#57821) 2020-05-22 22:37:01 -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
Per Classon
39ab50db14
Add code example for CustomScrollView on how to make it grow in two directions along its scroll axis (#57670) 2020-05-21 14:37:08 -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
0e795c93b9
Improve CupertinoDatePicker docs (#57534) 2020-05-19 20:17: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
Anthony
82eeb94045
move paragraph about wide viewports up (#57521) 2020-05-19 17:57:09 -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
4fd4a7ed85
update appbar documentation (#50673) 2020-05-19 12:32:03 -07:00
Andrey Gordeev
4d8d0f5604
Expect a generic State instead of implementation (#57500) 2020-05-18 12:37:02 -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
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
Tomohiro Hattori
b70301fe08
fix typo (#57487) 2020-05-18 09:02:01 -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
Cristian Zazo
e8a7dc466b
Fix Autofill example (#57319) 2020-05-18 02:27:01 -07:00
Michel Feinstein
7e26a1d832
Fixed a typo. (#57412) 2020-05-18 02:22:10 -07:00
Alexandre Ardhuin
d42dcf2edd
add @factory to create* methods (#57299) 2020-05-18 02:22:05 -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
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
Jose Alba
a1a5781953
Added Dartpad and Image examples to Slider and RangeSlider docs (#57047) 2020-05-14 17:42:01 -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
creativecreatorormaybenot
1239ddd7dc
Fix docs (#57195) 2020-05-14 14:47:03 -07:00