Description

This package gives a twitter-like layout to images. Simply add one or more images and watch the layout change. Captions can also be added to each image.

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:

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

Android

  • android.permission.WRITE_EXTERNAL_STORAGE - Permission for usage of external storage

Usage

import 'package:multi_image_layout/multi_image_viewer.dart';
MultiImageViewer(
  images: [
    "https://picsum.photos/id/1/200/300",
    "https://picsum.photos/id/2/200/300",
    "https://picsum.photos/id/3/200/300",
  ],
  captions: [
    "Caption 1",
    "Caption 2",
    "Caption 3",
  ],
  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.

Libraries

multi_image_layout