Skip to content

Introduce tabs alignment property for Material 3 TabBar  #124195

@TahaTesser

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

Metadata

Metadata

Assignees

Labels

c: new featureNothing broken; request for a new capabilityf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.

Type

No type

Projects

Status

Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions