1397 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
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
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
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
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
chunhtai
68037a23af
Improve error message when using popuntil with bad predicate (#57247) 2020-05-27 10:02:05 -07:00
Justin McCandless
53d7f24521
Fix Web asking for clipboard permissions (#57324) 2020-05-19 17:57:04 -07:00
Rene Floor
79ad2d2e20
correctly dispose listeners by image widget (#57201) 2020-05-18 02:17:02 -07:00
liyuqian
88ddde4c81
Remove obsolete UpdateCounted prefix (#57167) 2020-05-16 14:57:08 -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
Justin McCandless
8de07d5527
Bring back paste button hide behavior 3 (#57139) 2020-05-14 11:37:02 -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
snyiuan
610dc170d9
setState() will call scheduleFrame() in post-frame callback now. (#56968) 2020-05-13 09:37:02 -07:00
chunhtai
7bed5a2851
fix push replacement reports wrong previous route to navigator observer (#57036) 2020-05-13 09:27:03 -07:00
chunhtai
1bb9f3f718
fix pushAndRemoveUntil incorrectly removes the routes below the first… (#56732) 2020-05-12 07:15:03 -07:00
Jenn Magder
c969b8af7b
Revert "Bring back paste button hide behavior 2 (#56922)" (#56951)
This reverts commit d988226374cda866cfa5336fdbb0d258e0e8ddfb.
2020-05-11 15:28:10 -07:00
Tong Mu
7f8cb7f830
System mouse cursors (#54171)
Adds the basic framework for the mouse cursor system. 

* Adds MouseRegion.cursor
* Adds SystemMouseCursors
* Adds mouseCursor to some widgets
2020-05-11 13:34:20 -07:00
Justin McCandless
d988226374
Bring back paste button hide behavior 2 (#56922)
Unrevert of paste button hides when nothing to paste
2020-05-11 13:23:24 -07:00
Mehmet Fidanboylu
0786f29ff2
Revert "Bring back paste button hide behavior (#56689)" (#56806)
This reverts commit d56349822d1087acc7d3f2f4cb0c037abdeb93d9.
2020-05-09 20:22:17 -07:00
Pierre-Louis
e04450c000
Expose includeSemantics option to RawKeyboardListener (#56549)
* Expose includeSemantics option to RawKeyboardListener

* Revert "Expose includeSemantics option to RawKeyboardListener"

This reverts commit 684edccfb0bacb358285b34b7a6dafd45a070ca7.

* Set includeSemantics to false

* Expose includeSemantics for RawKeyboardListener

* Add test
2020-05-09 00:01:19 +02:00
Justin McCandless
d56349822d
Bring back paste button hide behavior (#56689)
Unreverts #54902 with fixes for a failing integration test.
2020-05-08 13:41:22 -07:00
Ian Hickson
98bc176627
Have the physics enforce the scroll position. (#56521) 2020-05-08 12:59:02 -07:00
Yegor
324fdb6b3c
LayoutBuilder: skip calling builder when constraints are the same (#55414)
Avoid calling `builder` in `ConstrainedLayoutBuilder` when layout constraints are the same.

[Design doc](flutter.dev/go/layout-builder-optimization).

## Related Issues

Fixes https://github.com/flutter/flutter/issues/6469
2020-05-08 12:27:59 -07:00
Greg Spencer
fd4d6d70d7
Remove semantics node generated by ExcludeFocus (#56568) 2020-05-07 17:59:07 -07:00
Justin McCandless
cd67da260e
Revert "Paste shows only when content on clipboard (#54902)" (#56614)
This reverts commit 053c38818f8ae89ea2fa441f4055c3bd939798ef.
2020-05-07 17:28:37 -07:00
Justin McCandless
053c38818f
Paste shows only when content on clipboard (#54902) 2020-05-07 15:22:03 -07:00
chunhtai
2f04ba91c7
Fixes the navigator pages update crashes when there is still route wa… (#55998) 2020-05-06 13:01:03 -07:00
Greg Spencer
69019664fe
Focus the last node when asked to focus previous and nothing is selected. (#56160) 2020-05-05 13:42:02 -07:00
Jia Hao
d6f6fc4d6b
Fix WidgetsBinding.firstFrameRasterized not completing (#56022) 2020-05-04 18:44:03 -07:00
Andre
96233db90d
Make CustomClipper extend Listenable (#55995) 2020-05-04 18:39:03 -07:00
Greg Spencer
fdc4d21b79
Add ExcludeFocus widget, and a way to prevent focusability for a subtree. (#55756)
This adds an ExcludeFocus widget that prevents widgets in a subtree from having or obtaining focus. It also adds the ability for a FocusNode to conditionally prevent its children from being focusable when it isn't focusable (i.e. when canRequestFocus is false).

It does this by adding an descendantsAreFocusable attribute to the FocusNode, which, when false, prevents the descendants of the node from being focusable (and removes focus from them if they are currently focused).
2020-05-01 14:36:46 -07:00
Daniel Iglesia
27eee14c6e
Add DragTarget callback onAcceptDetails, plus helper class DragTarget… (#55257) 2020-05-01 14:18:58 -07:00
Greg Spencer
6a75dc449e
Add onSecondaryTap to gesture recognizer and gesture detector. (#55494) 2020-05-01 13:04:01 -07:00
Greg Spencer
7ab8767a5f
Fix focus traversal regions to account for transforms. (#55600) 2020-04-27 14:54:04 -07:00
chunhtai
a60e4d1f36
Relands Fix FlutterError.onError in debug mode (#55500) 2020-04-27 14:49:03 -07:00
Kate Lovett
be0076f3f9
Prioritize scrolling away nested overscroll (#55069) 2020-04-27 14:04:10 -07:00
Justin McCandless
de8cf8b530
Customizable obscuringCharacter (#55415) 2020-04-24 17:59:02 -07:00
chunhtai
d482163f59
Revert "Fix FlutterError.onError in debug mode (#53843)" (#55484)
This reverts commit d35671c6d10b2aa7cf7f8e5c022fd8eea902cf44.
2020-04-23 11:57:18 -07:00
chunhtai
d35671c6d1
Fix FlutterError.onError in debug mode (#53843)
* Fix FlutterError.onError in debug mode

* update

* fix comments

* add license header

* fix analyzer

* update

* another attempt

* fix test

* fix comment
2020-04-22 17:17:42 -07:00
Greg Spencer
36767d01e4
Make Action.enabled be isEnabled(Intent intent) instead. (#55230) 2020-04-21 13:18:04 -07:00
LongCatIsLooong
e31f708961
Autofill Part 1 (#52126) 2020-04-20 14:45:02 -07:00
Justin McCandless
6c70a8fef6
Fix right alignment TWB longestLine (#54234)
Fixes an alignment bug seen when using both TextWidthBasis.longestLine and TextAlign.right.
2020-04-17 08:07:27 -07:00
chunhtai
baafc66817
Enable gesture recognizer in selectable rich text (#54479) 2020-04-16 10:05:02 -07:00
Justin McCandless
f646e26e90
iOS Text Selection Menu Overflow (#54140)
Adds the ability for the iOS text selection menu to handle items that are too wide for the screen.
2020-04-14 09:49:16 -07:00
Hans Muller
650592b3ef
Updated Nested SingleChildScrollView test for clarity (#54670) 2020-04-13 12:50:01 -07:00