From c5fbf61db5ba307b2545462fabb840224c542fab Mon Sep 17 00:00:00 2001 From: Oscar Date: Fri, 20 Jan 2023 19:41:46 +0100 Subject: [PATCH] chore: max size for mobile (#394) --- lib/landing/widgets/landing_body.dart | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/lib/landing/widgets/landing_body.dart b/lib/landing/widgets/landing_body.dart index c7a265cf..897b1f43 100644 --- a/lib/landing/widgets/landing_body.dart +++ b/lib/landing/widgets/landing_body.dart @@ -33,8 +33,11 @@ class _SmallLandingBody extends StatelessWidget { const SizedBox(height: 34), Padding( padding: const EdgeInsets.symmetric(horizontal: 16), - child: Assets.backgrounds.holobooth.image( - key: LandingBody.landingPageImageKey, + child: ConstrainedBox( + constraints: const BoxConstraints(maxHeight: 500), + child: Assets.backgrounds.holobooth.image( + key: LandingBody.landingPageImageKey, + ), ), ), ], @@ -56,8 +59,14 @@ class _LargeLandingBody extends StatelessWidget { Row( children: [ Expanded( - child: Assets.backgrounds.holobooth.image( - key: LandingBody.landingPageImageKey, + child: Container( + alignment: Alignment.center, + child: ConstrainedBox( + constraints: const BoxConstraints(maxHeight: 850), + child: Assets.backgrounds.holobooth.image( + key: LandingBody.landingPageImageKey, + ), + ), ), ), const SizedBox(width: 32),