Supports multiple image previews
  • An advanced wrapper based on photo_view and cached_network_image that supports passing urls for network images, local images, and project static images

Use:

Introducing dependence flutter_show_img_package: git: url: https://gitee.com/jrnet/flutter_show_img_packageCopy the code
/// Image url array
/// CurrentIndex Image index [Optional]
/// OnLongPressPath Calls back the address of the image to save the operation.
ShowImageWidget(
  currentIndex: 0,
  images: [ConstantPath.imagesPath+"18e76135e89d3aa1b5e1cf6b165fae23.jpeg"],
  onLongPressPath: (v){
    print(v); Get.back(); },)Copy the code

preview

Long press save