mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 06:52:35 +01:00
fix: Some controls in settings not accessible on iPhone 12
This commit is contained in:
parent
0231daefc4
commit
ad185f4a95
@ -15,7 +15,8 @@ class MaxWidthBody extends StatelessWidget {
|
|||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return LayoutBuilder(
|
return SafeArea(
|
||||||
|
child: LayoutBuilder(
|
||||||
builder: (context, constraints) {
|
builder: (context, constraints) {
|
||||||
final padding = EdgeInsets.symmetric(
|
final padding = EdgeInsets.symmetric(
|
||||||
horizontal: max(0, (constraints.maxWidth - maxWidth) / 2),
|
horizontal: max(0, (constraints.maxWidth - maxWidth) / 2),
|
||||||
@ -33,6 +34,7 @@ class MaxWidthBody extends StatelessWidget {
|
|||||||
child: child,
|
child: child,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user