Coder Social home page Coder Social logo

hd-motion / flutter_imageview_360 Goto Github PK

View Code? Open in Web Editor NEW
111.0 111.0 29.0 7.28 MB

A Flutter package which provides 360 view of the images with rotation and gesture customisations.

License: Apache License 2.0

Kotlin 3.34% Swift 3.28% Objective-C 0.30% Dart 93.08%
360imageview flutter

flutter_imageview_360's People

Contributors

damanpreetsb avatar harpreetseera avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

flutter_imageview_360's Issues

Set starting index for 360 sequence

I don't see an option for this, but can we possibly set a starting index for the 360 sequence? So for example, if I want to start the sequence at the 10th image instead of the 1st, on the initial load of the widget.

Images Download From internet can't be displayed

I tried to download an images and then add them to an array , pass this array to ImageView360 widget ,
but it take only AssetImage, so there i must have an images first in assets .
How to do this?

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

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.