Skip to content
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

是否能给appBar添加固定在顶部的api #1610

Open
Jxells opened this issue May 1, 2024 · 5 comments
Open

是否能给appBar添加固定在顶部的api #1610

Jxells opened this issue May 1, 2024 · 5 comments

Comments

@Jxells
Copy link

Jxells commented May 1, 2024

About styles 🛠️

BottomNavigation 有一个是否固定在底部的属性,个人觉得appBar也可以搞一个固定在顶部的属性。

@haoziqaq
Copy link
Member

haoziqaq commented May 2, 2024

目前 app bar 是有 fixed 这个 api 可以固定到顶部的。

@Jxells
Copy link
Author

Jxells commented May 2, 2024

目前app bar是有固定的这个api可以固定到顶部的。

在文档中没看到呀

@haoziqaq
Copy link
Member

haoziqaq commented May 2, 2024

image

@Jxells
Copy link
Author

Jxells commented May 2, 2024

加上fixed 属性后下拉刷新的图标会顶到app bar上面
image

@haoziqaq
Copy link
Member

haoziqaq commented May 7, 2024

和 bottom navigation 一样,需要自行空出 app-bar 的位置。比如设置给主要容器设置 padding-top

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants