Merge pull request #41 from pangeachat/freezing-fix
started adding bback subscription options to paywall
This commit is contained in:
commit
d80dabf38b
2 changed files with 15 additions and 14 deletions
|
|
@ -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…
Add table
Reference in a new issue