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 @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Expanded( return const Expanded(
child: Wrap( child: Wrap(
alignment: WrapAlignment.center, alignment: WrapAlignment.center,
direction: Axis.horizontal, direction: Axis.horizontal,
children: pangeaController children: [],
.subscriptionController.subscription!.availableSubscriptions // children: pangeaController
.map( // .subscriptionController.subscription!.availableSubscriptions
(subscription) => SubscriptionCard( // .map(
subscription: subscription, // (subscription) => SubscriptionCard(
pangeaController: pangeaController, // subscription: subscription,
), // pangeaController: pangeaController,
) // ),
.toList(), // )
// .toList(),
), ),
); );
} }

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

Loading…
Cancel
Save