mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-17 14:30:40 +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);
|
const OnePageCard({Key key, this.child}) : super(key: key);
|
||||||
|
|
||||||
static const int alpha = 12;
|
static const int alpha = 12;
|
||||||
|
static const int breakpoint = 600;
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
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
|
? child
|
||||||
: Container(
|
: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user