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) {
|
Widget getBody(double width, double height) {
|
||||||
if (widget.pullDownToRefresh == true) {
|
if (widget.pullDownToRefresh == true) {
|
||||||
return LayoutBuilder(builder: (context, BoxConstraints constraints) {
|
return SafeArea(
|
||||||
|
child: LayoutBuilder(builder: (context, BoxConstraints constraints) {
|
||||||
double newheight = constraints.maxHeight;
|
double newheight = constraints.maxHeight;
|
||||||
//print(newheight);
|
//print(newheight);
|
||||||
return RefreshIndicator(
|
return RefreshIndicator(
|
||||||
@@ -106,7 +107,8 @@ class _MIHLayoutBuilderState extends State<MIHLayoutBuilder> {
|
|||||||
// ),
|
// ),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
});
|
}),
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
return SafeArea(
|
return SafeArea(
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
|
|||||||
Reference in New Issue
Block a user