I want to retrieve the images from an api and I get this error. Can anyone help me? Thanks in advance. Note that I am on the localhost
CachedNetworkImage(
imageUrl: AppConstants.BASE_URL
getCartHistoryList[listCounter - 1].img!,
),
CodePudding user response:
First of all you are trying to fetch image using
CachedNetworkImage
which will takes
imageUrl
argument as a String and in
https://
format i.e. it should be a link Now come to the error part where error show
images/27567... so on
which is not the url link so first print this
AppConstants.BASE_URL
getCartHistoryList[listCounter - 1].img!,
and you will get to know the reason and will solve that easily