showDialog static method

Future showDialog(
  1. BuildContext context,
  2. List<String> urls,
  3. int index
)

Implementation

static Future showDialog(BuildContext context, List<String> urls, int index) {
  return showGeneralDialog(
    context: context,
    barrierDismissible: true,
    transitionDuration: const Duration(milliseconds: 250),
    barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel,
    pageBuilder: (BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation) {
      return PhotoViewer(urls, index: index);
    },
  );
}