Merge pull request #42 from pangeachat/freezing-fix

removed expanded widget
pull/1011/head
ggurdin 2 years ago committed by GitHub
commit f8e5be23dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -152,8 +152,8 @@ class SubscriptionController extends BaseController {
useRootNavigator: !PlatformInfos.isMobile, useRootNavigator: !PlatformInfos.isMobile,
clipBehavior: Clip.hardEdge, clipBehavior: Clip.hardEdge,
context: context, context: context,
constraints: const BoxConstraints( constraints: BoxConstraints(
maxHeight: 600, maxHeight: PlatformInfos.isMobile ? 600 : 450,
), ),
builder: (_) { builder: (_) {
return SubscriptionPaywall( return SubscriptionPaywall(

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

@ -31,14 +31,14 @@ class SubscriptionPaywall extends StatelessWidget {
padding: const EdgeInsets.all(20), padding: const EdgeInsets.all(20),
child: ListView( child: ListView(
children: [ children: [
// if (pangeaController.matrixState.client.rooms.length > 1) ...[ if (pangeaController.matrixState.client.rooms.length > 1) ...[
// Text( Text(
// L10n.of(context)!.welcomeBack, L10n.of(context)!.welcomeBack,
// textAlign: TextAlign.center, textAlign: TextAlign.center,
// style: const TextStyle(fontSize: 16), style: const TextStyle(fontSize: 16),
// ), ),
// const SizedBox(height: 20), const SizedBox(height: 20),
// ], ],
Text( Text(
L10n.of(context)!.subscriptionDesc, L10n.of(context)!.subscriptionDesc,
textAlign: TextAlign.center, textAlign: TextAlign.center,

Loading…
Cancel
Save