Skip to content

[Bug] explicitly wrap non-list object as list for children property. #2

Description

@softmarshmallow

When anonymous widget assigns to children property, and it's non list but a single object. It still build as-is.

So,

Stack(
   children: Widget()
);

code something like above gets generated.

prevent this by wrapping incomming widget as array - [] for preventing this.

so expected code will be.

Stack(
   children: [Widget()]
);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions