Answers for "inkwell not showing splash"

1

inkwell in image flutter not working

body: new Center(
    child: new Container(
      child: new Material(
        child: new InkWell(
          onTap: (){print("tapped");},
          child: new Container(
            width: 100.0,
            height: 100.0,
          ),
        ),
        color: Colors.transparent,
      ),
      color: Colors.orange,
    ),
  ),
Posted by: Guest on May-10-2020
0

inkwell not showing splash

InkWell(
  onTap: () {}, // needed
  child: Ink( // use Ink
    width: 200,
    height: 200,
    color: Colors.blue,
  ),
)
Posted by: Guest on April-25-2020

Browse Popular Code Answers by Language