openModal method
Implementation
Future<void> openModal(Widget widget) async {
await showDialog(
barrierColor: Colors.black.withOpacity(0.4),
builder: (BuildContext context) {
return widget;
},
context: Get.context!);
}