Open youngGriff opened 6 years ago
I've the same problem and people suggest multiple solution but that won't work in this situation, so I solve this by reducing the size of icons (gravity and distance) , and reducing the font size that we use their and that's it.
in my case, I solved modify planetCardContent margin
final planetCardContent = new Container( margin: new EdgeInsets.fromLTRB(76.0, 12.0, 16.0, 12.0),
return new Container(
- height: 120.0,
margin: const EdgeInsets.symmetric(
vertical: 16.0,
horizontal: 24.0,
),
child: new Stack(
children: <Widget>[
planetCard,
planetThumbnail,
],
)
);
remove height is also effective
`import 'package:flutter/material.dart'; import 'package:my_flutter_plannets/model/planets.dart';
class PlanetRow extends StatelessWidget {
final Planet planet;
PlanetRow(this.planet);
@override Widget build(BuildContext context) { final planetThumbnail = new Container( margin: new EdgeInsets.symmetric( vertical: 16.0 ), alignment: FractionalOffset.centerLeft, child: new Image( image: new AssetImage(planet.image), height: 92.0, width: 92.0, ), );
} } `