showBottomSheet static method
void
showBottomSheet({
- required Widget child,
- bool isCancelable = true,
- BuildContext? context,
- dynamic heightFactor = 0.5,
- double elevation = 0,
- bool showDragHandel = false,
- 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,
),
);
}