In-app purchase
This commit is contained in:
parent
1197e9650d
commit
a4840854da
|
|
@ -69,7 +69,7 @@ class EditScaffold extends StatelessWidget {
|
|||
(entity?.isEditable ?? true);
|
||||
bool isCancelEnabled = false;
|
||||
String upgradeMessage = state.userCompany.isOwner
|
||||
? (state.account.trialStarted.isEmpty
|
||||
? (state.account.isEligibleForTrial && !supportsInAppPurchase()
|
||||
? localization.startFreeTrialMessage
|
||||
: localization.upgradeToPaidPlan)
|
||||
: localization.ownerUpgradeToPaidPlan;
|
||||
|
|
|
|||
|
|
@ -467,7 +467,7 @@ class _MenuDrawerState extends State<MenuDrawer> {
|
|||
if (state.userCompany.isOwner &&
|
||||
state.isHosted &&
|
||||
!isPaidAccount(context) &&
|
||||
!isApple() &&
|
||||
(!isApple() || supportsInAppPurchase()) &&
|
||||
kReleaseMode)
|
||||
Material(
|
||||
child: Tooltip(
|
||||
|
|
|
|||
|
|
@ -345,10 +345,11 @@ class _AccountOverview extends StatelessWidget {
|
|||
padding: const EdgeInsets.all(8.0),
|
||||
child: IconText(
|
||||
icon: MdiIcons.openInNew,
|
||||
text: (account.isEligibleForTrial
|
||||
? localization.startFreeTrial
|
||||
: localization.changePlan)
|
||||
.toUpperCase(),
|
||||
text:
|
||||
(account.isEligibleForTrial && !supportsInAppPurchase()
|
||||
? localization.startFreeTrial
|
||||
: localization.changePlan)
|
||||
.toUpperCase(),
|
||||
),
|
||||
),
|
||||
onPressed: () {
|
||||
|
|
|
|||
Loading…
Reference in New Issue