kechankrisna / flutter_responsive_table

BSD 2-Clause "Simplified" License
60 stars 25 forks source link

Table view instead of list view in mobile #9

Closed SachinTanpure closed 2 years ago

SachinTanpure commented 3 years ago

How to show table view instead of list view in mobile app?

KDCinfo commented 3 years ago

Flutter noob here. After running the demo code, and trying to understand why the layout was showing headers with every product, and not a tabular view like the demo GIF, I was wondering what I was doing wrong. But now your request makes sense! (I also couldn't see how one sort box on each product would relate to sorting by a specific 'header' (/column).)

So what I'm seeing is a ListView of the products, and not a Table or DataTable, correct? Does that mean this package currently can't be used to represent tabular data for mobile?

Welp, was trying to find something to help with a static/fixed header row coupled with sorting, but will go back to playing around with DataTables. I know there's another package for sticky table headers, but it doesn't mention sorting.

flutter_responsive_table

kechankrisna commented 2 years ago

new version consists:

weebsproject commented 2 years ago

new version consists:

  • reponseScreenSizes: the ScreenSize that will responsive as list view set empty if you want to keep table view for all screensize

still having list view, not table view.

image

any sample of code?