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

+ 0014 如何让列表/网格/SingleChildScrollView等滑动不显示蓝色阴影? #36

Open
toly1994328 opened this issue May 15, 2020 · 1 comment
Labels
point The point of Flutter

Comments

@toly1994328
Copy link
Owner

滑动阴影

@toly1994328
Copy link
Owner Author

toly1994328 commented May 15, 2020

 ScrollConfiguration( //使用ScrollConfiguration包裹,设置behavior
      behavior: NoScrollBehavior(),
      child: SingleChildScrollView(

class NoScrollBehavior extends ScrollBehavior {
  @override
  Widget buildViewportChrome(
      BuildContext context, Widget child, AxisDirection axisDirection) => child;
}

@toly1994328 toly1994328 added question Further information is requested point The point of Flutter and removed question Further information is requested labels May 15, 2020
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