'How to make area outside overlay widget unlickcable?
How can i make the area outside the black container untapable . I have used overlay widget to create pop up but the problem is now other area are clickable .
OverlayEntry(
builder: (context) => Positioned(
top: _offset.dy - 130,
left: _offset.dx - 25,
width: _size.width + 50,
child: ScaleTransition(
scale: Tween<double>(begin: 0.5, end: 0.9).animate(
CurvedAnimation(parent: _controller, curve: Curves.bounceOut),
),
child: Column(
children: [
Container(
decoration: BoxDecoration(
color: Colors.black.withOpacity(
0.6,
),
borderRadius: BorderRadius.circular(6),
),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8),
child: Column(
children: [
Padding(
padding: const EdgeInsets.only(top: 6),
child: Row(
children: [
const Icon(
Icons.edit,
size: 18,
color: Colors.white,
),
],
),
),
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|