Ignore products that are missing on the platform
This commit is contained in:
parent
7a149d08ac
commit
686f0f60c3
1 changed files with 3 additions and 0 deletions
|
@ -129,6 +129,9 @@ class _SubscriptionPageState extends State<SubscriptionPage> {
|
|||
final planWidgets = List<Widget>();
|
||||
for (final plan in plans) {
|
||||
final productID = Platform.isAndroid ? plan.androidID : plan.iosID;
|
||||
if (productID == null || productID.isEmpty) {
|
||||
continue;
|
||||
}
|
||||
final isActive =
|
||||
_hasActiveSubscription && _currentSubscription.productID == productID;
|
||||
planWidgets.add(
|
||||
|
|
Loading…
Add table
Reference in a new issue