Merge pull request #41 from pangeachat/freezing-fix

started adding bback subscription options to paywall
pull/1011/head
ggurdin 2 years ago committed by GitHub
commit d80dabf38b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -15,19 +15,20 @@ class SubscriptionOptions extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Expanded(
return const Expanded(
child: Wrap(
alignment: WrapAlignment.center,
direction: Axis.horizontal,
children: pangeaController
.subscriptionController.subscription!.availableSubscriptions
.map(
(subscription) => SubscriptionCard(
subscription: subscription,
pangeaController: pangeaController,
),
)
.toList(),
children: [],
// children: pangeaController
// .subscriptionController.subscription!.availableSubscriptions
// .map(
// (subscription) => SubscriptionCard(
// subscription: subscription,
// pangeaController: pangeaController,
// ),
// )
// .toList(),
),
);
}

@ -2,6 +2,7 @@
import 'package:fluffychat/config/app_config.dart';
import 'package:fluffychat/pangea/controllers/pangea_controller.dart';
import 'package:fluffychat/pangea/widgets/subscription/subscription_options.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
@ -48,10 +49,9 @@ class SubscriptionPaywall extends StatelessWidget {
? FreeTrialCard(
pangeaController: pangeaController,
)
: const SizedBox.shrink(),
// : SubscriptionOptions(
// pangeaController: pangeaController,
// ),
: SubscriptionOptions(
pangeaController: pangeaController,
),
],
),
),

Loading…
Cancel
Save