1820 Commits

Author SHA1 Message Date
Todd Volkert
1b44133322
Move ensureVisualUpdate call to call sites in WidgetsBinding.attachRootWidget() (#75811)
This call is unnecessary and wasteful for callers that are building
parallel widget trees, since for those use cases, the caller is
generally going to build the tree synchronously immediately.
2021-02-10 16:03:48 -08:00
Todd Volkert
235927d588
Allow callers to pump a root widget with no child (#75576)
This can be useful for offscreen widget trees, where the caller
wants to completely tear down the tree (properly clean up) when
they're done with the tree, to ensure they're not leaving behind
any event listeners that could be registered by child elements
(which could lead to memory leaks and unexpected behavior).
2021-02-10 16:03:27 -08:00
Pedro Massango
a4ae59ba89
Fix "Support configurable hit test behavior on Draggable and DragTarget" (#74047) 2021-02-10 16:01:06 -08:00
xubaolin
16af4aa7eb
Fix the NestedScrollView exception when rebuilding during scheduleWarmUpFrame (#75308) 2021-02-10 01:01:04 -08:00
xubaolin
6ad9f784b3
Add more checks when use Navigator 2.0 (#75624) 2021-02-10 00:56:02 -08:00
LongCatIsLooong
468e304a4d
loosen ui.TextStyle toString tests (#75678) 2021-02-09 10:31:03 -08:00
chunhtai
a65ce5bae7
ignore sliver underflow if the last children is no longer at the prev… (#71864) 2021-02-09 09:36:07 -08:00
Michael Goderbauer
68c96f100e
Revert "Fix/ValueListenableBuilder rebuilds (#72707)" (#75669)
This reverts commit 69882d9647e03ec4a9189ee1b0351abae508e938.
2021-02-08 16:14:15 -08:00
Ian Hickson
824042f9b2
Catch cases in tests where people try to tap on widgets that aren't reachable. (#74798) 2021-02-03 16:11:02 -08:00
Ian Hickson
6665922961
Show an X when images can't load. (#74972) 2021-02-03 15:11:05 -08:00
Bogdan Lukin
69882d9647
Fix/ValueListenableBuilder rebuilds (#72707) 2021-02-03 15:06:05 -08:00
David Chen
98067a6552
Allow long press delay duration for LongPressDraggable to be adjustable (#74592) 2021-02-02 01:26:02 -08:00
LongCatIsLooong
76be55813b
Move caret/highlight painting to custom painters (#72828) 2021-02-01 14:41:04 -08:00
chunhtai
13fe079bb3
fixes preceision error during SliverGridRegularTileLayout (#74851) 2021-02-01 12:46:05 -08:00
Yegor
791edc230d
always pass filterQuality specified in the Image widget to canvas (#74854) 2021-01-28 21:54:03 -08:00
Kenzie Schmoll
1ceffd28cd
Only show devtools deep links for render overflow errors (#74916) 2021-01-28 18:24:08 -08:00
Jesse
2e7ab87a4d
Reland "Add BuildContext parameter to TextEditingController.buildTextSpan" (#73510) 2021-01-28 09:49:03 -08:00
Greg Spencer
c05f623c6b
Remove FocusTraversalGroups from the final sorted list of descendants. (#74758)
This fixes a subtle bug in the focus traversal that would leave unfocusable FocusTraversalGroup nodes in the list of sorted nodes to be traversed, causing an assert to fire if you nested a FocusTraversalGroup in another one and made its children unfocusable.
2021-01-27 15:58:08 -08:00
Pedro Massango
a2ce206695
expose clipBehavior (#74046) 2021-01-27 14:54:46 -08:00
Alexandre Ardhuin
d546e1d311
fix for upcoming lint use_named_constants (#74788) 2021-01-27 20:20:44 +01:00
Todd Volkert
5584fce36e
Switch global key registry to be owned by the build owner. (#74701)
This gets away from the extra static map for global key registrations
in favor of the data structures being instance properties of the build
owner. This still allows for semantically-equivalent static access through
the binding (which in turn gives access to the build owner).

This also adds a `BuildOwner.globalKeyCount` getter to get the count
of global keys associated with widgets currently in the tree.
2021-01-26 14:28:58 -08:00
Greg Spencer
2eeeba9c09
Remove nullOk from Actions.invoke, add Actions.maybeInvoke (#74680)
This removes the nullOk parameter from Actions.invoke, and adds an Actions.maybeInvoke function. The difference is that invoke will now always (in debug mode) throw if an enabled action isn't found, and maybeInvoke will return null if an enabled action isn't found. The invoke function can still return null as the result of the invocation, though, so I purposely didn't change the return value to Object from Object?.
2021-01-25 20:52:30 -08:00
Darren Austin
efe8a397a8
Added some tests and comments from Shi-Hao for the ReorderableLists. (#74689) 2021-01-25 18:54:10 -08:00
xubaolin
1e7f3955ce
fix a RenderBox.size access exception (#74402) 2021-01-25 18:54:05 -08:00
Michael Goderbauer
b400534dc7
remove some stray nullOK mentions from docs (#74661) 2021-01-25 11:34:04 -08:00
Kenzie Schmoll
c89d649847
Add connectedVmServiceUri service extension and set from flutter_tools (#74534)
* Add connectedVmServiceUri service extension and set from flutter_tools
2021-01-25 10:40:14 -08:00
Darren Austin
8529e5a05c
New Reorderable list widgets (#74299)
Introduced new widget/ReorderableList and widget/SliverReorderableList widgets.
2021-01-22 21:44:13 -08:00
Justin McCandless
d9a69e3b72
Desktop keys: up/down + line modifier (#74425)
up/down arrows + cmd (optionally + shift) works on desktop to jump selection to beginning/end of field
2021-01-22 17:56:18 -08:00
Kenzie Schmoll
0b3162bd9c
Create custom DiagnosticsNode type for DevTools deep links. (#74455)
* Create custom DiagnosticsNode type for DevTools deep links.
2021-01-22 16:29:42 -08:00
Shi-Hao Hong
5801f0e5fe
Expose DialogRoutes for state restoration support (#73829) 2021-01-22 16:20:44 -08:00
Kenzie Schmoll
b45088c0cf
Print DevTools inspector links in RenderFlex Overflow errors (#74251) 2021-01-21 02:59:04 -08:00
Justin McCandless
a8471a61f8
Material Desktop Context Menu (#74286)
Very simple right-click context menu for Windows and Linux in a Material-esque style.
2021-01-20 16:29:01 -08:00
Justin McCandless
24e195d918
Mac context menu (#73882)
A very minimal right-click menu for Mac desktop.
2021-01-20 13:18:25 -08:00
RomanJos
2a2e0cf100
Add clipBehavior to InteractiveViewer (#73281)
More intuitive control over whether the child can overflow out of InteractiveViewer, deterring a lot of confusion we were seeing.
2021-01-20 11:57:37 -08:00
Greg Spencer
2e3d3e6522
Revert "ListTile Material Ripple and Shape Patch (#73618)" (#74335)
This reverts commit 024c49da856918bfa6e65bb622a5bc9df91a276d because it breaks Google internal tests.
2021-01-20 11:42:48 -08:00
Nathan Walker
024c49da85
ListTile Material Ripple and Shape Patch (#73618)
This PR replaces the ColoredBox that ListTile uses with an Ink widget. That Ink widget is given a ShapeDecoration with the ListTile's color and shape. This fixes issues where the ListTile color would obscure material ripple effects, and cause the specified shape to not be respected.

List which issues are fixed by this PR. You must list at least one issue.

Fixes #73616
Fixes #63877
Fixes #67117

If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.

I modified a handful of tests related to ListTiles. The tests I changed had implementation-specific ways of checking the ListTile color. I have rewritten those so that instead of checking for a ColoredBox with a specific color, they check that a path is painted with the correct color.

I added the following tests to list_tile_test.dart:

"ListTile shows Material ripple effects on top of tileColor" (Regression test for #73616)
"ListTile shape is painted correctly" (Regression test for #63877)
I added the following test to sliver_prototype_item_extent_test.dart:

"SliverPrototypeExtentList prototypeItem paint transform is zero" (Regression test for #67117)
2021-01-19 19:28:13 -08:00
Todd Volkert
5322c6f860
Fix RenderCustomPaint intrinsics (#72103)
Make RenderCustomPaint consult its preferred size for intrinsics when it has no child. Currently, it returns 0 for its intrinsics, even if it has a non-zero preferred size.
2021-01-19 16:24:34 -08:00
xubaolin
e7772d0e2e
Reland "Improve the ScrollBar behavior when nested (#71843)" (#74104) 2021-01-19 15:44:03 -08:00
Jenn Magder
54ef030ab8
Revert "Improve the ScrollBar behavior when nested (#71843)" (#74088)
This reverts commit 99daddc2c07840f06ee7fff1d4c11675bfe97a36.
2021-01-15 16:15:52 -08:00
xubaolin
99daddc2c0
Improve the ScrollBar behavior when nested (#71843) 2021-01-15 15:24:03 -08:00
chunhtai
6a4808b4ed
Remove unused semantics tap action for readonly textfield and selectable text (#74066) 2021-01-15 12:54:03 -08:00
xubaolin
217cd102bb
fix an assertion causes by zero offset pointer scroll (#73016) 2021-01-14 13:59:03 -08:00
Justin McCandless
d9f3d2e846
Cupertino text selection menu customization (#73578)
* Making a custom iOS-style text selection menu is now much easier.
  * Exposes a new widget for the toolbar, a new widget for the buttons, and a new widget for the layout.
2021-01-13 11:14:14 -08:00
xubaolin
492ec23b34
Re-enable a ensureVisible test case (#73545) 2021-01-12 17:19:03 -08:00
Renzo Olivares
59783d0fe1
Selecting spaces on SelectableText (mobile) (#73300) 2021-01-11 11:24:03 -08:00
Hans Muller
9a43df5142
Deprecated obsolete Material classes: FlatButton, RaisedButton, OutlineButton (#73352) 2021-01-08 15:44:47 -08:00
Michael Goderbauer
24d434d156
Revert "Revert "Fix _LateInitializationError for RenderObjectElement.renderObject (#70974)" (#73575)" (#73580) 2021-01-08 12:49:04 -08:00
Michael Goderbauer
edfb6305d8
Revert "Fix _LateInitializationError for RenderObjectElement.renderObject (#70974)" (#73575)
This reverts commit c243d834ce41bc5d279b0264efbc6b3c9e0df53d.
2021-01-08 10:24:10 -08:00
Michael Goderbauer
c243d834ce
Fix _LateInitializationError for RenderObjectElement.renderObject (#70974) 2021-01-08 09:35:10 -08:00
Justin McCandless
c6aa20d4b7
Revert "Add BuildContext parameter to TextEditingController.buildTextSpan (#72344)" (#73503)
This reverts commit 4901744e62f67ad10440725d2c97e84e66ce77f5, which was a minor breaking change that I missed.  Will try to open the PR again following the breaking change process.
2021-01-07 12:34:03 -08:00