show method

void show(
  1. BuildContext context,
  2. Widget image
)

Implementation

void show(BuildContext context, Widget image) {
  showDialog(
    barrierColor: Colors.black,
    context: context,
    builder: (context) {
      return Stack(
        alignment: Alignment.topCenter,
        children: [
          fullImage(image),
          closeButton(context),
        ],
      );
    },
  );
}