Skip to content

0.0.9

Compare
Choose a tag to compare
@renancaraujo renancaraujo released this 06 Oct 18:08

Removed

  • BREAKING: Support to Dart 1 has been dropped in this version

Added

  • Analyzer option unnecessary_new
  • PhotoViewGallery widget
@override
Widget build(BuildContext context) {
  return Container(
    child: PhotoViewGallery(
      pageOptions: <PhotoViewGalleryPageOptions>[
        PhotoViewGalleryPageOptions(
          imageProvider: AssetImage("assets/gallery1.jpeg"),
          heroTag: "tag1",
        ),
        PhotoViewGalleryPageOptions(
          imageProvider: AssetImage("assets/gallery2.jpeg"),
          heroTag: "tag2",
          maxScale: PhotoViewComputedScale.contained * 0.3
        ),
        PhotoViewGalleryPageOptions(
          imageProvider: AssetImage("assets/gallery3.jpeg"),
          minScale: PhotoViewComputedScale.contained * 0.8,
          maxScale: PhotoViewComputedScale.covered * 1.1,
          heroTag: "tag3",
        ),
      ],
      backgroundColor: Colors.black87,
    );
  );
}