Skip to content

The Ink example isn't useful #11

Open
@humazed

Description

@humazed

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions