From 5cd4d2d158db8a76e32243a36e74693e067a7a6e Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 21 Aug 2022 11:04:01 -0700 Subject: [PATCH] Added condition to show notification setting on android only --- mobile/lib/modules/settings/views/settings_page.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mobile/lib/modules/settings/views/settings_page.dart b/mobile/lib/modules/settings/views/settings_page.dart index 8cbedd0efc..84264ed57b 100644 --- a/mobile/lib/modules/settings/views/settings_page.dart +++ b/mobile/lib/modules/settings/views/settings_page.dart @@ -1,3 +1,5 @@ +import 'dart:io'; + import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; @@ -39,7 +41,7 @@ class SettingsPage extends HookConsumerWidget { const ImageViewerQualitySetting(), const ThemeSetting(), const AssetListSettings(), - const NotificationSetting(), + if (Platform.isAndroid) const NotificationSetting(), ], ).toList(), ],