Skip to content

Commit

Permalink
[two_dimensional_scrollables] Refactor Spans for common use (flutter#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
Piinks authored Apr 17, 2024
1 parent 3f4c0f5 commit 4b8580e
Show file tree
Hide file tree
Showing 8 changed files with 724 additions and 426 deletions.
4 changes: 4 additions & 0 deletions packages/two_dimensional_scrollables/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.1

* Refactors TableSpans to use basic Span classes. Clean up for incoming TreeView.

## 0.2.0

* Adds support for infinite rows and columns in TableView.
Expand Down
Loading

0 comments on commit 4b8580e

Please sign in to comment.