758 Commits

Author SHA1 Message Date
Michael Goderbauer
bb73121cb4
Remove unnecessary null checks in flutter/test (#118905) 2023-01-20 22:09:06 +00:00
LongCatIsLooong
0a2e0a4730
Avoid using TextAffinity in TextBoundary (#117446)
* Avoid affinity like the plague

* ignore lint

* clean up

* fix test

* review

* Move wordboundary to text painter

* docs

* fix tests
2023-01-05 17:04:15 +00:00
Sam Rawlins
63653e8272
== override parameters are non-nullable (#117839) 2023-01-04 01:13:21 +00:00
Michael Goderbauer
b308555ed1
Enable dangling_library_doc_comments and library_annotations lints (#117365) 2022-12-20 16:03:21 -08:00
Michael Goderbauer
81bc54be75
Enable use_colored_box lint (#117370) 2022-12-20 14:09:55 -08:00
Michael Goderbauer
fa3777bd3e
Enable sized_box_shrink_expand lint (#117371)
* Enable  lint

* note about discarded_futures

* note about use_decorated_box

* update note on require_trailing_commas
2022-12-20 19:07:15 +00:00
Lucas.Xu
b20a9e0a37
imporve gesture recognizer semantics test cases (#117257) 2022-12-17 21:00:46 +01:00
Lucas.Xu
80e1008cbc
fix: #110342 unable to update rich text widget gesture recognizer (#116849) 2022-12-16 09:32:09 +01:00
Callum Moffat
c4b8046d96
Floating cursor cleanup (#116746)
* Floating cursor cleanup

* Use TextSelection.fromPosition
2022-12-10 00:24:23 +00:00
chunhtai
c2b29501f4
Add selection feedback for both selection area and text field (#115373)
* Add selection feedback for both selection area and text field

* Addressing comment

* Fixes more test
2022-11-17 18:27:56 +00:00
Bruno Leroux
f1cdfa289d
Use AppBar.systemOverlayStyle to style system navigation bar (#104827)
* Use upper AnnotatedRegion properties when no bottom one found (and vice versa)

* Update comments

Co-authored-by: Bruno Leroux <bruno.leroux@gmail.com>
2022-11-07 20:42:56 +00:00
chunhtai
80bf355192
Support keyboard selection in SelectabledRegion (#112584)
* Support keyboard selection in selectable region

* fix some comments

* addressing comments
2022-11-04 10:55:28 -07:00
Alex Wallen
23d258df57
Remove deprecated updateSemantics API usage. (#113382) 2022-10-26 20:20:41 +00:00
Tomasz Gucio
e76f88316a
Cache TextPainter plain text value to improve performance (#109841) 2022-10-25 22:51:35 +02:00
LongCatIsLooong
78e94155a0
[RenderEditable] report real height when maxLines == 1. (#112029) 2022-09-28 21:40:47 +00:00
Polina Cherkasova
0a35cf95eb
Instrument State, Layer, RenderObject and Element. (#111328) 2022-09-20 16:39:46 -07:00
Kate Lovett
30c2d77d16
Remove Deprecated RenderUnconstrainedBox (#111711) 2022-09-20 00:54:36 +00:00
fzyzcjy
4ead92cf9b
Fix UiKitView which wrongly unconditionally repaints (#111790) 2022-09-19 17:16:18 +00:00
Jonah Williams
7e1e840999
[framework] revert removal of opacity (#111202) 2022-09-08 18:33:23 +00:00
Jason Simmons
f57fcac717
Clear the static _debugDoingBaseline flag if baseline calculation throws (#110387) 2022-08-30 19:49:17 +00:00
Greg Spencer
ee8488e871
Remove warnings when UnconstrainedBox and ConstraintsTransformBox are clipped (#110393) 2022-08-29 17:21:04 +00:00
Kate Lovett
7e12b37111
Deprecate 2018 text theme parameters (#109817) 2022-08-22 20:00:34 +00:00
Jonah Williams
44d3181deb
[framework] remove restriction on texture layer rasterization (#109900) 2022-08-20 03:06:23 +00:00
fzyzcjy
0e85609cf8
Fix that RenderEditable (TextField) ignores offset in painting, making text selections shifted when offset is nonzero (#109287)
Small fix in text layout math, unlikely to affect most normal usages.
2022-08-16 09:39:06 -07:00
Michael Goderbauer
ed0c8d77f8
Remove some outdated ignores from framework (#108915) 2022-08-03 22:42:06 +00:00
Michael Goderbauer
c7498f607b
Improve dumpSemanticsTree error when semantics are unavailable (#108574) 2022-07-29 22:37:06 +00:00
Dan Field
0cc7db54ce
Guard against usage after async callbacks in RenderAndroidView, unregister listener (#108496) 2022-07-28 18:36:04 +00:00
Tomasz Gucio
16c25caa44
Add RenderRepaintBoundary.toImageSync() method (#108280) 2022-07-27 05:17:04 +00:00
Jonah Williams
9ae37030ae
Use toPictureSync for faster zoom page transition (#106621) 2022-07-22 15:58:04 +00:00
Alexandre Ardhuin
ccd33631e3
enable combinators_ordering (#107847) 2022-07-18 22:04:07 +00:00
Christopher Fujino
b26346f2cc
fix null safe check in RenderIndexedStack (#107581) 2022-07-13 22:36:05 +00:00
Kohei Seino
41405ff0f3
Add RelativeRect.fromDirectional factory (#107059)
Add `fromDirectional` factory to `RelativeRect` for when an app needs to consider both TextDirection.ltr and TextDirection.rtl.

```
RelativeRect.fromDirectional(
    textDirection: textDirection,
    start: 10.0,
    top: 20.0,
    end: 30.0,
    bottom: 40.0,
);
```

Addresses https://github.com/flutter/flutter/issues/107058.
2022-07-07 10:18:06 -07:00
Jonah Williams
d36ecec5b9
[framework] partial removal of forced compositing from opacity (#106989) 2022-07-02 16:49:06 +00:00
LongCatIsLooong
09a5382ff9
Add error messages to _debugCanPerformMutations (#105638) 2022-07-02 00:55:04 +00:00
Xilai Zhang
a7fe235c8c
Revert "Reland "Clipping if only one character text overflows (#99146)" (#102130)" (#106964)
This reverts commit 3f43d9f3d4105d4190c839e087c42d79ebe092e8.
2022-07-01 12:46:21 -07:00
xubaolin
3f43d9f3d4
Reland "Clipping if only one character text overflows (#99146)" (#102130)
Fixes a text clipping edge case.
2022-06-29 14:57:16 -07:00
Alexandre Ardhuin
526ca0d498
Export public API types from foundation/scheduler/gestures/semantics (#106409) 2022-06-24 21:21:05 +00:00
Jonah Williams
c12b0de004
remove opacity layer at fully opaque (#106351) 2022-06-21 11:05:24 -07:00
Bruno Leroux
58007fc64c
Fix debugPaintSize throws 'Null Check error' (#106108) 2022-06-17 06:16:06 +00:00
Alexandre Ardhuin
56c4e3cdd8
add some exports of public API in foundation/serialization.dart (#104231) 2022-06-08 13:33:12 -07:00
Zachary Anderson
ac7e29a40f
Revert "remove forced compositing from opacity" (#105489) 2022-06-07 00:43:05 -07:00
Jonah Williams
febc6a14f5
remove forced compositing from opacity (#105334) 2022-06-06 12:13:07 -07:00
Pierre-Louis
e71eb183d8
Use curly_braces_in_flow_control_structures for rendering (#104611)
* Use `curly_braces_in_flow_control_structures` for `rendering`

* fix comments

* fix dangling
2022-05-25 19:57:57 +02:00
Michael Goderbauer
d5fbc3750e
Remove unused code from tests (#104550) 2022-05-25 09:38:09 -07:00
chunhtai
efb9368573
Supports global selection for all devices (#95226)
* Support global selection

* addressing comments

* add new test

* Addressing review comments

* update

* addressing comments

* addressing comments

* Addressing comments

* fix build
2022-05-24 13:53:55 -07:00
gaaclarke
914556ea64
Started sharing SemanticsProperties between the Widget and the RenderObject (#104281) 2022-05-23 16:18:08 -07:00
Dan Field
1c852cedaa
Do not assert callbacks contains key if disposed (#104292) 2022-05-20 14:51:14 -07:00
Casey Hillers
da105b2b24
Revert "[framework] inline AbstractNode into RenderObject" (#104257) 2022-05-20 11:43:11 -07:00
Jonah Williams
24bd28f696
[framework] inline AbstractNode into RenderObject (#103832) 2022-05-19 14:28:09 -07:00
Dan Field
d50b5a0749
Stop recommending "shrinkWrap" (#104008) 2022-05-18 17:47:15 -07:00