Reputation: 803
I'm trying to adjust all pictures (in trailing ListTile) to be as the THIRD one (to lower card).
This is my code so far :
return Card(
child:ListTile(...
...
trailing: LayoutBuilder(
builder: (BuildContext context, BoxConstraints constraints) {
return FadeInImage.memoryNetwork(
height: constraints.maxHeight,
placeholder: kTransparentImage,
image: picture,
);
},
),
I appreciate any help
Upvotes: 1
Views: 1446
Reputation: 803
By @Manuel suggestion - this is how it worked:
...trailing: LayoutBuilder(
builder: (BuildContext context, BoxConstraints constraints) {
return FadeInImage.memoryNetwork(
fit: BoxFit.cover,
height: constraints.maxHeight,
width: constraints.maxWidth/3,
placeholder: kTransparentImage,
image: picture,
);
},
),
Upvotes: 1