xButtonUI method

Container xButtonUI(
  1. BuildContext context
)

Implementation

Container xButtonUI(BuildContext context) {
  return Container(
    decoration: const ShapeDecoration(
      shape: CircleBorder(),
      color: Colors.white,
    ),
    width: 26,
    height: 26,
    child: FittedBox(
      child: IconButton(
        onPressed: () {
          Navigator.of(context).pop();
        },
        iconSize: 28,
        icon: const Icon(
          Icons.close,
          color: Colors.black,
        ),
      ),
    ),
  );
}