Monthly Calendar - opponent logo in event lister

This commit is contained in:
kconnel7
2020-04-10 16:03:06 -04:00
parent f6927245fd
commit 4c54a49f7c
7 changed files with 91 additions and 19 deletions

View File

@@ -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(

View File

@@ -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'],