diff --git a/lib/compenents/ViewAllcontest.dart b/lib/compenents/ViewAllcontest.dart index e531894..49213a3 100644 --- a/lib/compenents/ViewAllcontest.dart +++ b/lib/compenents/ViewAllcontest.dart @@ -79,6 +79,11 @@ class _ViewAllcontestState extends State { .replaceAll(':', '') .replaceAll('.', ''); return Card( + color: filteredContest[position] + .startTime + .isBefore(DateTime.now()) + ? Colors.orange + : Color(0xff5D4524), child: Column( children: [ ListTile( diff --git a/lib/compenents/platform.dart b/lib/compenents/platform.dart index aac038a..861915d 100644 --- a/lib/compenents/platform.dart +++ b/lib/compenents/platform.dart @@ -29,6 +29,9 @@ Widget ViewBycontest(List contest, String s) { .replaceAll(':', '') .replaceAll('.', ''); return Card( + color: temporary[position].startTime.isBefore(DateTime.now()) + ? Colors.orange + : Color(0xff5D4524), child: Column( children: [ ListTile(