open method

void open(
  1. BuildContext context
)

Implementation

void open(BuildContext context) {
  Navigator.push(
      context,
      PageRouteBuilder(
        opaque: false,
        fullscreenDialog: true,
        pageBuilder: (
          BuildContext context,
          animation,
          secondaryAnimation,
        ) {
          return FadeTransition(
            opacity: animation,
            child: GalleryPhotoViewWrapper(
              galleryItems: galleryItems,
              initialIndex: index ?? 0,
              scrollDirection: Axis.horizontal,
            ),
          );
        },
      ));
}