mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 04:59:26 +01:00
fix: Low height layout
This commit is contained in:
parent
9588f76295
commit
0d6b43dea5
@ -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…
Reference in New Issue
Block a user