I am new to Flutter and I'm trying to create a layout that is responsive to different screen sizes. I've spent a lot of time reading the Flutter documentation, but I haven't been able to figure this out.
The following code works great for a larger phone screen size, but the Cards display an "Another exception was thrown: A RenderFlex overflowed by 13 pixels on the bottom." for smaller screen size. I am fixing the height.
How can I modify the height so that it takes into account the Card size when determining this value?
return InkWell(
borderRadius: BorderRadius.circular(15),
child: Card(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(15),
),
child: Column(
children: <Widget>[
Padding(
padding: const EdgeInsets.only(top: 10),
),
Stack(
children: <Widget>[
ClipRRect(
child: Image(
image: myimage,
height: 60,
fit: BoxFit.fitHeight,
),
),
],
),
Padding(
padding: EdgeInsets.all(10),
child: Row(
children: <Widget>[
Row(
children: <Widget>[
SizedBox(
width: 5,
),
Text(mytext),
],
),
],
),
),
],
),
),
);
}