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

Flutter – Move widget to right in Stack

How to move the image to the right? Stack( alignment: Alignment.centerRight, children: [ Container( decoration: BoxDecoration( borderRadius: BorderRadius.circular(15), gradient: LinearGradient( begin: Alignment.topLeft, end: Alignment.topRight, colors: [ Colors.red, Colors.green.shade200, ], ), ), width: MediaQuery.of(context).size.width, height: 80, ), Positioned( right: 0, left:…

VIEW QUESTION
Back To Top
Search