diff --git a/lib/Screens/race_details.dart b/lib/Screens/race_details.dart index 6f67b96..ba91cb7 100644 --- a/lib/Screens/race_details.dart +++ b/lib/Screens/race_details.dart @@ -1501,7 +1501,7 @@ class _SessionCountdownTimerState extends State { }, ) : Padding( - padding: const EdgeInsets.all(15.5), + padding: const EdgeInsets.only(top: 18, bottom: 19), child: Text( scheduleLastSavedFormat == 'ergast' || widget.isFromRaceHub ? shouldUse12HourClock @@ -1535,7 +1535,7 @@ class _SessionCountdownTimerState extends State { width: 1, ), ), - onPressed: () { + onPressed: () async { Event event = Event( title: '${widget.sessionName} - ${race.raceName}', location: race.country, @@ -1557,7 +1557,7 @@ class _SessionCountdownTimerState extends State { raceFullDateParsed.toLocal().second, ), ); - Add2Calendar.addEvent2Cal(event); + await Add2Calendar.addEvent2Cal(event); }, ), )