update subcription portal

This commit is contained in:
2026-02-08 10:31:54 +07:00
parent 28a376fc4d
commit dc1147fd9e
4 changed files with 125 additions and 8 deletions

View File

@@ -481,11 +481,13 @@ class PurchasePremiumPlanScreen extends ConsumerStatefulWidget {
this.isExpired,
this.enrolledPlan,
this.willExpire,
this.initiallyShowDialog = true,
});
final bool isCameBack;
final bool? isExpired;
final bInfo.EnrolledPlan? enrolledPlan;
final String? willExpire;
final bool initiallyShowDialog;
@override
ConsumerState<PurchasePremiumPlanScreen> createState() => _SubscriptionPlanScreenState();
@@ -576,7 +578,7 @@ class _SubscriptionPlanScreenState extends ConsumerState<PurchasePremiumPlanScre
void didChangeDependencies() {
super.didChangeDependencies();
WidgetsBinding.instance.addPostFrameCallback((_) {
if (widget.isExpired == true) {
if (widget.isExpired == true && widget.initiallyShowDialog) {
getUpgradeDialog();
}
});