这是indexloc提供的服务,不要输入任何密码
Skip to content

Added AppBarTheme shape property #86372

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

Merged
merged 3 commits into from
Jul 13, 2021

Conversation

HansMuller
Copy link
Contributor

Added support for specifying the shape of AppBars with AppBarTheme per #78125.

@flutter-dashboard flutter-dashboard bot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Jul 13, 2021
@google-cla google-cla bot added the cla: yes label Jul 13, 2021
@HansMuller HansMuller requested a review from darrenaustin July 13, 2021 19:24
Copy link
Contributor

@darrenaustin darrenaustin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but think we might need to update the AppBar docs.

@@ -1129,7 +1129,7 @@ class _AppBarState extends State<AppBar> {
shadowColor: widget.shadowColor
?? appBarTheme.shadowColor
?? _defaultShadowColor,
shape: widget.shape,
shape: widget.shape ?? appBarTheme.shape,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this behaviour be documented in the docs the AppBar.shape as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I've updated the AppBar.shape API doc.

@HansMuller HansMuller merged commit 7d52c2c into flutter:master Jul 13, 2021
@HansMuller HansMuller deleted the update_appbar_theme branch July 14, 2021 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants