showBottomSheet static method

void showBottomSheet({
  1. required Widget child,
  2. bool isCancelable = true,
  3. BuildContext? context,
  4. dynamic heightFactor = 0.5,
  5. double elevation = 0,
  6. bool showDragHandel = false,
  7. BorderRadiusGeometry? borderRadius,
})

Implementation

static void showBottomSheet( {
  required Widget child,
  bool isCancelable=true,
  BuildContext ? context,
  heightFactor = 0.5,
  double elevation=0,
  bool showDragHandel=false,
  BorderRadiusGeometry? borderRadius,
}){
  var userMaterial3 = Theme.of(AppCntx.currentContext).useMaterial3;
  showModalBottomSheet(
    backgroundColor: Colors.transparent,
    context: context??AppCntx.currentContext,
    isDismissible: isCancelable,
    isScrollControlled: true,
    showDragHandle: showDragHandel,
    useSafeArea: true,
    builder: (context) => FractionallySizedBox(
      heightFactor: heightFactor,
      child: userMaterial3? _material3sheet(child, elevation, borderRadius: borderRadius): child,
    ),
  );
}