Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to expand cells to the edge? #15

Closed
Daibaku9999 opened this issue Aug 15, 2020 · 2 comments
Closed

How to expand cells to the edge? #15

Daibaku9999 opened this issue Aug 15, 2020 · 2 comments

Comments

@Daibaku9999
Copy link

I would like to expand cells to the edge of the right.
It looks little unbalance because cells won't expand on the right side like a photo below.

コメント 2020-08-15 232727

How can I fix this?

@inventvictor
Copy link

Try something like this;

DataCell(
                    Container(
                      constraints: BoxConstraints(minWidth: (MediaQuery.of(context).size.width)/8), //where 8 is the number of columns you have
                      child: Text('${merchant.balance}'),
                    )
                  )

@rodydavis rodydavis pinned this issue Mar 31, 2021
@SalahAdDin
Copy link

Try something like this;

DataCell(
                    Container(
                      constraints: BoxConstraints(minWidth: (MediaQuery.of(context).size.width)/8), //where 8 is the number of columns you have
                      child: Text('${merchant.balance}'),
                    )
                  )

Must i do this with every collum or just with the wanted ones?

Doing it with every column overflow the horizontal width:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants