FlutterDartTips icon indicating copy to clipboard operation
FlutterDartTips copied to clipboard

The Ink example isn't useful

Open humazed opened this issue 5 years ago • 1 comments

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.

humazed avatar Jan 04 '20 00:01 humazed

Hello, Sorry for the delayed response. I will look into it and update the repository accordingly.

ibhavikmakwana avatar Jan 24 '20 07:01 ibhavikmakwana