Pārlūkot izejas kodu

更新下拉刷新偏移量

tags/0.0.1
Weller pirms 4 gadiem
vecāks
revīzija
63d2eefde2
1 mainītis faili ar 3 papildinājumiem un 6 dzēšanām
  1. +3
    -6
      lib/widgets/refresh/refresh_header/refresh_header.dart

+ 3
- 6
lib/widgets/refresh/refresh_header/refresh_header.dart Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt