showModal method

void showModal(
  1. dynamic context
)

This gives the bottom sheet widget.

Implementation

void showModal(context) {
  showModalBottomSheet(
    backgroundColor: dropDown.backgroundColor ?? Colors.white,
    isScrollControlled: true,
    shape: const RoundedRectangleBorder(
      borderRadius: BorderRadius.vertical(top: Radius.circular(15.0)),
    ),
    context: context,
    builder: (context) {
      return StatefulBuilder(
        builder: (BuildContext context, StateSetter setState) {
          return MainBody(
            dropDown: dropDown,
          );
        },
      );
    },
  );
}