ZoomableComposeImage

A zoomable image for jetpack compose

Features

  • Double click to zoom
  • Use gestures to zoom/move pictures

Setup

  1. Open settings.gradle, and add maven { url 'https://jitpack.io' } into repositories
    It should looks like this:

   dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' }
    }
}
  1. Add the dependency in build.gradle

implementation 'com.github.re-ovo:ZoomableComposeImage:1.0.1'
  1. Sync the project

Usage

// Example usage
ZoomableImage(
    modifier = your Modifier,
    painter = your painter here (Recommended to use with coil)
)

GitHub

View Github