chunhtai
352ad3a9ef
Adds API in semanticsconfiguration to decide how to merge child semanticsConfigurations ( #110730 )
...
* Adds semantics merger API and fix input decorator
* addressing comments
* abstractnode to object
* feature complete
* addressing comments
* fix comments
* conditionally add sort order
* fix bool
* fix test
* more fix
* fix tests
2022-12-07 16:59:16 +00:00
Loïc Sharma
05c6df6d1f
Improve Flex layout comment ( #116004 )
2022-12-05 20:50:06 +00:00
chunhtai
224fae5063
Fix iOS selectWordEdge doesn't account for affinity ( #115849 )
...
* Fix iOS selectWordEdge doesn't account for affinity
* fix test
* update
2022-11-28 17:32:17 +00:00
Jim Graham
0eb2d51ec9
Use the new pushImageFilter offset parameter to fix the transform of the children ( #113673 ) ( #115884 )
2022-11-23 07:42:34 +00:00
Jonah Williams
9bb07b5f70
Revert "Use the new pushImageFilter offset parameter to fix the transform of the children ( #113673 )" ( #115861 )
...
This reverts commit 91aeda7bf6f977207d7ac07ca46c26560007a244.
2022-11-22 13:29:56 -08:00
Jim Graham
91aeda7bf6
Use the new pushImageFilter offset parameter to fix the transform of the children ( #113673 )
2022-11-22 17:24:44 +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
fzyzcjy
7d2b01132d
Fix logic error in markNeedsPaint ( #112735 )
...
* Update object.dart
* Update object.dart
* Update object.dart
* Update object.dart
* Update object.dart
2022-11-16 00:06:51 +00:00
Maurice Parrish
95ace11afa
Include initial offset when using PlatformViewSurface ( #114103 )
...
* add position to layout creation
* make position nullable
* fix tests
* test
* clear test size
* clear device pixel ratio
* add more documentaiton
* add comment about localToGlobal
2022-11-15 18:21:37 +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
Kate Lovett
0e70a97e2e
Refactor Animated[List, Grid, SliverList, SliverGrid] to share common code ( #113793 )
2022-11-02 16:54:11 +00:00
fzyzcjy
c23b5ca7db
Fix addToScene documentation ( #113987 )
2022-11-01 22:18:52 +00:00
fzyzcjy
e37ab48bca
Introduce debugWithActiveLayoutCleared to avoid duplicated code ( #114003 )
2022-11-01 22:17:11 +00:00
fzyzcjy
fb9065fe00
Layer ... was previously used as oldLayer assertion error in debug mode, and page being blank in release mode, caused by LeaderLayer addToScene bug (#113998 )
2022-11-01 22:17:08 +00:00
Greg Spencer
37b72342b0
Add maybeOf for all the cases where of returns nullable. ( #114120 )
2022-10-31 23:09:09 +00:00
fzyzcjy
c8fc2858de
Fix incorrectly named "debug" prefix ( #114117 )
2022-10-31 15:39:52 +00:00
Justin McCandless
0b451b6dfd
Context Menus ( #107193 )
...
* Can show context menus anywhere in the app, not just on text.
* Unifies all desktop/mobile context menus to go through one class (ContextMenuController).
* All context menus are now just plain widgets that can be fully customized.
* Existing default context menus can be customized and reused.
2022-10-28 12:40:09 -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
Taha Tesser
df259c5881
Add clipBehavior and apply borderRadius to DataTable's Material ( #113205 )
2022-10-25 20:38:11 +00:00
Tomasz Gucio
563e0a4aae
Page Up / Page Down in text fields ( #107602 )
2022-10-25 16:54:10 +00:00
Renzo Olivares
29397c2c7d
Fix selectWordsInRange when last word is located before the first word ( #113224 )
2022-10-24 17:53:48 +00:00
Greg Spencer
6d67fbb92c
Add HitTestBehavior to TapRegion ( #113634 )
2022-10-18 20:12:57 +00:00
Jenn Magder
117407b0fa
Revert "Minor change type nullability ( #112778 )" ( #113246 )
...
This reverts commit 21fab6f960a6fd2702bca2501032dd16f34fe114.
2022-10-10 17:57:56 -07:00
fzyzcjy
21fab6f960
Minor change type nullability ( #112778 )
2022-10-10 23:12:29 +00:00
Greg Spencer
7523ab5cc1
Add SliverAnimatedGrid and AnimatedGrid ( #112982 )
2022-10-07 22:15:11 +00:00
xubaolin
9bd6ff33ef
fix a CupertinoDatePicker bug ( #112697 )
2022-10-07 18:35:15 +00:00
LongCatIsLooong
78e94155a0
[RenderEditable] report real height when maxLines == 1. ( #112029 )
2022-09-28 21:40:47 +00:00
Greg Spencer
8c271e5cb8
Implement Material MenuBar and MenuAnchor ( #112239 )
...
This implements a MenuBar widget that can render a Material menu bar, and a MenuAnchor widget used to create a cascading menu in a region. The menus are drawn in the overlay, while the menu bar itself is in the regular widget tree. Keyboard traversal works between the two.
This implementation of the MenuBar uses MenuAnchor to create a cascading menu that contains widgets representing the menu items. These menu items can be any kind of widget, but are typically SubmenuButtons that host submenus, or MenuItemButtons that have shortcut hints (but don't actually activate the shortcuts) and don't host submenus.
Cascading menus can be created outside of a MenuBar by using a MenuAnchor. They can be either given a specific location to appear (a coordinate), or they can be located by the MenuAnchor region that wraps the control that opens them.
The developer may also create a MenuController to pass to the various menu primitives (MenuBar or MenuAnchor) to associate menus so that they can be traversed together and closed together. Creating a controller is not required.
2022-09-28 14:10:18 -07: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
Dan Field
36a5a0f55f
Avoid sending zero transform semantic nodes to the engine ( #111843 )
2022-09-19 20:11:47 +00:00
fzyzcjy
4ead92cf9b
Fix UiKitView which wrongly unconditionally repaints ( #111790 )
2022-09-19 17:16:18 +00:00
chunhtai
bcc1dc6b99
Makes TextBoundary and its subclasses public ( #110367 )
2022-09-16 22:05:04 +00:00
Greg Spencer
c03eef4d57
Remove no-longer-needed clamping of RRect radii ( #111668 )
2022-09-15 20:54:18 +00:00
Greg Spencer
5f9ad01ebf
Prepare the framework for having RRect assert on negative radii ( #111515 )
2022-09-14 23:21:01 +00:00
Greg Spencer
228ea2c28e
Fix references to symbols to use brackets instead of backticks ( #111331 )
2022-09-12 18:31:45 +00:00
yaakovschectman
4d3c122434
Use tristate checkbox engine changes ( #111032 )
...
* Introduce tests for tristate checkboxes
* Initial
* Use tristate changes in engine
* Flutter_test matchers test update
* Comments, tests
* Update packages/flutter/lib/src/semantics/semantics.dart
Co-authored-by: Chris Bracken <chris@bracken.jp>
* Assert mutual exclusivity
* Assert valid state before updating state
* Update packages/flutter/lib/src/semantics/semantics.dart
Typo fix in comment
Co-authored-by: Loïc Sharma <737941+loic-sharma@users.noreply.github.com>
Co-authored-by: Chris Bracken <chris@bracken.jp>
Co-authored-by: Loïc Sharma <737941+loic-sharma@users.noreply.github.com>
2022-09-08 17:41:54 -04:00
Jonah Williams
7e1e840999
[framework] revert removal of opacity ( #111202 )
2022-09-08 18:33:23 +00:00
Kenzie Davisson
fe309e3415
Create service extension consts for rendering lib ( #111149 )
2022-09-07 17:54:54 -07:00
Dan Field
eaff1562a9
Dispose Paragraph objects ( #110627 )
2022-09-06 20:45:55 +00:00
Pierre-Louis
0c2f7bc2a2
Remove errant double spaces ( #110758 )
2022-09-02 04:00:58 +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
Jonah Williams
44d3181deb
[framework] remove restriction on texture layer rasterization ( #109900 )
2022-08-20 03:06:23 +00:00
Greg Spencer
7a8c84f9d9
Some misc changes needed for MenuBar implementation. ( #109555 )
2022-08-17 20:43:10 +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
Mahesh Jamdade
f9331e2c6c
Pass fit property to RenderIndexedStack ( #109295 )
2022-08-16 12:08:26 +00:00
stuartmorgan
ab23233fa8
Reland: Fix Android platform view creation flow ( #109405 )
2022-08-12 01:26:19 +00:00