Browse Source

更新下拉刷新偏移量

tags/0.0.1
Weller 4 years ago
parent
commit
63d2eefde2
1 changed files with 3 additions and 6 deletions
  1. +3
    -6
      lib/widgets/refresh/refresh_header/refresh_header.dart

+ 3
- 6
lib/widgets/refresh/refresh_header/refresh_header.dart View File

@@ -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,
); );
}, },
); );


Loading…
Cancel
Save