Giter Site home page Giter Site logo

jyotsnayall / sliding_images-flutter-plugin Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.62 MB

A Flutter widget for creating image sliders.

Home Page: https://pub.dev/packages/sliding_images

License: MIT License

Java 0.96% Kotlin 0.21% Swift 3.21% Objective-C 1.10% Dart 12.01% CMake 34.57% C++ 39.48% C 3.47% HTML 3.14% Shell 1.86%
carousel-slider flutter slider widget

sliding_images-flutter-plugin's Introduction

sliding_images

SlidingImages Flutter widget creates image sliders with customizable properties such as image dimensions, padding, auto-play, custom indicators, and more..

demo

Features

  • Image carousel with URL support.
  • Customizable image dimensions and padding.
  • Set the initial displayed image index.
  • Auto-play with interval.
  • Apply border to images.
  • Navigation indicator.
  • Animation curve customization.
  • Scaling for active and non-active images.

Getting started

To use this package, add sliding_images as a dependency in your pubspec.yaml file.

Usage

Minimal example:

SlidingImages(
  imgUrls: ["https://p1.pxfuel.com/preview/321/155/730/alpine-bavaria-flowers-germany.jpg",
            "https://p1.pxfuel.com/preview/818/670/574/dogs-chihuahua-rest-small-fur-cozy.jpg",
            "https://p0.pxfuel.com/preview/961/674/322/podcast-coffee-chocolate-cup.jpg",
            ],
)

Custom settings:

    SlidingImages(
      imgUrls: ["https://p1.pxfuel.com/preview/321/155/730/alpine-bavaria-flowers-germany.jpg",
                "https://p1.pxfuel.com/preview/818/670/574/dogs-chihuahua-rest-small-fur-cozy.jpg",
                "https://p0.pxfuel.com/preview/961/674/322/podcast-coffee-chocolate-cup.jpg",
                ],
      imageWidth: 300,
      imageHeight: 200,
      padding: EdgeInsets.all(8.0),
      border: Border.all(color: Colors.grey, width: 1.0),
      autoPlayInterval: Duration(seconds: 3),
      customIndicator: CustomIndicator(),
      initialPage: 2,
      enableAutoPlay: true,
      infiniteScroll: true,
      animationCurve: Curves.easeInOut,
      activeSlideScale: 1.2,
      nonActiveSlideScale: 0.9,
    )

See also

sliding_images-flutter-plugin's People

Contributors

jyotsnayall avatar

Watchers

 avatar

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.