Home > Enterprise >  the error is in space.photos.map in the map section
the error is in space.photos.map in the map section

Time:03-25

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()

CodePudding user response:

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'));

  • Related