Closed louis-sicko closed 1 month ago
Can you try pointing to the latest main? I added the scroll physics to disable the scroll horizontally and vertically if needed. I tried with:
ShadTable.list(
horizontalScrollPhysics:
const NeverScrollableScrollPhysics(),
columnSpanExtent: (index) {
if (index == 0) {
return const FractionalTableSpanExtent(0.2);
}
if (index == 1) {
return const FractionalTableSpanExtent(0.6);
}
return const FixedTableSpanExtent(130);
},
rowSpanExtent: (row) {
return const FixedTableSpanExtent(60);
},
...
),
On mobile you may still use the old extents. Use a way to determine if on web or mobile, or by using ShadResponsiveBuilder
or by using a combination of MinTableSpanExtent
and MaxTableSpanExtent
The FractionalTableSpanExtent
should use the entire size available. So it should work even on mobile if the total reaches 1.0. I'm trying to understand why it doesn't work
This one seems working pretty fine on large sizes and even on small ones
return FractionalTableSpanExtent(
index == 0
? 0.1
: index == 1
? 0.5
: 0.4,
);
Still overflows when the screen is to small but can be adjusted accordingly. Let me know if you have any other problem or if I can close the issue
Closing because the problem mentioned is not a bug. Feel free to open another issue if you find again the problem
Hello,
I implemented the ShadTable into a prototype project and experiencing an weird behaviour with the "RemainingTableSpanExtent".
On mobile the middle column of the table expands perfectly fine.
On web I experience the following:![image](https://github.com/nank1ro/flutter-shadcn-ui/assets/48160610/c448c314-4b9a-4202-9c92-a4669700764f)
Code: