-
-
Notifications
You must be signed in to change notification settings - Fork 656
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
InkWell not working bug #61
Comments
@BerndWessels you could try to use stack view on top of cached network image. Look at this answer: https://stackoverflow.com/a/48066835. |
Got this working. This is more on how the ripple effect works. From the docs:
Solution is a tree structure that consists of Here's my code: Card( // Renders a `Material` in its build method
child: Ink.image(
image: CachedNetworkImageProvider(imageUrl), // Using CachedNetworkImageProvider
fit: BoxFit.cover,
height: 200,
child: InkWell(
onTap: () {},
child: Container()
)
)
) |
And I got this working with CachedNetworkImage(
imageUrl: imageUrl,
imageBuilder: (context, imageProvider) {
return Material(
color: Colors.blueAccent,
child: Ink.image(
image: imageProvider,
fit: BoxFit.cover,
child: InkWell(onTap: () {}),
),
);
},
placeholder: (context, url) => Center(
child: SizedBox(
width: 40,
height: 40,
child: CircularProgressIndicator(),
),
),
); |
any updates? |
@otopba Did you try the above suggestion? |
I tried every possible combination, but it seems to be impossible to get the ripple effect working on top of the cached network image.
It's like the cached network image has a huge magic z index.
Anybody can fix this or has a workaround?
The text was updated successfully, but these errors were encountered: