LightBox constructor
LightBox({
- required List<
String> images, - int initialIndex = 0,
- ImageType imageType = ImageType.URL,
- double blur = 2.5,
- IconData closeIcon = Icons.close,
- Color closeIconColor = Colors.black,
- String closeText = 'Close',
- Color closeTextColor = Colors.black,
- IconData prevIcon = Icons.arrow_back_ios,
- Color prevIconColor = Colors.black,
- String prevText = 'Prev',
- Color prevTextColor = Colors.black,
- IconData nextIcon = Icons.arrow_forward_ios,
- Color nextIconColor = Colors.black,
- String nextText = 'Next',
- Color nextTextColor = Colors.black,
This is the lightBox widget which is used to display the image as diaporama with controls
Implementation
LightBox(
{required this.images,
this.initialIndex = 0,
this.imageType = ImageType.URL,
this.blur = 2.5,
this.closeIcon = Icons.close,
this.closeIconColor = Colors.black,
this.closeText = 'Close',
this.closeTextColor = Colors.black,
this.prevIcon = Icons.arrow_back_ios,
this.prevIconColor = Colors.black,
this.prevText = 'Prev',
this.prevTextColor = Colors.black,
this.nextIcon = Icons.arrow_forward_ios,
this.nextIconColor = Colors.black,
this.nextText = 'Next',
this.nextTextColor = Colors.black});