Skip to content

Commit

Permalink
[race details] small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
BrightDV committed Jul 16, 2024
1 parent ab4b394 commit 606a8bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Screens/race_details.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1501,7 +1501,7 @@ class _SessionCountdownTimerState extends State<SessionCountdownTimer> {
},
)
: Padding(
padding: const EdgeInsets.all(15.5),
padding: const EdgeInsets.only(top: 18, bottom: 19),
child: Text(
scheduleLastSavedFormat == 'ergast' || widget.isFromRaceHub
? shouldUse12HourClock
Expand Down Expand Up @@ -1535,7 +1535,7 @@ class _SessionCountdownTimerState extends State<SessionCountdownTimer> {
width: 1,
),
),
onPressed: () {
onPressed: () async {
Event event = Event(
title: '${widget.sessionName} - ${race.raceName}',
location: race.country,
Expand All @@ -1557,7 +1557,7 @@ class _SessionCountdownTimerState extends State<SessionCountdownTimer> {
raceFullDateParsed.toLocal().second,
),
);
Add2Calendar.addEvent2Cal(event);
await Add2Calendar.addEvent2Cal(event);
},
),
)
Expand Down

0 comments on commit 606a8bf

Please sign in to comment.