galleryimage 2.0.1 copy "galleryimage: ^2.0.1" to clipboard
galleryimage: ^2.0.1 copied to clipboard

Flutter plugin that list of images from URLs allows you to display and zoomable multi image on iOS and Android.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:galleryimage/galleryimage.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Gallery Image Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: const MyHomePage(title: 'Gallery Image Demo'),
    );
  }
}

class MyHomePage extends StatelessWidget {
  final String title;

  const MyHomePage({Key? key, required this.title}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(title),
      ),
      body: Center(
        child: SingleChildScrollView(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              const Text("Tap to show image"),
              Padding(
                padding: const EdgeInsets.all(10.0),
                child: GalleryImage(
                  numOfShowImages: 6,
                  imageUrls: const [
                    "https://cosmosmagazine.com/wp-content/uploads/2020/02/191010_nature.jpg",
                    "https://scx2.b-cdn.net/gfx/news/hires/2019/2-nature.jpg",
                    "https://wallpapers.com/images/featured/2ygv7ssy2k0lxlzu.jpg",
                    "https://upload.wikimedia.org/wikipedia/commons/7/77/Big_Nature_%28155420955%29.jpeg",
                    "https://www.rd.com/wp-content/uploads/2020/04/GettyImages-1093840488-5-scaled.jpg",
                    "https://media.cntraveller.com/photos/611bf0b8f6bd8f17556db5e4/1:1/w_2000,h_2000,c_limit/gettyimages-1146431497.jpg",
                    "https://img.freepik.com/premium-photo/fantastic-view-kirkjufellsfoss-waterfall-near-kirkjufell-mountain-sunset_761071-868.jpg",
                    "https://www.travelandleisure.com/thmb/KLPvXakEKLGE5AY2jVyovl3Md1k=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/iceland-BEAUTCONT1021-b1aeafa7ac2847a484cbca48d3172b6c.jpg",
                    "https://w0.peakpx.com/wallpaper/265/481/HD-wallpaper-nature.jpg",
                    "https://e0.pxfuel.com/wallpapers/163/906/desktop-wallpaper-beautiful-nature-with-girl-beautiful-girl-with-nature-and-moon-high-resolution-beautiful.jpg",
                  ],
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
81
likes
140
points
1.87k
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin that list of images from URLs allows you to display and zoomable multi image on iOS and Android.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

cached_network_image, flutter

More

Packages that depend on galleryimage