removed expanded widget
This commit is contained in:
parent
6e27d70516
commit
d488ec13b8
3 changed files with 22 additions and 25 deletions
|
|
@ -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…
Add table
Reference in a new issue