Hide platform links for Apple
This commit is contained in:
parent
7870441d5c
commit
c63d8beea9
|
|
@ -1331,6 +1331,7 @@ void _showAbout(BuildContext context) async {
|
|||
title: Text(state.user.fullName),
|
||||
subtitle: Text(state.user.email),
|
||||
),
|
||||
if (!isApple())
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 4),
|
||||
child: AppButton(
|
||||
|
|
@ -1343,8 +1344,8 @@ void _showAbout(BuildContext context) async {
|
|||
return AlertDialog(
|
||||
actions: [
|
||||
TextButton(
|
||||
child: Text(
|
||||
localization.sourceCode.toUpperCase()),
|
||||
child: Text(localization.sourceCode
|
||||
.toUpperCase()),
|
||||
onPressed: () {
|
||||
showDialog<AlertDialog>(
|
||||
context: context,
|
||||
|
|
@ -1355,7 +1356,8 @@ void _showAbout(BuildContext context) async {
|
|||
child: Text(localization.close
|
||||
.toUpperCase()),
|
||||
onPressed: () =>
|
||||
Navigator.of(context).pop(),
|
||||
Navigator.of(context)
|
||||
.pop(),
|
||||
),
|
||||
],
|
||||
content: Column(
|
||||
|
|
@ -1400,8 +1402,8 @@ void _showAbout(BuildContext context) async {
|
|||
},
|
||||
),
|
||||
TextButton(
|
||||
child:
|
||||
Text(localization.close.toUpperCase()),
|
||||
child: Text(
|
||||
localization.close.toUpperCase()),
|
||||
onPressed: () =>
|
||||
Navigator.of(context).pop(),
|
||||
),
|
||||
|
|
@ -1437,14 +1439,14 @@ void _showAbout(BuildContext context) async {
|
|||
AppButton(
|
||||
label: 'iOS',
|
||||
iconData: MdiIcons.apple,
|
||||
onPressed: () =>
|
||||
launchUrl(Uri.parse(kAppleStoreUrl)),
|
||||
onPressed: () => launchUrl(
|
||||
Uri.parse(kAppleStoreUrl)),
|
||||
),
|
||||
AppButton(
|
||||
label: 'Android',
|
||||
iconData: MdiIcons.android,
|
||||
onPressed: () =>
|
||||
launchUrl(Uri.parse(kGoogleStoreUrl)),
|
||||
onPressed: () => launchUrl(
|
||||
Uri.parse(kGoogleStoreUrl)),
|
||||
),
|
||||
AppButton(
|
||||
label: 'F-Droid',
|
||||
|
|
|
|||
Loading…
Reference in New Issue