mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-24 14:32:37 +01:00
fix: Some controls in settings not accessible on iPhone 12
This commit is contained in:
parent
0231daefc4
commit
ad185f4a95
@ -15,24 +15,26 @@ class MaxWidthBody extends StatelessWidget {
|
|||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return LayoutBuilder(
|
return SafeArea(
|
||||||
builder: (context, constraints) {
|
child: LayoutBuilder(
|
||||||
final padding = EdgeInsets.symmetric(
|
builder: (context, constraints) {
|
||||||
horizontal: max(0, (constraints.maxWidth - maxWidth) / 2),
|
final padding = EdgeInsets.symmetric(
|
||||||
);
|
horizontal: max(0, (constraints.maxWidth - maxWidth) / 2),
|
||||||
return withScrolling
|
);
|
||||||
? SingleChildScrollView(
|
return withScrolling
|
||||||
physics: const ScrollPhysics(),
|
? SingleChildScrollView(
|
||||||
child: Padding(
|
physics: const ScrollPhysics(),
|
||||||
|
child: Padding(
|
||||||
|
padding: padding,
|
||||||
|
child: child,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
: Padding(
|
||||||
padding: padding,
|
padding: padding,
|
||||||
child: child,
|
child: child,
|
||||||
),
|
);
|
||||||
)
|
},
|
||||||
: Padding(
|
),
|
||||||
padding: padding,
|
|
||||||
child: child,
|
|
||||||
);
|
|
||||||
},
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user