InkWell not showing ripple effect

后端 未结 13 743
陌清茗
陌清茗 2020-11-30 01:39

Tapping the container triggers the onTap() handler but does not show any ink splash effect.

class _MyHomePageState extends State

        
13条回答
  •  温柔的废话
    2020-11-30 02:01

    InkWell() will never show the ripple effect until you add the

    onTap : () {} 
    

    or any of the callbacks like onDoubleTap, onLongPress etc.

    parameter inside the InkWell as it starts listening to your taps only when you specify this parameter.

提交回复
热议问题