Skip to content

add spacing parameter to Column and Row #55378

Closed

Description

@lukepighetti

Wrap has two wonderful parameters runSpacing for vertical spacing and spacing for horizontal spacing. I'd like to see a spacing parameter on both Column and Row.

Activity

  1. VladyslavBondarenko commented on Apr 23, 2020

    @VladyslavBondarenko

    Hi @lukepighetti
    Does this workaround suit to you #16957 (comment)?
    Do you have some case where it's not applicable?

  2. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Apr 23, 2020
  3. lukepighetti commented on Apr 23, 2020

    @lukepighetti
    ContributorAuthor

    This is how we currently doing it, I'm asking to unify the spacing API across Wrap, Column, Row. This isn't a question of if there is another solution, it's a question of providing more unified "color" to the commonly used layout APIs.

  4. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Apr 23, 2020
  5. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    c: proposalA detailed proposal for a change to Flutter
    c: new featureNothing broken; request for a new capability
    on Apr 23, 2020
  6. henry2man commented on Mar 31, 2022

    @henry2man

    Inspired in other solutions & workarounds I've published this gist that adds support for this FR: https://gist.github.com/henry2man/28595050f09633e16641d5f30f1a32ae

  7. changed the title [-]add runSpacing to Column and spacing to Row[/-] [+]add spacing parameter to Column and Row[/+] on Mar 31, 2022
  8. added
    P3Issues that are less important to the Flutter project
    and removed on Jun 28, 2023
  9. 104 remaining items

  10. Piinks commented on Aug 5, 2024

    @Piinks
    Contributor

    Reopening since the change was reverted, just need to address a failing integration test to resolve and get it back in. 👍

  11. reopened this on Aug 5, 2024
  12. moved this from Done (PR merged) to In progress in Nevercodeon Aug 5, 2024
  13. removed
    r: fixedIssue is closed as already fixed in a newer version
    on Aug 5, 2024
  14. moved this from In progress to Done (PR merged) in Nevercodeon Aug 5, 2024
  15. added
    r: fixedIssue is closed as already fixed in a newer version
    on Aug 5, 2024
  16. SupposedlySam commented on Aug 13, 2024

    @SupposedlySam

    I really appreciate all the discussion here and am looking forward to using it when it's released in stable!

    After reading all the comments though, I couldn't figure out what the reason was that it finally got included in the framework as a property on both Row and Column.

    Would someone kindly recap what the reasons were that ultimately allowed this feature to be introduced?

    I think the PR is very elegant and also caught clipBehavior not being added to the debugFillProperties 👏 Well done @TahaTesser.

    It looks like this comment from @Hixie might be the reason: #152472 (comment)

  17. bernaferrari commented on Aug 13, 2024

    @bernaferrari
    Contributor

    Seems to be "too much people want this" with "the change is actually super small" with "it is super useful" with "I don't think there is a better way" with "we wish we could rewrite Row entirely but we can't".

  18. github-actions commented on Aug 27, 2024

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  19. locked as resolved and limited conversation to collaborators on Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionteam-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

Type

No type

Projects

  • Status
    Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions