Tentative alignement colonnes
This commit is contained in:
@@ -75,21 +75,21 @@ class _HomePageState extends State<HomePage> {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: ships.map((ship) {
|
||||
return Card(
|
||||
return Container(
|
||||
width: MediaQuery.of(context).size.width,
|
||||
child: Card(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Row(
|
||||
children: [
|
||||
Text('${ship.symbol ?? 'N/A'}'),
|
||||
SizedBox(width: 16),
|
||||
Text('${ship.nav?.status ?? 'N/A'}'),
|
||||
SizedBox(width: 16),
|
||||
Text('Fuel: ${ship.fuel?.current ?? 'N/A'} / ${ship.fuel?.capacity ?? 'N/A'}'),
|
||||
SizedBox(width: 16),
|
||||
Text('Cargo: ${ship.cargo?.units ?? 'N/A'} / ${ship.cargo?.capacity ?? 'N/A'}'),
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: <Widget>[
|
||||
Text('${ship.symbol ?? 'N/A'}'),
|
||||
Text('${ship.nav?.status ?? 'N/A'}'),
|
||||
Text('Fuel: ${ship.fuel?.current ?? 'N/A'} / ${ship.fuel?.capacity ?? 'N/A'}'),
|
||||
Text('Cargo: ${ship.cargo?.units ?? 'N/A'} / ${ship.cargo?.capacity ?? 'N/A'}'),
|
||||
],
|
||||
),
|
||||
),
|
||||
),),
|
||||
);
|
||||
}).toList(),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user