Skip to content

Commit

Permalink
added color for upcoming and ongoing
Browse files Browse the repository at this point in the history
  • Loading branch information
eswar2001 committed Mar 7, 2021
1 parent 05ce200 commit 8393429
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/compenents/ViewAllcontest.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ class _ViewAllcontestState extends State<ViewAllcontest> {
.replaceAll(':', '')
.replaceAll('.', '');
return Card(
color: filteredContest[position]
.startTime
.isBefore(DateTime.now())
? Colors.orange
: Color(0xff5D4524),
child: Column(
children: [
ListTile(
Expand Down
3 changes: 3 additions & 0 deletions lib/compenents/platform.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ Widget ViewBycontest(List<Contest> contest, String s) {
.replaceAll(':', '')
.replaceAll('.', '');
return Card(
color: temporary[position].startTime.isBefore(DateTime.now())
? Colors.orange
: Color(0xff5D4524),
child: Column(
children: [
ListTile(
Expand Down

0 comments on commit 8393429

Please sign in to comment.