showModal method

void showModal(
  1. dynamic context
)

This gives the bottom sheet widget.

Implementation

void showModal(context) {
  showModalBottomSheet(
    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 SpinnerBottomSheet(spinner: spinner);
        },
      );
    },
  );
}