Skip to content

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

@yerzhant

Description

@yerzhant

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions