showWidget function

void showWidget(
  1. BasicWidget<State<StatefulWidget>> widget, {
  2. Color? barrierColor,
})

Implementation

void showWidget(BasicWidget widget, {Color? barrierColor}) {
  showModalBottomSheet(
    barrierColor: barrierColor,
    isScrollControlled: true,
    context: Global.appContext(),
    builder: (context) => Container(
      decoration: const BoxDecoration(
        borderRadius: BorderRadius.only(
          topLeft: Radius.circular(20),
          topRight: Radius.circular(20),
        ),
        color: LivekitColors.livekitDesignStandardG2,
      ),
      child: widget,
    ),
  );
}