base method
Implementation
Widget base(BuildContext context, {required Widget child}) {
return DraggableScrollableSheet(
expand: false,
minChildSize: minChildSize,
initialChildSize: initialChildSize,
maxChildSize: 1,
builder: (context, controller) {
this.controller = controller;
return ClipRRect(
borderRadius: BorderRadius.circular(BORDER_RADIUS),
child: Container(
width: double.infinity,
decoration: BoxDecoration(
color: Theme.of(context).backgroundColor.withOpacity(initialChildSize),
),
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 10, sigmaY: 10),
child: child,
),
),
);
},
);
}