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,
clipBehavior: Clip.hardEdge,
context: context,
constraints: const BoxConstraints(
maxHeight: 600,
constraints: BoxConstraints(
maxHeight: PlatformInfos.isMobile ? 600 : 450,
),
builder: (_) {
return SubscriptionPaywall(

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

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

Loading…
Cancel
Save