fix: Low height layout

This commit is contained in:
Christian Pauly 2021-05-01 07:46:33 +02:00
parent 9588f76295
commit 0d6b43dea5
1 changed files with 3 additions and 1 deletions

View File

@ -8,9 +8,11 @@ class OnePageCard extends StatelessWidget {
const OnePageCard({Key key, this.child}) : super(key: key);
static const int alpha = 12;
static const int breakpoint = 600;
@override
Widget build(BuildContext context) {
return MediaQuery.of(context).size.width <= 600
return MediaQuery.of(context).size.width <= breakpoint ||
MediaQuery.of(context).size.height <= breakpoint
? child
: Container(
decoration: BoxDecoration(