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

Refresh indicator in wrong location with CustomScrollView/SliverAppBar #573

Open
ultimate-tester opened this issue Feb 5, 2022 · 2 comments

Comments

@ultimate-tester
Copy link

ultimate-tester commented Feb 5, 2022

First of all thank you for creating such a wonderful package. I am having some trouble though with getting it to work for me.
I have a CustomScrollView with a SliverAppBar and a SliverList. For the SmartRefresher, I am using the WaterDropMaterialHeader header. To show a simplified version of the code, it is shown below:

@override
Widget build(BuildContext context) {
	return Scaffold(
		body: SmartRefresher(
			header: const WaterDropMaterialHeader(),
			child: CustomScrollView(slivers: <Widget>[
				SliverAppBar(...),
				SliverList(...),
			]),
		)
	);
}

The problem is that the refresh-widget starts at the very top of the screen, instead of below the SliverAppBar. This means the WaterDropMaterialHeader is shown overlapped on top of the app bar as shown in the below screenshot:

image
I changed the background colors to show the overlap more clearly.

Perhaps I am using the package wrong, which is why I came here to ask for advice. It would be very great if you can steer me in the correct direction. Thanks in advance!

@worldwidee
Copy link

same here, any solution?

@yangjiamu
Copy link

same, any solution?

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

3 participants