[two_dimensional_scrollables] Fix span border decorations in flipped cross axes#11334
[two_dimensional_scrollables] Fix span border decorations in flipped cross axes#11334auto-submit[bot] merged 6 commits intoflutter:mainfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request fixes an issue where TableSpan borders were flipped when one or both axis directions were reversed. The fix involves introducing a crossAxisDirection parameter to SpanDecorationPaintDetails and updating the SpanBorder.paint method to use this new parameter for accurate border rendering. The RenderTableViewport and RenderTreeViewport classes were updated to pass the appropriate cross-axis direction. A new test case was added to verify the fix for a reversed horizontal axis. The reviewer suggests adding an additional test case for a row span with a reversed vertical axis to improve test coverage.
packages/two_dimensional_scrollables/test/table_view/table_span_test.dart
Show resolved
Hide resolved
Oh good call! I will add the regression test references, thanks! |
packages/two_dimensional_scrollables/test/table_view/table_span_test.dart
Show resolved
Hide resolved
packages/two_dimensional_scrollables/test/table_view/table_span_test.dart
Show resolved
Hide resolved
packages/two_dimensional_scrollables/test/table_view/table_span_test.dart
Show resolved
Hide resolved
…n flipped cross axes (flutter/packages#11334)
|
Thanks 🙏 |
flutter/packages@8dcfd11...5909bdd 2026-03-25 47866232+chunhtai@users.noreply.github.com [ci] add more permissions for create-pull-request (flutter/packages#11302) 2026-03-25 stuartmorgan@google.com [various] Add `unintended_html_in_doc_comment` to analysis options (flutter/packages#11303) 2026-03-25 matt.boetger@gmail.com Use deprecated dependency until legacy renderer is removed (flutter/packages#11185) 2026-03-25 louisehsu@google.com [in_app_purchase_storekit] Address flaky tests (flutter/packages#11270) 2026-03-25 stuartmorgan@google.com [google_maps_flutter] Fix A2A iOS builds (flutter/packages#11290) 2026-03-25 stuartmorgan@google.com [mustache_template] Fix broken README link (flutter/packages#11306) 2026-03-25 stuartmorgan@google.com [ci] Add a workflow to auto-remove CICD label (flutter/packages#11301) 2026-03-25 stuartmorgan@google.com [various] Convert plugin builds to Kotlin gradle (flutter/packages#11172) 2026-03-25 spkhalad@gmail.com [webview_flutter_platform_interface] Add support for getting cookie (flutter/packages#11037) 2026-03-25 stuartmorgan@google.com [cupertino_icons] Remove empty Dart file (flutter/packages#11308) 2026-03-25 stuartmorgan@google.com [camera] Regenerate iOS example with Swift (flutter/packages#11283) 2026-03-25 tarrinneal@gmail.com [pigeon] Optimize data class equality and hashing in Dart, Kotlin, java, and Swift, adds equality in other languages (flutter/packages#11140) 2026-03-25 katelovett@google.com [two_dimensional_scrollables] Fix span border decorations in flipped cross axes (flutter/packages#11334) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Fixes flutter/flutter#177117
Fixes an issue in two_dimensional_scrollables where TableSpan vertical borders were incorrectly flipped when ScrollableDetails.horizontal was reversed.
The SpanBorder.paint method previously used its own axisDirection to determine leading and trailing edge flipping for a cross-axis border component. This works in natural scrolling directions, but creates an inverted orientation assumption when the perpendicular axis is reversed.
Does not affect TreeView, since that widget does not allow for reversed axes.
Pre-Review Checklist
[shared_preferences]///).If you need help, consider asking for advice on the #hackers-new channel on Discord.
Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the
gemini-code-assistbot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.Footnotes
Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2