only show relevant calendar sync options

This commit is contained in:
Kima 2024-04-12 21:28:15 +02:00
parent c2754b83ae
commit afb9e5ee2c

View File

@ -1,5 +1,7 @@
// ignore_for_file: use_build_context_synchronously // ignore_for_file: use_build_context_synchronously
import 'dart:io';
import 'package:refilc/api/providers/user_provider.dart'; import 'package:refilc/api/providers/user_provider.dart';
import 'package:refilc/models/linked_account.dart'; import 'package:refilc/models/linked_account.dart';
import 'package:refilc/models/settings.dart'; import 'package:refilc/models/settings.dart';
@ -196,6 +198,7 @@ class CalendarSyncScreenState extends State<CalendarSyncScreen>
if (thirdPartyProvider.linkedAccounts.isEmpty) if (thirdPartyProvider.linkedAccounts.isEmpty)
Column( Column(
children: [ children: [
if (Platform.isAndroid)
SplittedPanel( SplittedPanel(
title: Text('choose_account'.i18n), title: Text('choose_account'.i18n),
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
@ -230,9 +233,10 @@ class CalendarSyncScreenState extends State<CalendarSyncScreen>
), ),
], ],
), ),
const SizedBox( // const SizedBox(
height: 9.0, // height: 9.0,
), // ),
if (Platform.isIOS)
SplittedPanel( SplittedPanel(
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
cardPadding: const EdgeInsets.all(4.0), cardPadding: const EdgeInsets.all(4.0),