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

+ 0029 [视图] 如何实现一些组件点击时无水波纹。如TabBar, BottomNavigationBar等 #64

Open
toly1994328 opened this issue Oct 27, 2020 · 1 comment
Labels
point The point of Flutter

Comments

@toly1994328
Copy link
Owner

image

@toly1994328 toly1994328 added the point The point of Flutter label Oct 27, 2020
@toly1994328
Copy link
Owner Author

  • 解决方案: 在TabBar外层通过Theme组件设置相关颜色为透明即可。
Theme(
      data: Theme.of(context).copyWith(
        splashColor: Colors.transparent,
        highlightColor: Colors.transparent,
      ),
      child: TabBar(
 ...

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

No branches or pull requests

1 participant