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

When rotating through the 360 carousel the image appears and disappears (blinks) #3

Closed
CarlosCabarcos opened this issue Oct 21, 2020 · 1 comment

Comments

@CarlosCabarcos
Copy link

I didn't understand what on earth was going on until I discovered a property I didn't know about that I believe is not set properly. In the build function:

  @override
  Widget build(BuildContext context) {
    return Column(
      children: <Widget>[
        GestureDetector(
          onHorizontalDragEnd: (details) {
            localPosition = 0.0;
          },
          onHorizontalDragUpdate: (details) {
            // Swipe check,if allowed than only will image move
            if (widget.allowSwipeToRotate) {
              if (details.delta.dx > 0) {
                handleRightSwipe(details);
              } else if (details.delta.dx < 0) {
                handleLeftSwipe(details);
              }
            }
          },
          child: Image(image: widget.imageList[rotationIndex]),
        ),
      ],
    );
  }

child: Image(image: widget.imageList[rotationIndex]), should be changed to child: Image(gaplessPlayback: true, image: widget.imageList[rotationIndex]),.

Perhaps on a Samsung Galaxy S10 or an iPhone 10 you can't even notice it cause they're so fast, but on the Android emulator or a mid-range Android device, it's very clearly noticeable.

gaplessPlayback: true.

@harpreetseera
Copy link
Member

harpreetseera commented Oct 22, 2020

Hi, thanks for pointing it out. You can check out version 1.2.0 as the issue has been fixed in the version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants