Skip to content

[two_dimensional_scrollables] Refactor Spans for common use - #6550

Merged
auto-submit[bot] merged 4 commits into
flutter:mainfrom
Piinks:treeCleanUp
Apr 17, 2024
Merged

[two_dimensional_scrollables] Refactor Spans for common use#6550
auto-submit[bot] merged 4 commits into
flutter:mainfrom
Piinks:treeCleanUp

Conversation

@Piinks

@PiinksPiinks commented Apr 16, 2024

Copy link
Copy Markdown
Contributor

This relocates most of table_span.dart to ../common/span.dart, renaming the classes to basic Spans instead of TableSpans.
This is because since a Span can represent a row or a column, the new base Span class will be used to build TreeRows in the upcoming TreeView.
In table_span.dart, the old classes are now typedefs. This is because (IMO) the Table and Tree APIs are better to work with when the naming conventions reflect what you are building. The Table and Tree uses of Span could also deviate in the future and it felt prudent to leave room for future changes that may be specific to only one or the other.

Otherwise a bit of tidying to get ready for TreeView!

Part of flutter/flutter#42332

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@PiinksPiinks added the p: two_dimensional_scrollables Issues pertaining to the two_dimensional_scrollables package label Apr 16, 2024
@Piinks
Piinks requested a review from goderbauerApril 16, 2024 21:00
@Piinks
Piinks requested a review from goderbauerApril 17, 2024 22:24

@goderbauergoderbauer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PiinksPiinks added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 17, 2024
@auto-submit
auto-submitBot merged commit 4b8580e into flutter:mainApr 17, 2024
auto-submitBot pushed a commit to flutter/flutter that referenced this pull request Apr 18, 2024
flutter/packages@d39830e...0e3809d
2024-04-18 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 3.25.0 to 3.25.1 (flutter/packages#6562)
2024-04-18 stuartmorgan@google.com [ci] Add Linux desktop support to Linux custom_package_tests (flutter/packages#6551)
2024-04-17 katelovett@google.com [two_dimensional_scrollables] Refactor Spans for common use (flutter/packages#6550)
2024-04-17 reidbaker@google.com [in_app_purchase] Add api to expose country code (flutter/packages#6540)
2024-04-17 stuartmorgan@google.com [camera] Initial iOS Pigeon conversion (flutter/packages#6553)
2024-04-17 reidbaker@google.com [in_app_purchase] Add countryCode implementation to android and storekit (flutter/packages#6556)
2024-04-17 magder@google.com [google_sign_in_ios] Upgrade GoogleSignIn iOS SDK to 7.1 (flutter/packages#6404)
2024-04-17 reidbaker@google.com [in_app_purchase_platform_interface] Adds countryCode API (flutter/packages#6548)
2024-04-17 stuartmorgan@google.com [google_maps_flutter] Update app-facing package iOS requirements (flutter/packages#6552)
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,rmistry@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
gilnobrega pushed a commit to gilnobrega/flutter that referenced this pull request Apr 22, 2024
flutter/packages@d39830e...0e3809d
2024-04-18 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 3.25.0 to 3.25.1 (flutter/packages#6562)
2024-04-18 stuartmorgan@google.com [ci] Add Linux desktop support to Linux custom_package_tests (flutter/packages#6551)
2024-04-17 katelovett@google.com [two_dimensional_scrollables] Refactor Spans for common use (flutter/packages#6550)
2024-04-17 reidbaker@google.com [in_app_purchase] Add api to expose country code (flutter/packages#6540)
2024-04-17 stuartmorgan@google.com [camera] Initial iOS Pigeon conversion (flutter/packages#6553)
2024-04-17 reidbaker@google.com [in_app_purchase] Add countryCode implementation to android and storekit (flutter/packages#6556)
2024-04-17 magder@google.com [google_sign_in_ios] Upgrade GoogleSignIn iOS SDK to 7.1 (flutter/packages#6404)
2024-04-17 reidbaker@google.com [in_app_purchase_platform_interface] Adds countryCode API (flutter/packages#6548)
2024-04-17 stuartmorgan@google.com [google_maps_flutter] Update app-facing package iOS requirements (flutter/packages#6552)
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,rmistry@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
TecHaxter pushed a commit to TecHaxter/flutter_packages that referenced this pull request May 22, 2024
…6550)
This relocates most of `table_span.dart` to `../common/span.dart`, renaming the classes to basic Spans instead of TableSpans.
This is because since a Span can represent a row or a column, the new base Span class will be used to build TreeRows in the upcoming TreeView.
In `table_span.dart`, the old classes are now typedefs. This is because (IMO) the Table and Tree APIs are better to work with when the naming conventions reflect what you are building. The Table and Tree uses of Span could also deviate in the future and it felt prudent to leave room for future changes that may be specific to only one or the other.
Otherwise a bit of tidying to get ready for TreeView!
Part of flutter/flutter#42332
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
…6550)
This relocates most of `table_span.dart` to `../common/span.dart`, renaming the classes to basic Spans instead of TableSpans.
This is because since a Span can represent a row or a column, the new base Span class will be used to build TreeRows in the upcoming TreeView.
In `table_span.dart`, the old classes are now typedefs. This is because (IMO) the Table and Tree APIs are better to work with when the naming conventions reflect what you are building. The Table and Tree uses of Span could also deviate in the future and it felt prudent to leave room for future changes that may be specific to only one or the other.
Otherwise a bit of tidying to get ready for TreeView!
Part of flutter/flutter#42332
bisor0627 pushed a commit to bisor0627/packages that referenced this pull request Jun 19, 2026
…6550)
This relocates most of `table_span.dart` to `../common/span.dart`, renaming the classes to basic Spans instead of TableSpans.
This is because since a Span can represent a row or a column, the new base Span class will be used to build TreeRows in the upcoming TreeView.
In `table_span.dart`, the old classes are now typedefs. This is because (IMO) the Table and Tree APIs are better to work with when the naming conventions reflect what you are building. The Table and Tree uses of Span could also deviate in the future and it felt prudent to leave room for future changes that may be specific to only one or the other.
Otherwise a bit of tidying to get ready for TreeView!
Part of flutter/flutter#42332
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmitMerge PR when tree becomes green via auto submit Appp: two_dimensional_scrollablesIssues pertaining to the two_dimensional_scrollables package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@Piinks@goderbauer