Open
Description
In your example when you remove the ink it still has the same behavior.
a better example would be the one from the docs
Material(
color: Colors.teal[900],
child: Center(
child: Ink(
color: Colors.yellow,
width: 200.0,
height: 100.0,
child: InkWell(
onTap: () { /* ... */ },
child: Center(
child: Text('YELLOW'),
)
),
),
),
)
``
vs
Material(
color: Colors.teal[900],
child: Center(
child: Container(
color: Colors.yellow,
width: 200.0,
height: 100.0,
child: InkWell(
onTap: () { /* ... */ },
child: Center(
child: Text('YELLOW'),
)
),
),
),
)
and the image example.