getCancelButton method

Widget getCancelButton(
  1. BuildContext context
)

Implementation

Widget getCancelButton(BuildContext context) {
  return GestureDetector(
    onTap: () {
      showOverlayBloc.hide();
    },
    child: Container(
      width: 50,
      height: 50,
      decoration: BoxDecoration(
        color: Colors.green,
        borderRadius: BorderRadius.circular(25),
      ),
      child: const Icon(
        Icons.close_fullscreen_outlined,
        color: Colors.white,
      ),
    ),
  );
}