Skip to content

Commit 4b8580e

Browse files
authored
[two_dimensional_scrollables] Refactor Spans for common use (flutter#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#42332
1 parent 3f4c0f5 commit 4b8580e

File tree

8 files changed

+724
-426
lines changed

8 files changed

+724
-426
lines changed

packages/two_dimensional_scrollables/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.2.1
2+
3+
* Refactors TableSpans to use basic Span classes. Clean up for incoming TreeView.
4+
15
## 0.2.0
26

37
* Adds support for infinite rows and columns in TableView.

0 commit comments

Comments
 (0)