diff --git a/lib/Screens/race_details.dart b/lib/Screens/race_details.dart index 0f455e1..c3a277a 100644 --- a/lib/Screens/race_details.dart +++ b/lib/Screens/race_details.dart @@ -579,7 +579,7 @@ class _RaceResultsProviderState extends State { } } else { bool useOfficialDataSoure = Hive.box('settings') - .get('useOfficialDataSoure', defaultValue: false) as bool; + .get('useOfficialDataSoure', defaultValue: true) as bool; String championship = Hive.box('settings') .get('championship', defaultValue: 'Formula 1') as String; if (championship == 'Formula 1') { @@ -884,7 +884,7 @@ class _SprintResultsProviderState extends State { return await Formula1().getSprintStandings(meetingId); } else { bool useOfficialDataSoure = Hive.box('settings') - .get('useOfficialDataSoure', defaultValue: false) as bool; + .get('useOfficialDataSoure', defaultValue: true) as bool; if (useOfficialDataSoure) { return await Formula1().getSprintStandings(race!.meetingId); } else { @@ -1022,7 +1022,7 @@ class _QualificationResultsProviderState .get('championship', defaultValue: 'Formula 1') as String; if (championship == 'Formula 1') { bool useOfficialDataSoure = Hive.box('settings') - .get('useOfficialDataSoure', defaultValue: false) as bool; + .get('useOfficialDataSoure', defaultValue: true) as bool; if (widget.isSprintQualifying ?? false) { return await Formula1().getSprintQualifyingStandings(race!.meetingId); } else { diff --git a/lib/Screens/schedule.dart b/lib/Screens/schedule.dart index 55e96d5..3958221 100644 --- a/lib/Screens/schedule.dart +++ b/lib/Screens/schedule.dart @@ -97,7 +97,7 @@ class ScheduleWidget extends StatelessWidget { .get('championship', defaultValue: 'Formula 1') as String; if (championship == 'Formula 1') { bool useOfficialDataSoure = Hive.box('settings') - .get('useOfficialDataSoure', defaultValue: false) as bool; + .get('useOfficialDataSoure', defaultValue: true) as bool; if (useOfficialDataSoure) { return await Formula1().getLastSchedule(toCome); } else { diff --git a/lib/Screens/settings.dart b/lib/Screens/settings.dart index 2538af6..be0d71c 100644 --- a/lib/Screens/settings.dart +++ b/lib/Screens/settings.dart @@ -560,7 +560,7 @@ class _OtherCardstate extends State { bool useOfficialWebview = Hive.box('settings') .get('useOfficialWebview', defaultValue: true) as bool; bool useOfficialDataSoure = Hive.box('settings') - .get('useOfficialDataSoure', defaultValue: false) as bool; + .get('useOfficialDataSoure', defaultValue: true) as bool; bool shouldUse12HourClock = Hive.box('settings') .get('shouldUse12HourClock', defaultValue: false) as bool; bool enableExperimentalFeatures = Hive.box('settings') diff --git a/lib/Screens/standings.dart b/lib/Screens/standings.dart index 0cd28dc..b06bc33 100644 --- a/lib/Screens/standings.dart +++ b/lib/Screens/standings.dart @@ -94,7 +94,7 @@ class DriversStandingsWidget extends StatelessWidget { .get('championship', defaultValue: 'Formula 1') as String; if (championship == 'Formula 1') { bool useOfficialDataSoure = Hive.box('settings') - .get('useOfficialDataSoure', defaultValue: false) as bool; + .get('useOfficialDataSoure', defaultValue: true) as bool; if (useOfficialDataSoure) { return await Formula1().getLastStandings(); } else { @@ -185,7 +185,7 @@ class TeamsStandingsWidget extends StatelessWidget { .get('championship', defaultValue: 'Formula 1') as String; if (championship == 'Formula 1') { bool useOfficialDataSoure = Hive.box('settings') - .get('useOfficialDataSoure', defaultValue: false) as bool; + .get('useOfficialDataSoure', defaultValue: true) as bool; if (useOfficialDataSoure) { return await Formula1().getLastTeamsStandings(); } else { diff --git a/lib/api/event_tracker.dart b/lib/api/event_tracker.dart index fec9435..2ccc029 100644 --- a/lib/api/event_tracker.dart +++ b/lib/api/event_tracker.dart @@ -312,7 +312,7 @@ class EventTracker { String endpoint = Hive.box('settings') .get('server', defaultValue: defaultEndpoint) as String; bool useOfficialDataSoure = Hive.box('settings') - .get('useOfficialDataSoure', defaultValue: false) as bool; + .get('useOfficialDataSoure', defaultValue: true) as bool; Uri uri = Uri.parse( endpoint != defaultEndpoint