Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed expanded widget #42

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/pangea/controllers/subscription_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
27 changes: 12 additions & 15 deletions lib/pangea/widgets/subscription/subscription_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
);
}
}
Expand Down
16 changes: 8 additions & 8 deletions lib/pangea/widgets/subscription/subscription_paywall.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading