show static method
dynamic
show(
- BuildContext context,
- List<
String> data, - String? title,
- int? initial, {
- int scrSize = 0,
- ImageErrorWidgetBuilder? errorBuilder,
Implementation
static show(BuildContext context,List<String> data,String? title,int? initial,{int scrSize=0,ImageErrorWidgetBuilder? errorBuilder}){
final double spc = scrSize==0?24:scrSize==1?32:64;
Navigator.of(context,rootNavigator: true).push(PopupLayout(
opacity: 0.9 ,bgColor: Colors.black.withOpacity(0.8),
top: 32,bottom: 32, left: spc, right: spc,
child: ImagesPopup(urls: data,title: title,initial: initial??0,
scrSize: scrSize,errorBuilder: errorBuilder,)));
}