toBaseGalleryView function
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,
导航到图片预览
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,
);
}