From 606a8bf5ed7e20907a7c2cb0ec969c8eea3ba64e Mon Sep 17 00:00:00 2001 From: BrightDV <92821484+BrightDV@users.noreply.github.com> Date: Tue, 16 Jul 2024 11:06:48 +0200 Subject: [PATCH] [race details] small improvements --- lib/Screens/race_details.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); }, ), )