image_grid_layout 0.0.1 copy "image_grid_layout: ^0.0.1" to clipboard
image_grid_layout: ^0.0.1 copied to clipboard

A simple flutter widget that displays Image widgets in a lively layout.

Image Grid #

A simple flutter widget that displays Image widgets in a lively layout.

Features #

  • Layout a grid of images with varying sizes.
  • The images in the same row are scaled to the same height.
  • Randomly assign a different number of images to each row.

Getting started #

TODO

Usage #

Simply pass a List<Image> to the ImageGrid constructor. Set BitFit.fill for the Image to enable image stretching.

ImageGrid(
    images: imageUrls
        .map((e) => Image.network(
                e,
                fit: BoxFit.fill,
            ))
        .toList(),
    minItemPerRow: 2,
    maxItemPerRow: 3,
)

Check out the example for the full demo.

4
likes
140
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

A simple flutter widget that displays Image widgets in a lively layout.

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on image_grid_layout