RenderBox was not laid out
//in using GridView consider using shrinkWrap
GridView.builder(
itemCount: featuredCoursesData.length,
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: (orientation == Orientation.portrait) ? 2 : 3),
itemBuilder: (BuildContext context, int index) {
return new Card(
child: new GridTile(
footer: new Text(featuredCoursesData[index].title),
child: new Text(featuredCoursesData[index].instructor), //just for testing, will fill with image later
),
);
},
shrinkWrap: true,
),