Fixed Game Card Text
This commit is contained in:
@@ -149,7 +149,7 @@ class GameCard extends StatelessWidget {
|
|||||||
Widget buildCard(BuildContext ctx, double logoWidth, Map<int, String> _months) {
|
Widget buildCard(BuildContext ctx, double logoWidth, Map<int, String> _months) {
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
color: Colors.green,
|
color: Colors.black12,
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
@@ -161,19 +161,35 @@ class GameCard extends StatelessWidget {
|
|||||||
true, ctx),
|
true, ctx),
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
child: Wrap(
|
child: Column(
|
||||||
children: <Widget>[
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
if (gameCard.status == null) // no game yet
|
children: <Widget>[
|
||||||
Text(
|
Wrap(
|
||||||
'${_months[gameCard.date.month]} ${gameCard.date.day}'
|
children: <Widget>[
|
||||||
|
if (gameCard.status == null) // no game yet
|
||||||
|
Text(
|
||||||
|
'${_months[gameCard.date.month]} ${gameCard.date.day}'
|
||||||
|
)
|
||||||
|
else
|
||||||
|
_pastGameScore(
|
||||||
|
gameCard.location_indicator,
|
||||||
|
gameCard.status,
|
||||||
|
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'),
|
||||||
|
],
|
||||||
)
|
)
|
||||||
else
|
|
||||||
_pastGameScore(
|
]
|
||||||
gameCard.location_indicator,
|
|
||||||
gameCard.status,
|
|
||||||
gameCard.team_score,
|
|
||||||
gameCard.opponent_score,),
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
|||||||
Reference in New Issue
Block a user