flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
163.12k stars 26.85k forks source link

[proposal]: Make PaginatedDataTable's column and footer floating or sticky #80033

Open nxr836 opened 3 years ago

nxr836 commented 3 years ago

Use case

I am using PaginatedDataTable for data presenting. I have to warp it with ListView to make it scrollable, but when I scroll the table up and down, the column and footer rows are not always visible, which is quite inconvenient for the data cell recognition.

So, my requests are:

1: Make the column and footer (page navigation control) sticky, so they are always visible in the current viewport. 2: Make the position of the page navigation control customizable. For instance, in the middle of the row, or on the left of the row, not always on the right of the footer row.

Proposal

As shown in the attached. Capture

pedromassangocode commented 3 years ago

Hi @nxr836 Can you please elaborate? What you really want? Do you have any visual example of what you are trying to achieve?

nxr836 commented 3 years ago

Sorry. I submitted this request with some text descriptions and picture examples. However, the content is not displayed correctly.

User case: I am using PaginatedDataTable for data presenting. I have to warp it with listview to make it scrollable. But, when I scroll the table up and down, the column and footer rows are not always visible, which is pretty inconvenient for data cell recognition.

So, my requests are:

<1>: Make the column header and footer (page navigation control) sticky or floating, so they are always visible in the current viewport. <2>: Make the position of page navigation control customizable. For instance, place it in the middle of the footer row, or on the left of the footer row. Something like that. ![Capture](https://user-images.githubusercontent.com/17311548/114011248-9c052a80-9897-11eb-817a-bab58d2c0ad4.PNG)