closeButton method

Widget closeButton()

Implementation

Widget closeButton() {
  return InkWell(
    customBorder: const CircleBorder(),
    onTap: widget.onClosePressed,
    child: Ink(
      decoration: BoxDecoration(
        boxShadow: [
          BoxShadow(color: Colors.grey.withValues(alpha: .7), blurRadius: 2, spreadRadius: 2),
        ],
        borderRadius: BorderRadius.circular(100),
        border: Border.all(color: Colors.grey),
        color: theme.backgroundColor().withValues(alpha: .9),
      ),
      padding: const EdgeInsets.all(8),
      child: Icon(Icons.close, color: theme.textColor(), size: 28),
    ),
  );
}