showFXGalleryView function
dynamic
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 errorBuilder()?,
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,
),
);
},
);
}