multi_image_layout 0.1.1 copy "multi_image_layout: ^0.1.1" to clipboard
multi_image_layout: ^0.1.1 copied to clipboard

Flexible gallery package for displaying multiple network and asset images in adaptive layouts.

Description #

Experience dynamic image layout capabilities with this Flutter package. Effortlessly integrate single or multiple images and observe the adaptive layout transformation in real-time. Enhanced with caption support for each image, it offers both versatility and precision for developers keen on superior UI experiences.

Screenshot_1656283282

Screenshot_1656283292

Getting started #

import 'package:multi_image_layout/multi_image_viewer.dart';

iOS #

Add the following keys to your Info.plist file, located in <project root>/ios/Runner/Info.plist:

  • NSPhotoLibraryAddUsageDescription - describe why your app needs permission for the photo library. This is called Privacy - Photo Library Usage Description in the visual editor.

Android #

You need to ask for storage permission to save an image to the gallery. You can handle the storage permission using flutter_permission_handler package.

  • android.permission.WRITE_EXTERNAL_STORAGE - Permission for usage of external storage
<application android:requestLegacyExternalStorage="true" .....>

Usage #

import 'package:multi_image_layout/multi_image_viewer.dart';
MultiImageViewer(
  images: [
    ImageModel(
      imageUrl: "https://4.img-dpreview.com/files/p/TS250x250~sample_galleries/3800753625/4684313123.jpg",
      caption: "Caption 1",
    ),
    ImageModel(
      imageUrl: "https://3.img-dpreview.com/files/p/TS250x250~sample_galleries/3800753625/8719688791.jpg",
      caption: "Caption 2",
    ),
  ],
  height: 200,
  width: 200,
),

🤝 Contributing #

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support #

Give a 👍 if you like this project!

📝 License #

This project is MIT licensed.

49
likes
140
pub points
82%
popularity

Publisher

unverified uploader

Flexible gallery package for displaying multiple network and asset images in adaptive layouts.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

cached_network_image, dio, flutter, image_gallery_saver, photo_view, readmore

More

Packages that depend on multi_image_layout