1747 Commits

Author SHA1 Message Date
Michael Goderbauer
d637b1874f
non-breaking changes for prefer_mixin lint (#77837) 2021-03-11 19:50:03 -08:00
Tong Mu
fa06b34024
Refactor: Move mouse cursor classes to "services" package (#77751) 2021-03-11 19:45:04 -08:00
Greg Spencer
a8d820a46e
Update samples to use repo analysis options, Fix sample templates and a ton of analyzer issues (#77868) 2021-03-11 16:45:03 -08:00
Jason Simmons
413c8a0b7b
Do not replace text with semantics labels in selectable text widgets (#77859) 2021-03-11 16:00:02 -08:00
Justin McCandless
541bff4058
Text Editing Movement Keys via Shortcuts (#75032)
Text editing shortcuts involving the arrow keys are no longer handled by RenderEditable's RawKeyboardListener, they use the new Shortcuts setup.  First PR in a plan to port all text editing keyboard handling to shortcuts.
2021-03-11 15:52:04 -08:00
chunhtai
aaa7f8428a
Fix gesture recognizer in selectable rich text should be focusable in… (#77730) 2021-03-11 15:40:10 -08:00
Konstantin Scheglov
3e7b208512
Fix UNNECESSARY_TYPE_CHECK_TRUE hints. (#77753) 2021-03-10 17:55:02 -08:00
chunhtai
f91ed2a30d
Adds set text semantics action to render editable (#77024)
* Adds set text semantics action to render editable

* addressing comments

* re-enable test

* fix test

* fix more test

* fix bad merge

* addressing comment

* update dynamic to Object?
2021-03-10 15:45:35 -08:00
Michael Goderbauer
807bb29888
enable prefer_function_declarations_over_variables lint (#77398) 2021-03-05 18:29:04 -08:00
Michael Goderbauer
7b251f5f37
Enable use_function_type_syntax_for_parameters lint (#77163) 2021-03-04 08:59:17 -08:00
chunhtai
b0d4d44853
Reland "fixes TextInputFormatter gets wrong old value of a selection" (#76653) 2021-03-02 11:54:02 -08:00
Michael Goderbauer
fc99e7c0d7
Enable missing_whitespace_between_adjacent_strings (#77027) 2021-03-01 18:30:17 -08:00
Swayam221
fc77610dd6
changed 'constrains' to 'constraints' in ChildLayoutHelper.dryLayoutC… (#76963) 2021-03-01 00:36:03 -08:00
Greg Spencer
7dbd586e04
Reland "ListTile Material Ripple and Shape Patch (#74373)" (#76892)
This reverts commit f8cd24d in an attempt to re-land it.

There are no changes in this PR from #74373, since it only failed Google internal tests, and we think that the solution involves updating those tests instead of changing this code.
2021-02-26 22:10:19 -08:00
LongCatIsLooong
ac4d5099d8
Reland #74722 (#75604) 2021-02-24 11:01:03 -08:00
chunhtai
b5139515c1
Revert "fixes TextInputFormatter gets wrong old value of a selection (#75541)" (#76627)
This reverts commit a46139a2cef8144444a3e13a3970e9a267304b91.
2021-02-23 11:25:01 -08:00
nt4f04uNd
9b6d267ea3
adding freeze parameter to Texture and TextureBox (#75738) 2021-02-22 10:21:03 -08:00
chunhtai
a46139a2ce
fixes TextInputFormatter gets wrong old value of a selection (#75541) 2021-02-19 11:16:02 -08:00
creativecreatorormaybenot
c51fba9736
Improve lifecycle docs (#76021) 2021-02-18 14:31:03 -08:00
Chinmoy
c785efadda
Fixed improper assertion of maxCrossAxisExtent (#75095) 2021-02-18 14:26:11 -06:00
Ian Hickson
341984237e
Const constructor audit. (#76162) 2021-02-17 19:46:04 -08:00
Jonah Williams
820fb0bf2b
[flutter_tools] stop using throttled print for service extensions (#76022) 2021-02-16 12:11:57 -08:00
Greg Spencer
f8cd24de95
Revert "ListTile Material Ripple and Shape Patch (#74373)" (#76134)
This reverts commit 422916d201b21bf9c7e65225d520029e30ab278d because it causes unexpected changes in the rendering of the background of a ListTile.
2021-02-16 11:24:17 -08:00
Nathan Walker
422916d201
ListTile Material Ripple and Shape Patch (#74373)
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.
2021-02-12 14:16:51 -08:00
Tomasz Gucio
d031a61a62
Add RenderEditable keys listener back in attach() (#75614) 2021-02-09 12:36:04 -08:00
suragch
501a3a884f
Fixed grammatical typo (#75554) 2021-02-09 18:44:43 +01:00
LongCatIsLooong
02d441ea55
Revert "TextField and last input character should visible on the screen when the cursor is not shown (#74722)" (#75532)
This reverts commit cd771404e9da3606405c29e1c380684e449665c4.
2021-02-05 17:17:12 -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
LongCatIsLooong
76be55813b
Move caret/highlight painting to custom painters (#72828) 2021-02-01 14:41:04 -08:00
creativecreatorormaybenot
80372f1b71
Fix formatting in rendering/box (#75102) 2021-02-01 13:31:04 -08:00
chunhtai
13fe079bb3
fixes preceision error during SliverGridRegularTileLayout (#74851) 2021-02-01 12:46:05 -08:00
xubaolin
cd771404e9
TextField and last input character should visible on the screen when the cursor is not shown (#74722) 2021-01-29 09:29:09 -08:00
Alexandre Ardhuin
bd69fa5935
use predefined constants (#74627) 2021-01-25 18:59:05 -08:00
xubaolin
1e7f3955ce
fix a RenderBox.size access exception (#74402) 2021-01-25 18:54:05 -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
Kate Lovett
97481e125a
Remove deprecated Layer.findAll (#73749) 2021-01-20 15:44:02 -08:00
Michael Goderbauer
def31b42b1
Improve DebugCreator docs (#74341) 2021-01-20 13:42:21 -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
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
Kate Lovett
3fbe1a5904
Remove deprecation from RenderView (#73748) 2021-01-19 14:49:03 -08:00
Jia Hao
8a5ace25a5
Improve performance of Widget Tests (#70730) 2021-01-12 17:29:03 -08:00
Renzo Olivares
59783d0fe1
Selecting spaces on SelectableText (mobile) (#73300) 2021-01-11 11:24:03 -08:00
Justin McCandless
fc27828c87
Work around the crash by preventing deletes on -1,-1 selection (#73417) 2021-01-07 10:44:02 -08:00
Nathan Walker
b65a235139
SliverAppBar with ShrinkWrap Patch (#73195) 2021-01-07 10:39:02 -08:00
Sam Rawlins
1420d956b1
Remove "unnecessary" imports. (#73368) 2021-01-06 15:44:03 -08:00
xubaolin
337290e66d
fix a RenderSliverFixedExtentBoxAdaptor Exception (#72922) 2020-12-29 11:34:02 -08:00
creativecreatorormaybenot
19a835498e
Correct typos in RenderParagraph (#72930) 2020-12-24 21:24:03 -08:00
Chinmoy
3cd1166a65
Added mainAxisExtent to SliverGridDelegateWithFixedCrossAxisCount and SliverGridDelegateWithMaxCrossAxisExtent (#71376) 2020-12-22 16:44:05 -08:00