Skip to content

Introduce tabs alignment property for Material 3 TabBar  #124195

Closed

Description

@TahaTesser

TabBar missing the ability to modify horizontal alignment for tabs

Scrollable TabBar

  1. Align with an offset of 56.0 pixels (M3 default)
    Screenshot 2023-04-10 at 16 09 10

photo_2023-04-10 16 14 35

  1. Align to the start
  2. Align to the center (M2 default)
2023-04-05.14.01.39.mp4

Non-scrollable TabBar

  1. Fill (M2 and M3 default)
  2. Center
telegram-cloud-document-5-6169967043236858724.mp4

There are some hacks to make this possible.
See https://stackoverflow.com/questions/55549762/how-to-align-tabbar-to-the-left-with-a-custom-starting-position

Activity

  1. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    p: material_uimaterial_ui package in flutter/packages
    on Apr 5, 2023
  2. changed the title [-]Introduce `TabGravity` for scrollable`TabBar` [/-] [+]Introduce `TabGravity` for scrollable `TabBar` [/+] on Apr 5, 2023
  3. changed the title [-]Introduce `TabGravity` for scrollable `TabBar` [/-] [+]Introduce `TabGravity` for Material 3 scrollable `TabBar` [/+] on Apr 5, 2023
  4. changed the title [-]Introduce `TabGravity` for Material 3 scrollable `TabBar` [/-] [+]Introduce tabs alignment property for Material 3 scrollable `TabBar` [/+] on Apr 10, 2023
  5. changed the title [-]Introduce tabs alignment property for Material 3 scrollable `TabBar` [/-] [+]Introduce tabs alignment property for Material 3 `TabBar` [/+] on Apr 10, 2023
  6. moved this to 🚧 In Progress in Material 3on Apr 10, 2023
  7. moved this from To do to In progress in Nevercodeon Apr 10, 2023
  8. moved this from In progress to PR submitted in Nevercodeon Apr 11, 2023
  9. moved this from 🚧 In Progress to ✅ Done in Material 3on May 1, 2023
  10. moved this from PR submitted to Done (PR merged) in Nevercodeon May 1, 2023
  11. github-actions commented on May 15, 2023

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

  12. locked as resolved and limited conversation to collaborators on May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

c: new featureNothing broken; request for a new capabilityframeworkflutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packages

Type

No type

Projects

  • Status
    Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions