Uh oh!
There was an error while loading. Please reload this page.
[two_dimensional_scrollables] Fix missing leading cache extent for TableView - #9636
Conversation
Piinks
commented
Jul 16, 2025
Let's try it out.. /gemini review ? |
Piinks
commented
Jul 16, 2025
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces new getters for the leading cache boundary and renames the existing ones for the trailing boundary, which improves clarity. The logic is applied consistently for both rows and columns. The tests have also been updated thoroughly to verify the new behavior. I've found one minor inconsistency in the comparison operator, which I've commented on. Overall, great work!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Piinks
commented
Jul 17, 2025
Once more with feeling! /gemini review |
Piinks
commented
Jul 17, 2025
Hmm, I wonder if it must be a stand alone comment.. |
Piinks
commented
Jul 17, 2025
/gemini review |
There was a problem hiding this comment.
Code Review
The code changes introduce a fix for a missing leading cache extent in TableView. The cache extent was not being applied to leading children, only trailing. The changes involve modifications to the table.dart file and updates to assertions in the table_test.dart file to reflect the new behavior.
| expect(find.text('R0:C3'), findsNothing); // Not laid out | ||
| expect(find.text('R0:C4'), findsOneWidget); // leading cache extent |
There was a problem hiding this comment.
That is what the code is. 😆
| @@ -553,9 +555,11 @@ void main() { | |||
| tester.getRect(find.text('R4:C11')), | |||
| const Rect.fromLTRB(1000.0, 800.0, 1200.0, 1000.0), | |||
| ); | |||
There was a problem hiding this comment.
Probably still wrong, but not sure where this one is referring to.
Piinks
commented
Jul 17, 2025
/gemini summary |
Summary of ChangesThis pull request addresses a critical rendering and performance bug in the Highlights
Changelog
Activity
|
Uh oh!
There was an error while loading. Please reload this page.
flutter/packages@cb8fef6...9c85e5e 2025-07-21 engine-flutter-autoroll@skia.org Roll Flutter from 70a3c3c to 70cdc0c (4 revisions) (flutter/packages#9658) 2025-07-21 stuartmorgan@google.com [google_sign_in] Update to GoogleSignIn-iOS 9 (flutter/packages#9655) 2025-07-20 engine-flutter-autoroll@skia.org Roll Flutter from 440713c to 70a3c3c (11 revisions) (flutter/packages#9653) 2025-07-20 stuartmorgan@google.com Have Gemini ignore Flutter version pin (flutter/packages#9647) 2025-07-18 engine-flutter-autoroll@skia.org Roll Flutter from 9c626d9 to 440713c (19 revisions) (flutter/packages#9646) 2025-07-18 robert.odrowaz@leancode.pl [camera_avfoundation] Implementation swift migration - part 8 (flutter/packages#9635) 2025-07-17 49699333+dependabot[bot]@users.noreply.github.com [dependabot]: Bump com.android.tools.build:gradle from 8.9.0 to 8.11.1 in /packages/webview_flutter/webview_flutter_android/android (flutter/packages#9609) 2025-07-17 katelovett@google.com [two_dimensional_scrollables] Fix missing leading cache extent for TableView (flutter/packages#9636) 2025-07-17 49699333+dependabot[bot]@users.noreply.github.com [dependabot]: Bump com.android.tools.build:gradle from 8.9.0 to 8.11.1 in /packages/interactive_media_ads/android (flutter/packages#9623) 2025-07-17 10687576+bparrishMines@users.noreply.github.com [pigeon] Adds overrides for constructors and static members of ProxyApis (flutter/packages#9515) 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
flutter/packages@cb8fef6...9c85e5e 2025-07-21 engine-flutter-autoroll@skia.org Roll Flutter from 70a3c3c to 70cdc0c (4 revisions) (flutter/packages#9658) 2025-07-21 stuartmorgan@google.com [google_sign_in] Update to GoogleSignIn-iOS 9 (flutter/packages#9655) 2025-07-20 engine-flutter-autoroll@skia.org Roll Flutter from 440713c to 70a3c3c (11 revisions) (flutter/packages#9653) 2025-07-20 stuartmorgan@google.com Have Gemini ignore Flutter version pin (flutter/packages#9647) 2025-07-18 engine-flutter-autoroll@skia.org Roll Flutter from 9c626d9 to 440713c (19 revisions) (flutter/packages#9646) 2025-07-18 robert.odrowaz@leancode.pl [camera_avfoundation] Implementation swift migration - part 8 (flutter/packages#9635) 2025-07-17 49699333+dependabot[bot]@users.noreply.github.com [dependabot]: Bump com.android.tools.build:gradle from 8.9.0 to 8.11.1 in /packages/webview_flutter/webview_flutter_android/android (flutter/packages#9609) 2025-07-17 katelovett@google.com [two_dimensional_scrollables] Fix missing leading cache extent for TableView (flutter/packages#9636) 2025-07-17 49699333+dependabot[bot]@users.noreply.github.com [dependabot]: Bump com.android.tools.build:gradle from 8.9.0 to 8.11.1 in /packages/interactive_media_ads/android (flutter/packages#9623) 2025-07-17 10687576+bparrishMines@users.noreply.github.com [pigeon] Adds overrides for constructors and static members of ProxyApis (flutter/packages#9515) 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
flutter/packages@cb8fef6...9c85e5e 2025-07-21 engine-flutter-autoroll@skia.org Roll Flutter from 70a3c3c to 70cdc0c (4 revisions) (flutter/packages#9658) 2025-07-21 stuartmorgan@google.com [google_sign_in] Update to GoogleSignIn-iOS 9 (flutter/packages#9655) 2025-07-20 engine-flutter-autoroll@skia.org Roll Flutter from 440713c to 70a3c3c (11 revisions) (flutter/packages#9653) 2025-07-20 stuartmorgan@google.com Have Gemini ignore Flutter version pin (flutter/packages#9647) 2025-07-18 engine-flutter-autoroll@skia.org Roll Flutter from 9c626d9 to 440713c (19 revisions) (flutter/packages#9646) 2025-07-18 robert.odrowaz@leancode.pl [camera_avfoundation] Implementation swift migration - part 8 (flutter/packages#9635) 2025-07-17 49699333+dependabot[bot]@users.noreply.github.com [dependabot]: Bump com.android.tools.build:gradle from 8.9.0 to 8.11.1 in /packages/webview_flutter/webview_flutter_android/android (flutter/packages#9609) 2025-07-17 katelovett@google.com [two_dimensional_scrollables] Fix missing leading cache extent for TableView (flutter/packages#9636) 2025-07-17 49699333+dependabot[bot]@users.noreply.github.com [dependabot]: Bump com.android.tools.build:gradle from 8.9.0 to 8.11.1 in /packages/interactive_media_ads/android (flutter/packages#9623) 2025-07-17 10687576+bparrishMines@users.noreply.github.com [pigeon] Adds overrides for constructors and static members of ProxyApis (flutter/packages#9515) 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
…bleView (flutter#9636) Fixesflutter/flutter#167813 The cache extent was not being applied to leading children, only trailing. This fixes that. Will check TreeView to see if the same issue applies after this. ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
flutter/packages@cb8fef6...9c85e5e 2025-07-21 engine-flutter-autoroll@skia.org Roll Flutter from 70a3c3c to 70cdc0c (4 revisions) (flutter/packages#9658) 2025-07-21 stuartmorgan@google.com [google_sign_in] Update to GoogleSignIn-iOS 9 (flutter/packages#9655) 2025-07-20 engine-flutter-autoroll@skia.org Roll Flutter from 440713c to 70a3c3c (11 revisions) (flutter/packages#9653) 2025-07-20 stuartmorgan@google.com Have Gemini ignore Flutter version pin (flutter/packages#9647) 2025-07-18 engine-flutter-autoroll@skia.org Roll Flutter from 9c626d9 to 440713c (19 revisions) (flutter/packages#9646) 2025-07-18 robert.odrowaz@leancode.pl [camera_avfoundation] Implementation swift migration - part 8 (flutter/packages#9635) 2025-07-17 49699333+dependabot[bot]@users.noreply.github.com [dependabot]: Bump com.android.tools.build:gradle from 8.9.0 to 8.11.1 in /packages/webview_flutter/webview_flutter_android/android (flutter/packages#9609) 2025-07-17 katelovett@google.com [two_dimensional_scrollables] Fix missing leading cache extent for TableView (flutter/packages#9636) 2025-07-17 49699333+dependabot[bot]@users.noreply.github.com [dependabot]: Bump com.android.tools.build:gradle from 8.9.0 to 8.11.1 in /packages/interactive_media_ads/android (flutter/packages#9623) 2025-07-17 10687576+bparrishMines@users.noreply.github.com [pigeon] Adds overrides for constructors and static members of ProxyApis (flutter/packages#9515) 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
flutter/packages@cb8fef6...9c85e5e 2025-07-21 engine-flutter-autoroll@skia.org Roll Flutter from 70a3c3c to 70cdc0c (4 revisions) (flutter/packages#9658) 2025-07-21 stuartmorgan@google.com [google_sign_in] Update to GoogleSignIn-iOS 9 (flutter/packages#9655) 2025-07-20 engine-flutter-autoroll@skia.org Roll Flutter from 440713c to 70a3c3c (11 revisions) (flutter/packages#9653) 2025-07-20 stuartmorgan@google.com Have Gemini ignore Flutter version pin (flutter/packages#9647) 2025-07-18 engine-flutter-autoroll@skia.org Roll Flutter from 9c626d9 to 440713c (19 revisions) (flutter/packages#9646) 2025-07-18 robert.odrowaz@leancode.pl [camera_avfoundation] Implementation swift migration - part 8 (flutter/packages#9635) 2025-07-17 49699333+dependabot[bot]@users.noreply.github.com [dependabot]: Bump com.android.tools.build:gradle from 8.9.0 to 8.11.1 in /packages/webview_flutter/webview_flutter_android/android (flutter/packages#9609) 2025-07-17 katelovett@google.com [two_dimensional_scrollables] Fix missing leading cache extent for TableView (flutter/packages#9636) 2025-07-17 49699333+dependabot[bot]@users.noreply.github.com [dependabot]: Bump com.android.tools.build:gradle from 8.9.0 to 8.11.1 in /packages/interactive_media_ads/android (flutter/packages#9623) 2025-07-17 10687576+bparrishMines@users.noreply.github.com [pigeon] Adds overrides for constructors and static members of ProxyApis (flutter/packages#9515) 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
flutter/packages@cb8fef6...9c85e5e 2025-07-21 engine-flutter-autoroll@skia.org Roll Flutter from 70a3c3c to 70cdc0c (4 revisions) (flutter/packages#9658) 2025-07-21 stuartmorgan@google.com [google_sign_in] Update to GoogleSignIn-iOS 9 (flutter/packages#9655) 2025-07-20 engine-flutter-autoroll@skia.org Roll Flutter from 440713c to 70a3c3c (11 revisions) (flutter/packages#9653) 2025-07-20 stuartmorgan@google.com Have Gemini ignore Flutter version pin (flutter/packages#9647) 2025-07-18 engine-flutter-autoroll@skia.org Roll Flutter from 9c626d9 to 440713c (19 revisions) (flutter/packages#9646) 2025-07-18 robert.odrowaz@leancode.pl [camera_avfoundation] Implementation swift migration - part 8 (flutter/packages#9635) 2025-07-17 49699333+dependabot[bot]@users.noreply.github.com [dependabot]: Bump com.android.tools.build:gradle from 8.9.0 to 8.11.1 in /packages/webview_flutter/webview_flutter_android/android (flutter/packages#9609) 2025-07-17 katelovett@google.com [two_dimensional_scrollables] Fix missing leading cache extent for TableView (flutter/packages#9636) 2025-07-17 49699333+dependabot[bot]@users.noreply.github.com [dependabot]: Bump com.android.tools.build:gradle from 8.9.0 to 8.11.1 in /packages/interactive_media_ads/android (flutter/packages#9623) 2025-07-17 10687576+bparrishMines@users.noreply.github.com [pigeon] Adds overrides for constructors and static members of ProxyApis (flutter/packages#9515) 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
flutter/packages@cb8fef6...9c85e5e 2025-07-21 engine-flutter-autoroll@skia.org Roll Flutter from 70a3c3c to 70cdc0c (4 revisions) (flutter/packages#9658) 2025-07-21 stuartmorgan@google.com [google_sign_in] Update to GoogleSignIn-iOS 9 (flutter/packages#9655) 2025-07-20 engine-flutter-autoroll@skia.org Roll Flutter from 440713c to 70a3c3c (11 revisions) (flutter/packages#9653) 2025-07-20 stuartmorgan@google.com Have Gemini ignore Flutter version pin (flutter/packages#9647) 2025-07-18 engine-flutter-autoroll@skia.org Roll Flutter from 9c626d9 to 440713c (19 revisions) (flutter/packages#9646) 2025-07-18 robert.odrowaz@leancode.pl [camera_avfoundation] Implementation swift migration - part 8 (flutter/packages#9635) 2025-07-17 49699333+dependabot[bot]@users.noreply.github.com [dependabot]: Bump com.android.tools.build:gradle from 8.9.0 to 8.11.1 in /packages/webview_flutter/webview_flutter_android/android (flutter/packages#9609) 2025-07-17 katelovett@google.com [two_dimensional_scrollables] Fix missing leading cache extent for TableView (flutter/packages#9636) 2025-07-17 49699333+dependabot[bot]@users.noreply.github.com [dependabot]: Bump com.android.tools.build:gradle from 8.9.0 to 8.11.1 in /packages/interactive_media_ads/android (flutter/packages#9623) 2025-07-17 10687576+bparrishMines@users.noreply.github.com [pigeon] Adds overrides for constructors and static members of ProxyApis (flutter/packages#9515) 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
…bleView (flutter#9636) Fixesflutter/flutter#167813 The cache extent was not being applied to leading children, only trailing. This fixes that. Will check TreeView to see if the same issue applies after this. ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
…bleView (flutter#9636) Fixesflutter/flutter#167813 The cache extent was not being applied to leading children, only trailing. This fixes that. Will check TreeView to see if the same issue applies after this. ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
Fixesflutter/flutter#167813
The cache extent was not being applied to leading children, only trailing.
This fixes that.
Will check TreeView to see if the same issue applies after this.
Pre-Review Checklist
[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or I have commented below to indicate which version change exemption this PR falls under1.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style, or I have commented below to indicate which CHANGELOG exemption this PR falls under1.///).If you need help, consider asking for advice on the #hackers-new channel on Discord.
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↩3