I want to add a ripple on an item, it is working fine until I add a gradient on the item using BoxDecoration.
BoxDecoration
Widget build(BuildContext context) {
Update in 2019:
You should use Ink widget inside Material, instead of Container. It takes decoration parameter as well:
Ink
Material
Container
decoration
Material( child: Ink( decoration: BoxDecoration( // ... ), child: InkWell( onTap: () {}, child: child, // other widget ), ), );