|
@@ -12,12 +12,10 @@ class RefreshHeader extends StatelessWidget { |
|
|
Widget build(BuildContext context) { |
|
|
Widget build(BuildContext context) { |
|
|
// double top = MediaQueryData.fromWindow(window).padding.top; |
|
|
// double top = MediaQueryData.fromWindow(window).padding.top; |
|
|
return CustomHeader( |
|
|
return CustomHeader( |
|
|
height: _height + offsetY, |
|
|
|
|
|
|
|
|
height: _height, |
|
|
builder: (BuildContext context, RefreshStatus mode) { |
|
|
builder: (BuildContext context, RefreshStatus mode) { |
|
|
return Container( |
|
|
|
|
|
margin: EdgeInsets.only(top: offsetY), |
|
|
|
|
|
// color: Colors.blue, |
|
|
|
|
|
width: double.infinity, |
|
|
|
|
|
|
|
|
return Transform.translate( |
|
|
|
|
|
offset: Offset(0, offsetY), |
|
|
child: Center( |
|
|
child: Center( |
|
|
child: Container( |
|
|
child: Container( |
|
|
width: 36, |
|
|
width: 36, |
|
@@ -28,7 +26,6 @@ class RefreshHeader extends StatelessWidget { |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
// color: Colors.blue, |
|
|
|
|
|
); |
|
|
); |
|
|
}, |
|
|
}, |
|
|
); |
|
|
); |
|
|