EasyImageView constructor

const EasyImageView({
  1. Key? key,
  2. required String imageProvider,
  3. double minScale = 1.0,
  4. double maxScale = 5.0,
  5. required void onScaleChanged(
    1. double
    ),
})

Creates an interactive image viewer.

Parameters:

  • imageProvider: URL of the network image to display (required)
  • minScale: Minimum zoom scale factor (defaults to 1.0)
  • maxScale: Maximum zoom scale factor (defaults to 5.0)
  • onScaleChanged: Callback invoked when scale changes during interaction (required)

Implementation

const EasyImageView({
  super.key,
  required this.imageProvider,
  this.minScale = 1.0,
  this.maxScale = 5.0,
  required this.onScaleChanged,
});