show method
Show Dialog with a custom child
Implementation
Future show(BuildContext context) => showCupertinoModalBottomSheet<void>(
backgroundColor: Colors.white,
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(10),
topRight: Radius.circular(10),
),
),
isDismissible: isDismissible,
enableDrag: isDismissible,
context: context,
builder: (context) => ClipRRect(
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(10),
topRight: Radius.circular(10),
),
child: SizedBox(
height: MediaQuery.of(context).size.height,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Center(
child: SizedBox(
height: context.screenHeight(.9),
child: ThepeerSendView(
data: data,
onClosed: onClosed,
onSuccess: onSuccess,
onError: onError,
showLogs: showLogs,
errorWidget: errorWidget,
),
),
),
],
),
),
),
);