diff --git a/Frontend/lib/mih_components/mih_layout/mih_layout_builder.dart b/Frontend/lib/mih_components/mih_layout/mih_layout_builder.dart index 9030a7c6..8be3adbd 100644 --- a/Frontend/lib/mih_components/mih_layout/mih_layout_builder.dart +++ b/Frontend/lib/mih_components/mih_layout/mih_layout_builder.dart @@ -67,46 +67,48 @@ class _MIHLayoutBuilderState extends State { Widget getBody(double width, double height) { if (widget.pullDownToRefresh == true) { - return LayoutBuilder(builder: (context, BoxConstraints constraints) { - double newheight = constraints.maxHeight; - //print(newheight); - return RefreshIndicator( - onRefresh: widget.onPullDown, - child: ListView.builder( - itemCount: 1, - itemBuilder: (BuildContext context, int index) { - return SafeArea( - child: SizedBox( - width: width, - height: newheight, - child: Column( - mainAxisAlignment: MainAxisAlignment.start, - children: [ - const SizedBox(height: 5), - getLayoutHeader(), - const SizedBox(height: 5), - Expanded(child: widget.body), - ], + return SafeArea( + child: LayoutBuilder(builder: (context, BoxConstraints constraints) { + double newheight = constraints.maxHeight; + //print(newheight); + return RefreshIndicator( + onRefresh: widget.onPullDown, + child: ListView.builder( + itemCount: 1, + itemBuilder: (BuildContext context, int index) { + return SafeArea( + child: SizedBox( + width: width, + height: newheight, + child: Column( + mainAxisAlignment: MainAxisAlignment.start, + children: [ + const SizedBox(height: 5), + getLayoutHeader(), + const SizedBox(height: 5), + Expanded(child: widget.body), + ], + ), ), - ), - ); - }, - // child: SafeArea( - // child: SizedBox( - // width: width, - // height: height, - // child: Column( - // mainAxisAlignment: MainAxisAlignment.start, - // children: [ - // getLayoutHeader(), - // Expanded(child: widget.body), - // ], - // ), - // ), - // ), - ), - ); - }); + ); + }, + // child: SafeArea( + // child: SizedBox( + // width: width, + // height: height, + // child: Column( + // mainAxisAlignment: MainAxisAlignment.start, + // children: [ + // getLayoutHeader(), + // Expanded(child: widget.body), + // ], + // ), + // ), + // ), + ), + ); + }), + ); } else { return SafeArea( child: SizedBox(