toBaseGalleryView function

Future toBaseGalleryView({
  1. required List<String> images,
  2. int currentIndex = 0,
  3. SystemUiOverlayStyle? systemOverlayStyle,
  4. Widget? leading,
  5. Color? tintColor,
  6. Color? backgroundColor,
  7. bool enableRotation = false,
  8. bool preventDuplicates = true,
  9. Transition transition = Transition.noTransition,
})

导航到图片预览

Implementation

Future toBaseGalleryView({
  required List<String> images,
  int currentIndex = 0,
  SystemUiOverlayStyle? systemOverlayStyle,
  Widget? leading,
  Color? tintColor,
  Color? backgroundColor,
  bool enableRotation = false,
  bool preventDuplicates = true,
  Transition transition = Transition.noTransition,
}) async {
  return to(
    () => BaseGalleryViewPage(
      images: images,
      currentIndex: currentIndex,
      systemOverlayStyle: systemOverlayStyle,
      leading: leading,
      tintColor: tintColor,
      backgroundColor: backgroundColor,
      enableRotation: enableRotation,
    ),
    preventDuplicates: preventDuplicates,
    transition: transition,
  );
}