Skip to content

Commit

Permalink
started adding bback subscription options to paywall
Browse files Browse the repository at this point in the history
  • Loading branch information
ggurdin committed Jan 16, 2024
1 parent 067b1ea commit 6e27d70
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
21 changes: 11 additions & 10 deletions lib/pangea/widgets/subscription/subscription_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
),
);
}
Expand Down
8 changes: 4 additions & 4 deletions lib/pangea/widgets/subscription/subscription_paywall.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -48,10 +49,9 @@ class SubscriptionPaywall extends StatelessWidget {
? FreeTrialCard(
pangeaController: pangeaController,
)
: const SizedBox.shrink(),
// : SubscriptionOptions(
// pangeaController: pangeaController,
// ),
: SubscriptionOptions(
pangeaController: pangeaController,
),
],
),
),
Expand Down

0 comments on commit 6e27d70

Please sign in to comment.