openImage function
void
openImage()
View Image(s)
Implementation
void openImage(BuildContext context, final int index, List<String> unitImages,
List<String>? captions, Map<String, String>? headers) {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => GalleryPhotoViewWrapper(
galleryItems: unitImages,
captions: captions,
backgroundDecoration: const BoxDecoration(
color: Colors.black,
),
initialIndex: index,
scrollDirection: Axis.horizontal,
headers: headers,
),
),
);
}