base method

Widget base(
  1. BuildContext context, {
  2. required Widget child,
})
override

Implementation

Widget base(BuildContext context, {required Widget child}) {
  return Dismissible(
    key: Key('dismissiblePopup'),
    direction: DismissDirection.down,
    onDismissed: (_) => this.pop(context),
    child: ClipRRect(
      borderRadius: BorderRadius.circular(BORDER_RADIUS),
      child: Container(
        width: double.infinity,
        decoration: BoxDecoration(
          color: Theme.of(context).backgroundColor.withOpacity(0.6),
        ),
        child: BackdropFilter(
          filter: ImageFilter.blur(sigmaX: 10, sigmaY: 10),
          child: child,
        ),
      ),
    ),
  );
}