onTapFullScreenView function

void onTapFullScreenView(
  1. dynamic context, {
  2. required int indexOfImage,
  3. required List<GalleryItem> galleryList,
  4. Color? appBarColor,
  5. String? titleGallery,
  6. BoxDecoration? backgroundDecoration,
})

Implementation

void onTapFullScreenView(
  context, {
  required int indexOfImage,
  required List<GalleryItem> galleryList,
  Color? appBarColor,
  String? titleGallery,
  BoxDecoration? backgroundDecoration,
}) {
  Navigator.push(
    context,
    MaterialPageRoute(builder: (context) {
      return GalleryViewWrapper(
        appBarColor: appBarColor,
        titleGallery: titleGallery,
        galleryItem: galleryList,
        backgroundDecoration: backgroundDecoration ?? const BoxDecoration(color: Color(0xff374056)),
        initialIndex: indexOfImage,
        scrollDirection: Axis.horizontal,
      );
    }),
  );
}