fix: Some controls in settings not accessible on iPhone 12

This commit is contained in:
Christian Pauly 2022-11-20 19:19:39 +01:00
parent 0231daefc4
commit ad185f4a95

View File

@ -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,
); );
}, },
),
); );
} }
} }