multi_image_layout 0.0.7 multi_image_layout: ^0.0.7 copied to clipboard
Package to view a list of network images in different layouts depending on their number.
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.
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.