Issue
children:
space.photos.map((item) {
return Container(
margin: EdgeInsets.only(
left: 24,
),
child: ClipRRect(
borderRadius: BorderRadius.circular(16),
child: Image.network(
item,
width: 110,
height: 88,
fit: BoxFit.cover,
),
),
);
}).toList()
Solution
http.get()
takes a Uri as its argument and not a string. Correct way: http.get(Uri.parse('https://bwa-cozy.herokuapp.com/recommended-spaces'));
Answered By - TheUltimateOptimist
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.