add safearea when pull down is enabled

This commit is contained in:
2025-01-14 12:56:08 +02:00
parent 7a8f18f219
commit 0b663ef4cc

View File

@@ -67,7 +67,8 @@ class _MIHLayoutBuilderState extends State<MIHLayoutBuilder> {
Widget getBody(double width, double height) {
if (widget.pullDownToRefresh == true) {
return LayoutBuilder(builder: (context, BoxConstraints constraints) {
return SafeArea(
child: LayoutBuilder(builder: (context, BoxConstraints constraints) {
double newheight = constraints.maxHeight;
//print(newheight);
return RefreshIndicator(
@@ -106,7 +107,8 @@ class _MIHLayoutBuilderState extends State<MIHLayoutBuilder> {
// ),
),
);
});
}),
);
} else {
return SafeArea(
child: SizedBox(