fix: Low height layout
This commit is contained in:
parent
a9da8f4288
commit
750c03d7d9
1 changed files with 3 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue