-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add TabBar.tabAlignment migration guide
#8700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Piinks
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! Just a couple of small nits
atsansone
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TahaTesser : A few changes for length and semantic breaks. Thanks!
|
@atsansone |
|
|
||
| When you set `ThemeData.useMaterial3` to `true`, | ||
| a scrollable `TabBar` aligns tabs as `TabAlignment.startOffset` by default. | ||
| To change this alignment, set the `TabBar.tabAlignment` property. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can also use the theme, correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right.
atsansone
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TahaTesser : I'll approve this as is. Keep in mind for next time that we hard wrap lines at 80 characters. Thanks!
fixes flutter/flutter#126920
TabBar.tabAlignment was introduced in flutter/flutter#125036
This PR adds a migration guide for
TabBar.tabAlignment.Related flutter/flutter#125974
Presubmit checklist