Hide the support tips on iOS until they are set up on the App Store

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
metatroncubeswdev 2026-11-03 11:05:25 -05:00
parent 5c304ec494
commit 295919be44

View File

@ -1,3 +1,4 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:go_router/go_router.dart';
@ -75,9 +76,12 @@ class SettingsScreen extends ConsumerWidget {
tile(Icons.sd_storage_outlined, 'Storage used',
subtitle: '${downloads.entries.length} songs · $mb MB',
onTap: downloads.entries.isEmpty ? null : () => _removeAll(context, ref)),
section('Support us'),
tile(Icons.favorite_outline, 'Support Nanga Kathai',
subtitle: 'Help keep Badaga music free', onTap: () => context.push('/support')),
// The support tips aren't set up on the App Store yet, so iOS doesn't offer them.
if (defaultTargetPlatform != TargetPlatform.iOS) ...[
section('Support us'),
tile(Icons.favorite_outline, 'Support Nanga Kathai',
subtitle: 'Help keep Badaga music free', onTap: () => context.push('/support')),
],
section('Help'),
tile(Icons.help_outline, 'Help & FAQ', onTap: () => context.push('/help')),
tile(Icons.flag_outlined, 'Is this your song? Report a song', onTap: () => context.push('/report')),