Skip to content

In 1.0.0, shrinkWrap: true does not provide a size to the layout engine #290

@red42

Description

@red42

This is an issue when using shrinkWrapped Html widgets inside rows. On 1.0.0-pre.1 the element would have the size of its contents and get rendered properly.

For instance, this:

Row(
  children: [
    Html(data: 'Hello', shrinkWrap: true),
    Text(' world'),
  ]
)

Throws The following assertion was thrown during performLayout(): BoxConstraints forces an infinite width.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions