I got image Base64 encoded image data, but one of the images I got was not uploaded and gives an error in the form of
invalid length must be multiple of four.
Also, my other images appear for a moment and then disappear for a moment. They come and go. Is there a solution for this issue?
Widget image(String thumbnail) {
final _byteImage = Base64Decoder().convert(thumbnail);
Widget image = Image.memory(_byteImage);
return image;
}
child: Column(
children: [
image(item.thumbnail),
Text(
item.name,
style: TextStyle(fontSize: 14, fontWeight: FontWeight.normal,fontFamily: 'Poppins'),
maxLines: 2,
),
],
),