ted-marozzi / data-grid

High Performance Data Grid optimised for large numeric tables.
BSD 3-Clause "New" or "Revised" License
8 stars 4 forks source link

Sliver support #16

Open Reprevise opened 2 years ago

Reprevise commented 2 years ago

I'd like to request sliver support being added to this package. I haven't seen any table package support slivers but I think it'd be a great addition. Although in my use case, all I'd need are separate table header and table body widgets just so that I could pin the header to the top of the screen and have the body take up the remaining space.

ted-marozzi commented 2 years ago

Hi, I agree I think Slivers is the direction I want to take this package. Could you expand more on your thoughts of what this would look like?

Reprevise commented 2 years ago

Hey!

Yeah I think slivers would be a good addition to this package. I don't see any table packages working well with CustomScrollView.

In terms of how they're used, the box and sliver widgets should be separated like DataGrid and SliverDataGrid (renamed Grid to DataGrid because of a name conflict with SliverGrid). Everything would work the same as it does now, but the column header would be affixed to the top of the scroll viewport until the end of the table and if there's another table underneath it the new column header will take its place. This allows multiple tables to be in the same list while maintaining the sticky column header.