I have a container with its image property. The container is wrapped in a gesture detector. On long Press, a dialogue is open which shows multiple options to deal with an image.
I want to add a highlight colour to the image, So that when user long press and highlight colour is seen.
I tried using inkwell, but nothings happen. Is there any way to achieve this effect?
GestureDetector(
onLongPress: () {
buildPeepShow(context, widget.post);
},
child: Material(
color: Colors.transparent,
child: InkWell(
splashColor: Colors.black.withAlpha(100),
child: Stack(
children: [
Container(
decoration: BoxDecoration(
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.3),
spreadRadius: 0.3,
blurRadius: 8.0)
],
color: Colors.yellow,
borderRadius: BorderRadius.circular(16.0),
image: DecorationImage(
image: CachedNetworkImageProvider(
widget.post.downloadURL[0]),
fit: BoxFit.cover)),
),
Visibility(
visible: widget.post.downloadURL.length > 1 ? true : false,
child: Padding(
padding: const EdgeInsets.only(top: 5.0, right: 8.0),
child: Image.asset(
'images/more.png',
scale: 10,
),
),
),
],
),
),
),
);