ResponsiveFramework
ResponsiveFramework copied to clipboard
Max items in column before breaking to new row
I want to be able to pass in maxItems in column then auto break to new row after the maxItems number is reached
ResponsiveRowColumn(
rowMainAxisAlignment: MainAxisAlignment.center,
rowPadding: const EdgeInsets.all(30),
columnPadding: const EdgeInsets.all(30),
layout: ResponsiveWrapper.of(context).isSmallerThan(DESKTOP)
? ResponsiveRowColumnType.COLUMN
: ResponsiveRowColumnType.ROW,
children: [
...buildDataTile(),
],
),
buildDataTile returns a List<ResponsiveRowColumnItem>
's. How can I add a maxItems to the column?
Please this wasn't answered. I am trying to arrange 2 items per row on mobile and 4 per row on tablet. But the default is 1 item per row in mobile and it forces everything to fit into a row on tablet no matter the number of items
@jeremiahlukus How did you solve this please
I can add the ability to set max items as a new feature.
I can add the ability to set max items as a new feature.
Please do.
@devDonald I did not solve it i just worked around it. Would be great to have this feature though @searchy2
@searchy2 this is completed? What branch has this? I would definitely like to update to use this.