showFXGalleryView function

dynamic showFXGalleryView({
  1. required List<FXGalleryImage> itemList,
  2. bool barrierDismissible = true,
  3. Color barrierColor = Colors.black38,
  4. Color textColor = Colors.white,
  5. Color indicatorActiveColor = Colors.white,
  6. Color indicatorInactiveColor = Colors.white54,
  7. Color descriptionBackgroundColor = Colors.black26,
  8. Widget errorBuilder(
    1. BuildContext,
    2. Object,
    3. StackTrace?
    )?,
})

Implementation

showFXGalleryView({
  required List<FXGalleryImage> itemList,
  bool barrierDismissible = true,
  Color barrierColor = Colors.black38,
  Color textColor = Colors.white,
  Color indicatorActiveColor = Colors.white,
  Color indicatorInactiveColor = Colors.white54,
  Color descriptionBackgroundColor = Colors.black26,
  Widget Function(BuildContext, Object, StackTrace?)? errorBuilder,
}) {
  Get.generalDialog(
    barrierLabel: '',
    barrierColor: barrierColor,
    barrierDismissible: barrierDismissible,
    pageBuilder: (context, animation, secondaryAnimation) {
      return SafeArea(
        child: FXGalleryPage(
          itemList: itemList,
          textColor: textColor,
          indicatorActiveColor: indicatorActiveColor,
          indicatorInactiveColor: indicatorInactiveColor,
          descriptionBackgroundColor: descriptionBackgroundColor,
          errorBuilder: errorBuilder,
        ),
      );
    },
  );
}