showDialog static method
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);
},
);
}