File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ class Formula1 {
270270 String time;
271271 String fastestLapDriverName = "" ;
272272 String fastestLapTime = "" ;
273- for (var award in raceStandings["raceResultsRace" ]["awards" ]) {
273+ for (var award in ( raceStandings["raceResultsRace" ]["awards" ] ?? []) ) {
274274 // find fastest_lap award, as its index may not be static
275275 if (award['type' ].toLowerCase () == 'fastest_lap' ) {
276276 fastestLapDriverName = award['winnerName' ];
Original file line number Diff line number Diff line change @@ -344,7 +344,6 @@ class RacesList extends StatelessWidget {
344344 Duration (minutes: 5 ),
345345 );
346346
347- sessionDate = DateTime .now ().add (Duration (seconds: 15 ));
348347 await AwesomeNotifications ().createNotification (
349348 content: NotificationContent (
350349 id: createUniqueId (),
You can’t perform that action at this time.
0 commit comments