Photo_view: Adding to List of PhotoViewGalleryPageOptions

Created on 30 Dec 2018  路  2Comments  路  Source: fireslime/photo_view

setState() called after dispose() is being thrown when I'm trying to add an item to a List<PhotoViewGalleryPageOptions>

My Setup:

return PhotoViewGallery(
  pageOptions: List<PhotoViewGalleryPageOptions>
);

And I'm doing setState() on every page change - onPageChanged()

Gallery bug

Most helpful comment

I think we should use a builder pattern instead of a list.

All 2 comments

I think we should use a builder pattern instead of a list.

Added the builder constructor on #119 and published in the version 0.2.3.

Was this page helpful?
0 / 5 - 0 ratings