I am trying to position a widget on top of everything else.
I have this code working
PageRouteBuilder(
opaque: false,
barrierColor: Colors.transparent,
pageBuilder: (BuildContext context, __, _) {
return Align(
child: Container(
width: 500,
height: 500,
color: Colors.black,
),
); // Scaffold
},
),
The problem is the barrier does not let click elements behind it. I can set dismissable to true or false, but even if false and barrierColor: null, elements behind the barrier are not clickable.
I am sure there must be an appropriate Widget for this, I add an image with example, I need to click the Button 1, Button 2, etc, when the overlay is visible.
I cannot use Stack
