From 9901b7bc8e1fa747bccc8749de30493cd514fb7b Mon Sep 17 00:00:00 2001 From: Felix Date: Sun, 9 Aug 2020 06:55:41 +0200 Subject: [PATCH] :lipstick: Resize Box in Home if Tablet is hold longside side This was requested by Apple Review and is necessary for the app to be submitted to the App Store --- lib/Views/Home.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Views/Home.dart b/lib/Views/Home.dart index f8bf751..cc57bf3 100644 --- a/lib/Views/Home.dart +++ b/lib/Views/Home.dart @@ -123,6 +123,7 @@ class HomeState extends State { ], ); + var marginWidth = screenSizeWidth > 1200 ? screenSizeWidth / 3.5 : screenSizeWidth / 6; if (isTablet) { content = Container( child: Container( @@ -131,7 +132,7 @@ class HomeState extends State { margin: EdgeInsets.fromLTRB(10, 10, 10, 10), ), color: Colors.white, - margin: EdgeInsets.fromLTRB(screenSizeWidth / 3, screenSizeHeight / 10, screenSizeWidth / 3, screenSizeHeight / 6), + margin: EdgeInsets.fromLTRB(marginWidth, screenSizeHeight / 10, marginWidth, screenSizeHeight / 6), ), decoration: BoxDecoration( image: DecorationImage(