From 63d2eefde2546e656944081d028d36bafdd1a81e Mon Sep 17 00:00:00 2001 From: Weller <1812208341@qq.com> Date: Wed, 14 Oct 2020 19:38:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=8B=E6=8B=89=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E5=81=8F=E7=A7=BB=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/widgets/refresh/refresh_header/refresh_header.dart | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/widgets/refresh/refresh_header/refresh_header.dart b/lib/widgets/refresh/refresh_header/refresh_header.dart index eb81664..32ce05f 100644 --- a/lib/widgets/refresh/refresh_header/refresh_header.dart +++ b/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, ); }, );