open method

void open(
  1. BuildContext context,
  2. int index
)

Implementation

void open(BuildContext context, final int index) {
  Navigator.of(context).push(PageRouteBuilder(
    opaque: false,
    fullscreenDialog: true,
    barrierLabel: "Label",
    barrierDismissible: false,
    barrierColor: Colors.black.withOpacity(0),
    //transitionDuration: Duration(milliseconds: 0),
    pageBuilder: (context, a, b) {
      return PhotoxRouteWrapper(
        thumbnailPageController: _pc,
        titleTextStyle: fullscreenGalleryTitleTextStyle,
        appBarLeadingWidget: fullscreenGalleryAppBarLeadingWidget,
        items: items,
        initialIndex: index,
        dismissMode: dismissMode,
      );
    },
  ));
}