horizontal_gallery_widget 0.0.9 copy "horizontal_gallery_widget: ^0.0.9" to clipboard
horizontal_gallery_widget: ^0.0.9 copied to clipboard

Simple widget to show images in horizontal gallery with specific style.

Just a simple widget to display a horizontal gallery of images.

Example #

  HorizontalGalleryWidget(
    items: [
      GalleryItem(
        uri: 'https://picsum.photos/300/100',
        title: 'Image 1',
        description: 'Description 1',
      ),
      GalleryItem(
        uri: 'https://picsum.photos/300/600',
        title: 'Image 2',
        description: 'Description 2',
      ),
      GalleryItem(
        uri: 'https://picsum.photos/300/400',
        title: 'Image 3',
        description: 'Description 3',
      ),
      GalleryItem(
        uri: 'https://picsum.photos/300/200',
        title: 'Image 4',
        description: 'Description 4',
      ),
      GalleryItem(
        uri: 'https://picsum.photos/300/300',
        title: 'Image 5',
        description: 'Description 5',
      )
    ],
    onItemTap: (item) {
      ScaffoldMessenger.of(context).showSnackBar(
        SnackBar(
          content: Text('Tapped on ${item.title}'),
        ),
      );
    },
  );
0
likes
150
points
21
downloads

Publisher

verified publisherlarryhsiao.com

Weekly Downloads

Simple widget to show images in horizontal gallery with specific style.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on horizontal_gallery_widget