瀏覽代碼

更新下拉刷新偏移量

tags/0.0.1
Weller 4 年之前
父節點
當前提交
63d2eefde2
共有 1 個檔案被更改,包括 3 行新增6 行删除
  1. +3
    -6
      lib/widgets/refresh/refresh_header/refresh_header.dart

+ 3
- 6
lib/widgets/refresh/refresh_header/refresh_header.dart 查看文件

@@ -12,12 +12,10 @@ class RefreshHeader extends StatelessWidget {
Widget build(BuildContext context) {
// double top = MediaQueryData.fromWindow(window).padding.top;
return CustomHeader(
height: _height + offsetY,
height: _height,
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: Container(
width: 36,
@@ -28,7 +26,6 @@ class RefreshHeader extends StatelessWidget {
),
),
),
// color: Colors.blue,
);
},
);


Loading…
取消
儲存