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:
parent
5c304ec494
commit
295919be44
@ -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)),
|
||||
// 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')),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user