Hide upgrade CTAs on Apple devices
This commit is contained in:
parent
46e3c3f682
commit
4361e9aea5
|
|
@ -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(
|
||||||
|
|
|
||||||
|
|
@ -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),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue