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

RenderFlex overflow only in tests when the widget is placed in a Column widget #214

Open
yerzhant opened this issue Nov 28, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@yerzhant
Copy link

When the widget is placed inside a Column widget like this:

Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            QrImageView(data: 'abc'),
            Text('Some text'),
          ],

In simulator there's no problem, but tests get fail with an error:

The following assertion was thrown during layout:
A RenderFlex overflowed by 328 pixels on the bottom.

The relevant error-causing widget was:
  Column
  Column:file...

Wrapping it in an Expanded widget is not a solution, though it resolves the testing issue.

qr_flutter: ^4.1.0

@yerzhant yerzhant added the bug Something isn't working label Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants