LightBox constructor

LightBox({
  1. required List<String> images,
  2. int initialIndex = 0,
  3. ImageType imageType = ImageType.URL,
  4. double blur = 2.5,
  5. IconData closeIcon = Icons.close,
  6. Color closeIconColor = Colors.black,
  7. String closeText = 'Close',
  8. Color closeTextColor = Colors.black,
  9. IconData prevIcon = Icons.arrow_back_ios,
  10. Color prevIconColor = Colors.black,
  11. String prevText = 'Prev',
  12. Color prevTextColor = Colors.black,
  13. IconData nextIcon = Icons.arrow_forward_ios,
  14. Color nextIconColor = Colors.black,
  15. String nextText = 'Next',
  16. 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});