Ver a proveniência

更新下拉刷新偏移量

tags/0.0.1
Weller há 4 anos
ascendente
cometimento
63d2eefde2
1 ficheiros alterados com 3 adições e 6 eliminações
  1. +3
    -6
      lib/widgets/refresh/refresh_header/refresh_header.dart

+ 3
- 6
lib/widgets/refresh/refresh_header/refresh_header.dart Ver ficheiro

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


Carregando…
Cancelar
Guardar