show static method

dynamic show(
  1. BuildContext context,
  2. List<String> data,
  3. String? title,
  4. int? initial, {
  5. int scrSize = 0,
  6. 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,)));
}