Fixed Game Card Text

This commit is contained in:
Carlos Lopez-Rosario
2020-05-02 18:21:41 -04:00
parent 83abdf1fa1
commit 2390b65922

View File

@@ -149,7 +149,7 @@ class GameCard extends StatelessWidget {
Widget buildCard(BuildContext ctx, double logoWidth, Map<int, String> _months) {
return Container(
color: Colors.green,
color: Colors.black12,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
mainAxisSize: MainAxisSize.min,
@@ -161,7 +161,10 @@ class GameCard extends StatelessWidget {
true, ctx),
),
Container(
child: Wrap(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Wrap(
children: <Widget>[
if (gameCard.status == null) // no game yet
Text(
@@ -174,6 +177,19 @@ class GameCard extends StatelessWidget {
gameCard.team_score,
gameCard.opponent_score,),
],
),
Wrap(
children: <Widget>[
if (gameCard.status != null) // no game yet
Text(
'${_months[gameCard.date.month]} ${gameCard.date.day}', textAlign: TextAlign.center,
)
else
Text('${gameCard.date.hour}:${gameCard.date.minute} PM'),
],
)
]
)
),
Expanded(