Skip to content

Horizontal Padding on CupertinoSegmentedControl #25989

Closed

Description

@acahir

The SegmentedControl has a hardcoded horizontal padding on line 16:

const EdgeInsets _kHorizontalItemPadding = EdgeInsets.symmetric(horizontal: 16.0);

While having a default value makes sense, is there any reason this is not customizable via a Padding as a param for that widget?

Unless there's another alternative that I'm missing.

Activity

  1. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    on Jan 3, 2019
  2. added this to the milestone on Jan 3, 2019
  3. LongCatIsLooong commented on Mar 27, 2019

    @LongCatIsLooong
    Contributor

    @acahir _kHorizontalItemPadding controls the padding around the entire segment control, not the padding around each segment. Do you want to control the outer padding around the entire segment control or the padding around each inner segment?

  4. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Mar 27, 2019
  5. vanlooverenkoen commented on Apr 10, 2019

    @vanlooverenkoen
    Contributor

    My PR includes outer padding. Because at this point it is set to 16 left and right. This should be configurable.

  6. no-response commented on Apr 17, 2019

    @no-response

    Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
    Thanks for your contribution.

  7. vanlooverenkoen commented on Jun 17, 2019

    @vanlooverenkoen
    Contributor

    This should be fixed by pr #34555

  8. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Jan 20, 2021
  9. github-actions commented on Aug 6, 2021

    @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.

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

Metadata

Metadata

Labels

frameworkflutter/packages/flutter repository. See also f: labels.p: cupertino_uicupertino_ui package in flutter/packages

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions