Skip to content

[BUG] Margin does not default to Margins.zero #1479

Open
@sztyr

Description

@sztyr

Describe the bug:

Setting the margin parameter to Margins.zero provide different results than not providing it at all wich differs from documentation - style.dart

HTML to reproduce the issue:

"Lorem Ipsum"

Html widget configuration:

 Html(data: "Lorem Ipsum")
        Html(
            data: "Lorem Ipsum",
            style: {
              "*": Style(
                margin: Margins.zero,
              ),
            },
          ),

Expected behavior:

Text should be rendered without any margin in both cases

Screenshots:

Image

Additional info:

This problem has been referenced before - #1053, but never fixed

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions