only show relevant calendar sync options
This commit is contained in:
parent
c2754b83ae
commit
afb9e5ee2c
@ -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),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user