basic_image_gallery 0.0.3 copy "basic_image_gallery: ^0.0.3" to clipboard
basic_image_gallery: ^0.0.3 copied to clipboard

A basic image gallery widget which is used to display images from the network and local files.

basic_image_gallery #

A basic image gallery widget for android and ios.

Overview

Features #

  • Display gallery of images with list of files.
  • Display gallery of images with list of network urls.
  • Display gallery of images with list of files and network urls.
  • Select initial image using initialPage attribute.

Getting started #

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  ...
  basic_image_gallery: "^0.0.1"

In your library add the following import:

import 'package:basic_image_gallery/image_gallery.dart';

For help getting started with Flutter, view the online documentation.

A ImageGallery needs multiple things:

  • List of files if you want to display images from files.
  • List of network urls if you want to display image from urls.
  • initialPage number.
ImageGallery(
        initialPage: 1,
        files: [],
        networkUrl: [
          "https://bugyalvalley.com/wp-content/uploads/2019/11/IMA-Dehradun.jpg",
          "https://upload.wikimedia.org/wikipedia/commons/b/b6/Image_created_with_a_mobile_phone.png"
        ],
)

FAQ #

How to display only images from network?

set files array to empty.

How to display only images from files?

set networkUrls to empty.

Changelog #

Please see the Changelog page to know what's recently changed.

Contributions #

Feel free to contribute to this project.

If you find a bug or want a feature, but don't know how to fix/implement it, please fill an issue. If you fixed a bug or implemented a feature, please send a pull request.

2
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A basic image gallery widget which is used to display images from the network and local files.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on basic_image_gallery