body: SingleChildScrollView(
child: InkWell(
splashColor: Colors.black87,
onTap: () {},
child: Ink.image(
image: Image.asset('images/logo.png'), // here
height: 100,
width: 400,
fit: BoxFit.cover,
),
),
),
I want to apply asset image on my text button
3
Answers
You can use
AssetImage
it wants image with ImageProvider type and you can change it with this
Try the following code: