onBuildInterceptPopoverOverlay method
Implementation
@override
Widget onBuildInterceptPopoverOverlay(BuildContext context, Widget child) =>
ArcaneTheme.of(context).barrierColors.menu.alpha == 0
? child
: (context.pylonOr<_MenuBackdrop>()?.visible ?? false)
? child
: Pylon<_MenuBackdrop>(
value: const _MenuBackdrop(true),
builder: (context) => Stack(
children: [
IgnorePointer(
child: Container(
color: ArcaneTheme.of(context).barrierColors.menu,
),
).animate().fadeIn(
begin: 0,
curve: Curves.easeOutCirc,
duration: 500.ms),
child,
],
),
);