Skip to content

Add a Gap Widget #56783

Description

@modulovalue

@letsar has released a package called gap. Gap adds gaps between children of Rows/Columns/Scrollables that adapt to the orientation of their parent widget.

It solves the common problem of adding a space between widgets in a clean and safe manner and therefore I'd like to propose that this or a similar widget should be added to the core framework.

The current solutions to that problem, SizedBox(width: x) & SizedBox(height: x), are neither intuitive nor safe in a sense that they have to be adjusted when the orientation of their parent widget changes.

Note: I've asked @letsar and he has no objections to this proposal. Perhaps he would like to submit a PR himself. This issue is only meant to solicit approval from the Flutter Team so that somebody can initiate the work on this.

@goderbauer

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