skip to Main Content

Flutter – not all images can be displayed

Here is my code for get image: Image.network('http://10.0.2.2:8000/${widget.product.imageUrl}', fit: BoxFit.cover), and the error: ════════ Exception caught by image resource service ════════════════════════════ The following HttpException was thrown resolving an image codec: Connection closed while receiving data, uri = http://10.0.2.2:8000/uploads/products/0-1713659504.png When the…

VIEW QUESTION

Only one image can't displays image asset – Flutter

I want to display an image in my app. Like this : class _OnBoardingDataPage1State extends State<OnBoardingDataPage1> { @override Widget build(BuildContext context) { return Scaffold( body: SafeArea( child: SingleChildScrollView( child: SizedBox( width: double.infinity, child: Column( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: […

VIEW QUESTION
Back To Top
Search