previewImage method

void previewImage()

Displays defined alert window

Implementation

void previewImage() {
  showGeneralDialog(
    context: context,
    pageBuilder: (BuildContext buildContext, Animation<double> animation,
        Animation<double> secondaryAnimation) {
      return _buildImagePreviewDialog();
    },
    barrierDismissible: style.isOverlayTapDismiss,
    barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel,
    barrierColor: style.overlayColor,
    transitionDuration: style.animationDuration,
    transitionBuilder: (
      BuildContext context,
      Animation<double> animation,
      Animation<double> secondaryAnimation,
      Widget child,
    ) =>
        _showAnimation(animation, secondaryAnimation, child),
  );
}