Search packages, repositories and app categories

photox cover
Package detailsv0.2.1

photox

An all-in-one solution for displaying interactive images.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
52
Likes
7
Pub points
120

Install package

flutter pub add photox

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

PhotoX is a comprehensive Flutter package designed to display and interact with images seamlessly across multiple platforms. It offers built-in support for zooming, panning, and touch gestures, making it ideal for photo galleries, image viewers, and interactive visual content. With a focus on performance and ease of integration, PhotoX simplifies the implementation of rich image experiences without requiring complex custom code. The package is actively maintained and compatible with Android, iOS, Web, macOS, Windows, and Linux.

Use cases

  • Interactive image viewing
  • Photo gallery applications
  • Zoomable image displays
  • Digital art showcases
  • Image annotation tools

Key features

  • Gesture-based zoom and pan
  • Cross-platform compatibility
  • High-performance rendering
  • Simple API integration
  • Support for large images
  • Responsive design

Suitable for

  • Developers building image-heavy apps
  • Teams needing quick image interaction features
  • Projects requiring multiplatform image support
  • Educational or creative applications

Considerations

  • May require optimization for very high-resolution images
  • Limited customization for advanced UI elements
  • Depends on Flutter's rendering pipeline
  • Best suited for static or semi-interactive images
  • Not ideal for real-time image editing

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

PhotoX

An all-in-one solution for displaying interactive images

   

Features

  • Smoothly animate images into fullscreen and back
  • Swipe to dismiss images
  • Pinch to zoom
  • Automatically generate swipeable gallery when given multiple images

Getting started

Add photox as a dependency in your pubspec.yaml file

flutter pub add photox

Import PhotoX:

import 'package:photox/photox.dart';

Usage

@override
Widget build(BuildContext context) {
  return Container(
    height: 400,
    width: 400,
    child: PhotoX(
      items: [
        PhotoXItem(
          id: "1", resource: "assets/img1.jpg", isAsset: true),
        PhotoXItem(
          id: "2", resource: "assets/img2.jpeg", isAsset: true),
      ]
    )
  );
}

Additional parameters

dismissMode
DismissMode.swipeAny DismissMode.swipeVertical

⚠️ DismissMode.swipeAny can only be used when provided with a single PhotoXItem

showPageIndicator

Whether to show the page indicator in the thumbnail gallery for multiple PhotoXItems

pageIndicatorAlignment

The alignment of the page indicator relative to the gallery

pageIndicatorActiveColor

The color of the active bubble in the page indicator

pageIndicatorInactiveColor

The color of the inactive bubbles in the page indicator

pageIndicatorBackgroundColor

The background color of the page indicator

pageIndicatorBubbleRadius

The radius of the indicator bubbles in the page indicator

pageIndicatorBubblePadding

The padding between the bubbles in the page indicator

fullscreenGalleryTitleTextStyle

The TextStyle for the AppBar title in the fullscreen gallery

fullscreenGalleryAppBarLeadingWidget

A custom widget to use as the leading widget in the fullscreen gallery AppBar

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package

No data available yet.