0

I want to show a big size image inside a flutter container Container( height:200, width:200, child:image.network('image_url',))

  • image size is not fixed it may 500,600. (but container size is fixed) I want user can scroll to see the rest of the picture content inside on that container.

Updated code

Container(
 height:200,
 width:200,
 child:SingleChildScrollView(
       scrollDirection: Axis.horizontal,
       child: image.network('image_url')
));
Md Tajmul
  • 1
  • 2

1 Answers1

-2

You can use an InteractiveViewer component (youtube video/ code & details)

ntg
  • 12,950
  • 7
  • 74
  • 95
Anaz
  • 112
  • 8