Skip to content

Commit

Permalink
- Pixel Overflow Error in "Upcoming Match Card" issue resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
JayAgola committed Oct 16, 2024
1 parent cde2d65 commit 7e9db57
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions lib/widgets/upcoming_match_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ class _UpcomingMatchCardState extends State<UpcomingMatchCard> {
snapshot.data.toString(),
),
);
} else if (snapshot.hasError) {
}
else if (snapshot.hasError) {
return Icon(Icons.image_not_supported_sharp);
} else {
}
else {
return CircleAvatar(
radius: 20,
backgroundColor: CustomColors.primaryColor,
Expand All @@ -80,12 +82,15 @@ class _UpcomingMatchCardState extends State<UpcomingMatchCard> {
},
),
),
Text(
team1.teamAbbreviation,
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontSize: 15,
color: Colors.white60,
Container(
width: MediaQuery.sizeOf(context).width*0.175,
child: Text(
team1.teamAbbreviation,
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontSize: 15,
color: Colors.white60,
),
),
),
],
Expand Down Expand Up @@ -168,12 +173,15 @@ class _UpcomingMatchCardState extends State<UpcomingMatchCard> {
},
),
),
Text(
team2.teamAbbreviation,
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontSize: 15,
color: Colors.white60,
Container(
width: MediaQuery.sizeOf(context).width*0.175,
child: Text(
team2.teamAbbreviation,
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontSize: 15,
color: Colors.white60,
),
),
),
],
Expand Down

0 comments on commit 7e9db57

Please sign in to comment.