Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Null check operator used on a null value #511

Open
minhnguyenandpad opened this issue Apr 20, 2022 · 1 comment
Open

[BUG] Null check operator used on a null value #511

minhnguyenandpad opened this issue Apr 20, 2022 · 1 comment
Labels
awaiting-further-comments bug Something isn't working

Comments

@minhnguyenandpad
Copy link

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

@minhnguyenandpad minhnguyenandpad added the bug Something isn't working label Apr 20, 2022
@minhnguyenandpad minhnguyenandpad changed the title [BUG] [BUG] Null check operator used on a null value Apr 20, 2022
@renancaraujo
Copy link
Member

May be fixed on 0.14.0. See #476

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-further-comments bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants