Y
Y
YuryMorozov2020-09-20 18:00:23
Dart
YuryMorozov, 2020-09-20 18:00:23

Why doesn't InkWell fill text with color when clicked?

Hello! Tell me how you can make it so that when you click splashColor filled in the text?
I highlighted the problem in the picture -
5f676d6ad8ecb163237412.png

code:

return Center(
    child: Material(
      color: Colors.white,
      child: Container(
        width: 300,
        height: 300,
        child: InkWell(
          splashColor: Colors.red,
          onTap: () {},
          child: Column(
            children: [
              Ink.image(
                image: NetworkImage('url'),
                width: 100,
                height: 100,
                fit: BoxFit.fill,
              ),
              Text(
                'data',
                style: TextStyle(backgroundColor: Colors.blue[200]),
              ),
            ],
          ),
        ),
      ),
    ),
  );

Answer the question

In order to leave comments, you need to log in

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question