Hide upgrade CTAs on Apple devices

This commit is contained in:
Hillel Coren 2022-07-06 09:05:17 +03:00
parent 46e3c3f682
commit 4361e9aea5
2 changed files with 17 additions and 13 deletions

View File

@ -299,7 +299,9 @@ class _InvoiceEmailViewState extends State<InvoiceEmailView>
padding: const EdgeInsets.only(bottom: 10), padding: const EdgeInsets.only(bottom: 10),
child: IconMessage( child: IconMessage(
localization.customEmailsDisabledHelp, localization.customEmailsDisabledHelp,
trailing: TextButton( trailing: isApple()
? null
: TextButton(
child: Text( child: Text(
localization.upgrade.toUpperCase(), localization.upgrade.toUpperCase(),
style: TextStyle( style: TextStyle(

View File

@ -412,9 +412,11 @@ class ReportsScreen extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
HelpText(localization.upgradeToViewReports), HelpText(localization.upgradeToViewReports),
if (!isApple())
AppButton( AppButton(
label: localization.upgrade.toUpperCase(), label: localization.upgrade.toUpperCase(),
onPressed: () => launch(state.userCompany.ninjaPortalUrl), onPressed: () =>
launch(state.userCompany.ninjaPortalUrl),
) )
], ],
), ),