modalSheet function
dynamic
modalSheet()
Implementation
modalSheet() {
showModalBottomSheet(
context: Get.context!,
backgroundColor: Colors.white,
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(15.0), topRight: Radius.circular(15.0)),
),
builder: (context) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.max,
children: <Widget>[
ListTile(
leading: const Icon(Icons.email),
title: const Text('Send email'),
onTap: () {
print('Send email');
},
),
ListTile(
leading: const Icon(Icons.phone),
title: Text('Call phone'),
onTap: () {},
),
],
);
});
}