Monthly Calendar - opponent logo in event lister
This commit is contained in:
@@ -283,10 +283,11 @@ class _Calendar extends State<Calendar> with TickerProviderStateMixin {
|
||||
margin: const EdgeInsets.symmetric(horizontal: 8.0, vertical: 4.0),
|
||||
|
||||
child: ListTile(
|
||||
leading: Icon(Icons.image), //opponent logo - Not done (Placeholder)
|
||||
leading: Image.network(
|
||||
'https://charlotte49ers.com' + event.image.toString(),
|
||||
width: 50.0,
|
||||
),
|
||||
title: Wrap(
|
||||
|
||||
|
||||
children: <Widget>[
|
||||
if (event.location_indicator.toString() == "H")
|
||||
Text(
|
||||
|
||||
@@ -13,7 +13,7 @@ class sport_schedule {
|
||||
|
||||
// -- opponent json --
|
||||
final String opponentTitle; //title: Tennessee, Norfolk State
|
||||
//final image - image: (do later)
|
||||
final String image;
|
||||
|
||||
// -- result json --
|
||||
final String status; //status: W - T - L
|
||||
@@ -32,7 +32,7 @@ class sport_schedule {
|
||||
this.gender,
|
||||
|
||||
this.opponentTitle,
|
||||
//this.image,
|
||||
this.image,
|
||||
|
||||
this.status,
|
||||
this.team_score,
|
||||
@@ -52,7 +52,7 @@ class sport_schedule {
|
||||
gender: json['sport']['gender'],
|
||||
|
||||
opponentTitle: json['opponent']['title'],
|
||||
//image: json['opponent']['image'],
|
||||
image: json['opponent']['image'],
|
||||
|
||||
status: json['result']['status'],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user