display method
Display Default BottomSheet widget
Implementation
@override
///Display Default BottomSheet widget
Future<void> display(BuildContext context) async {
await showModalBottomSheet<Widget>(
isDismissible: false,
isScrollControlled: true,
elevation: 10.0.h,
enableDrag: false,
backgroundColor: backgroundColor ?? Colors.white,
context: context,
builder: (builder) {
return Container(
height: height ?? 90.0.h,
color: Colors.transparent,
child: child ??
DecoratedBox(
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(10.0.h),
topRight: Radius.circular(10.0.h),
),
),
child: const Center(
child: Text('This is a modal sheet'),
),
),
);
},
);
}