📸 Easy to use yet very customizable zoomable image widget for Flutter, Photo View provides a gesture sensitive zoomable widget. Photo View is largely used to show interacive images and other stuff such as SVG.
MIT License
1.9k
stars
544
forks
source link
[BUG] Null check operator used on a null value #511
Describe the bug
I'm using the PhotoViewGallery.builder
Here the code:
PhotoViewGallery.builder( pageController: widget._pageController, itemCount: widget.urlImages.length, builder: (context, index) { final urlImage = widget.urlImages[index]; return PhotoViewGalleryPageOptions( imageProvider: NetworkImage(urlImage), minScale: PhotoViewComputedScale.contained, maxScale: PhotoViewComputedScale.contained * 4, ); }, onPageChanged: (index) => setState(() => this.index = index,), ),
To Reproduce
When ever go in GalleryWidget, and slide the image => it show this error: Null check operator used on a null value => Then it show the image.
Expected behavior
Stop showing this error
Which versions of Flutter/Photo View, and which browser / OS are affected by this issue? Did this work in previous versions of Photo View?
Lastest version
Describe the bug I'm using the PhotoViewGallery.builder Here the code:
PhotoViewGallery.builder( pageController: widget._pageController, itemCount: widget.urlImages.length, builder: (context, index) { final urlImage = widget.urlImages[index]; return PhotoViewGalleryPageOptions( imageProvider: NetworkImage(urlImage), minScale: PhotoViewComputedScale.contained, maxScale: PhotoViewComputedScale.contained * 4, ); }, onPageChanged: (index) => setState(() => this.index = index,), ),
To Reproduce When ever go in GalleryWidget, and slide the image => it show this error: Null check operator used on a null value => Then it show the image.
Expected behavior Stop showing this error
Which versions of Flutter/Photo View, and which browser / OS are affected by this issue? Did this work in previous versions of Photo View? Lastest version