add safearea when pull down is enabled
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user