update subcription portal
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user