-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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
IconButton ripple effect #61811
Comments
Take a look at this issue it has a workaround @Hixie said
Try wrapping your IconButton in a Material Widget Container(
child:Material(
color: Colors.transparent //To let the Container background be displayed
child: IconButton(
icon: Icon(Icons.heart),
onPressed: (){}
),
),
) Hope it helps you out |
Thanks @yvesjordan06 , |
@yvesjordan06 that was helpful. I think this issues is solved. |
I tried this and it gives a rectangular ripple which is not pretty. |
Then, you can use ClipOval. Like this ClipOval(
child: Material(
color: Colors
.transparent, //To let the Container background be displayed
child: IconButton(
icon: Icon(
Icons.play_arrow,
color: Colors.white,
),
onPressed: () {}),
),
), |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Bug with IconButton ripple effect.
When i set background color of Container and inside that Container as a child I put IconButton widget.
Then suddenly ripple effect goes behind that backgroun color.
I know for fix when I swap Container widget with Material but in this situation I really need my Container widget.
Is there any solution to have a ripple effect on IconButton widget and the parent of that widget stays to be a Container?
The text was updated successfully, but these errors were encountered: