I have many FittedBoxes in a Gridview. The fitted box automatically has a width:100%. I want to set a site ratio for the FittedBox. Is there a way to set it or get the width to set the height?
Container(
height:?,
child: FittedBox(
fit: BoxFit.fill,
child: Image.network(''),
)
);
EDIT: The ratio is 1/1. Why is that?
AspectRatio(
aspectRatio: 16/9,
child: FittedBox(
fit: BoxFit.fill,
child: Image.network('')),
);