Skip to content

Commit

Permalink
💄 Resize Box in Home if Tablet is hold longside side
Browse files Browse the repository at this point in the history
This was requested by Apple Review and is necessary for the app to be submitted to the App Store
  • Loading branch information
strifel committed Aug 9, 2020
1 parent cacc946 commit 9901b7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Views/Home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ class HomeState extends State<Home> {
],
);

var marginWidth = screenSizeWidth > 1200 ? screenSizeWidth / 3.5 : screenSizeWidth / 6;
if (isTablet) {
content = Container(
child: Container(
Expand All @@ -131,7 +132,7 @@ class HomeState extends State<Home> {
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(
Expand Down

0 comments on commit 9901b7b

Please sign in to comment.