fix: Better padding

This commit is contained in:
Christian Pauly 2021-04-09 20:35:28 +02:00
parent dac26dd754
commit c79562f5da
1 changed files with 3 additions and 2 deletions

View File

@ -33,8 +33,9 @@ class OnePageCard extends StatelessWidget {
),
),
padding: EdgeInsets.symmetric(
horizontal: max((MediaQuery.of(context).size.width - 600) / 2, 0),
vertical: max((MediaQuery.of(context).size.height - 800) / 2, 0),
horizontal:
max((MediaQuery.of(context).size.width - 600) / 2, 12),
vertical: max((MediaQuery.of(context).size.height - 800) / 2, 12),
),
child: SafeArea(child: Card(child: child)),
);