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

Base Position not working [BUG] #219

Closed
guit4eva opened this issue Nov 28, 2019 · 1 comment · Fixed by #255
Closed

Base Position not working [BUG] #219

guit4eva opened this issue Nov 28, 2019 · 1 comment · Fixed by #255
Labels
bug Something isn't working Gallery

Comments

@guit4eva
Copy link

All options for PhotoViewGalleryPageOptions are working correctly, except base Position. The image loads with center alignment regardless of what the basePosition is set to.

  PhotoViewGalleryPageOptions _buildItem(BuildContext context, int index) {
    final String item = widget.galleryItems[index];
    return PhotoViewGalleryPageOptions(
      imageProvider: CachedNetworkImageProvider(item),
      initialScale: PhotoViewComputedScale.covered,
      minScale: PhotoViewComputedScale.contained * (1),
      maxScale: PhotoViewComputedScale.covered * 5,
      heroAttributes: PhotoViewHeroAttributes(tag: index),
      basePosition: Alignment.topCenter
    );
  }
@guit4eva guit4eva added the bug Something isn't working label Nov 28, 2019
renancaraujo pushed a commit that referenced this issue Feb 15, 2020
renancaraujo added a commit that referenced this issue Feb 15, 2020
* fix typos

* fix #219
@renancaraujo
Copy link
Member

It should be fixed on 0.9.2

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

Successfully merging a pull request may close this issue.

2 participants