1

A basic usage as it, but in this case it is not fitted to screen borders. Is it possible to display it with a behaviour of BoxFit.cover ? A double tap make it fitted to the screen borders. Is it possible to display it this way initially?

PhotoView(
  imageProvider: NetworkImage(url),
)
rozerro
  • 5,787
  • 9
  • 46
  • 94

1 Answers1

5

I recently had the same problem here, but I found a solution. Although the answer is late by a couple months but here it is.

initialScale: PhotoViewComputedScale.covered,

Just add this line inside your PhotoView, it shows the same behaviour as BoxFit.cover.

Roslan Amir
  • 1,141
  • 8
  • 16
EverFinal88
  • 98
  • 1
  • 9