|
|
@ -137,104 +137,106 @@ class _VipRechargeFlow extends State<VipRechargeFlow> { |
|
|
|
), |
|
|
|
), |
|
|
|
rechargeFlowSearch(), |
|
|
|
rechargeFlowSearch(), |
|
|
|
Expanded( |
|
|
|
Expanded( |
|
|
|
child: SmartRefresher( |
|
|
|
child:Container( |
|
|
|
controller: _refreshController, |
|
|
|
child:SmartRefresher( |
|
|
|
enablePullDown: true, |
|
|
|
controller: _refreshController, |
|
|
|
enablePullUp: records.length == 0 ? false : true, |
|
|
|
enablePullDown: true, |
|
|
|
header: MyHeader(color: Color(0xFF30415B)), |
|
|
|
enablePullUp: records.length == 0 ? false : true, |
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
header: MyHeader(color: Color(0xFF30415B)), |
|
|
|
footer: CustomFooter( |
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
builder: (context, mode) { |
|
|
|
footer: CustomFooter( |
|
|
|
return MyFooter(mode); |
|
|
|
builder: (context, mode) { |
|
|
|
|
|
|
|
return MyFooter(mode); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
onRefresh: () { |
|
|
|
|
|
|
|
_current = 1; |
|
|
|
|
|
|
|
records.clear(); |
|
|
|
|
|
|
|
_onRefresh(isShowLoad: false); |
|
|
|
}, |
|
|
|
}, |
|
|
|
), |
|
|
|
onLoading: () { |
|
|
|
onRefresh: () { |
|
|
|
_current++; |
|
|
|
_current = 1; |
|
|
|
_onRefresh(isShowLoad: false); |
|
|
|
records.clear(); |
|
|
|
}, |
|
|
|
_onRefresh(isShowLoad: false); |
|
|
|
child: SingleChildScrollView( |
|
|
|
}, |
|
|
|
physics: NeverScrollableScrollPhysics(), |
|
|
|
onLoading: () { |
|
|
|
child: Column( |
|
|
|
_current++; |
|
|
|
children: [ |
|
|
|
_onRefresh(isShowLoad: false); |
|
|
|
Padding( |
|
|
|
}, |
|
|
|
padding: EdgeInsets.only(left: 20.w, top: 16.h), |
|
|
|
child: SingleChildScrollView( |
|
|
|
child: Row( |
|
|
|
physics: NeverScrollableScrollPhysics(), |
|
|
|
children: [ |
|
|
|
child: Column( |
|
|
|
Container( |
|
|
|
children: [ |
|
|
|
width: 4.w, |
|
|
|
Padding( |
|
|
|
height: 16.h, |
|
|
|
padding: EdgeInsets.only(left: 20.w, top: 16.h), |
|
|
|
color: Color(0xFF30415B), |
|
|
|
child: Row( |
|
|
|
margin: EdgeInsets.only(right: 12.w), |
|
|
|
children: [ |
|
|
|
), |
|
|
|
Container( |
|
|
|
Expanded( |
|
|
|
width: 4.w, |
|
|
|
child: Text( |
|
|
|
height: 16.h, |
|
|
|
"充值流水", |
|
|
|
color: Color(0xFF30415B), |
|
|
|
style: TextStyle( |
|
|
|
margin: EdgeInsets.only(right: 12.w), |
|
|
|
fontSize: 15.sp, |
|
|
|
), |
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
Expanded( |
|
|
|
color: Color(0xFF0D0D0D), |
|
|
|
child: Text( |
|
|
|
), |
|
|
|
"充值流水", |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
fontSize: 15.sp, |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
|
|
|
color: Color(0xFF0D0D0D), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
networkStatus == -1 |
|
|
|
networkStatus == -1 |
|
|
|
? noNetwork() |
|
|
|
? noNetwork() |
|
|
|
: ((networkStatus == 0) |
|
|
|
: ((networkStatus == 0) |
|
|
|
? ListView.builder( |
|
|
|
? ListView.builder( |
|
|
|
padding: EdgeInsets.zero, |
|
|
|
padding: EdgeInsets.zero, |
|
|
|
itemCount: 10, |
|
|
|
itemCount: 10, |
|
|
|
scrollDirection: Axis.vertical, |
|
|
|
scrollDirection: Axis.vertical, |
|
|
|
shrinkWrap: true, |
|
|
|
shrinkWrap: true, |
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
itemBuilder: (context, position) { |
|
|
|
itemBuilder: (context, position) { |
|
|
|
return rechargeFlowItemSm(); |
|
|
|
return rechargeFlowItemSm(); |
|
|
|
}, |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
: ((records == null || records.length == 0) |
|
|
|
|
|
|
|
? NoDataView( |
|
|
|
|
|
|
|
src: |
|
|
|
|
|
|
|
"assets/image/bs_no data_logo.webp", |
|
|
|
|
|
|
|
isShowBtn: false, |
|
|
|
|
|
|
|
text: "暂无数据", |
|
|
|
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
|
|
|
iconHeight: 120.h, |
|
|
|
|
|
|
|
margin: EdgeInsets.all(50.h), |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
: Padding( |
|
|
|
|
|
|
|
padding: EdgeInsets.only(top: 16.h), |
|
|
|
|
|
|
|
child: Expanded( |
|
|
|
|
|
|
|
child: ListView.builder( |
|
|
|
|
|
|
|
itemCount: records?.length ?? 0, |
|
|
|
|
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
|
|
|
|
shrinkWrap: true, |
|
|
|
|
|
|
|
itemBuilder: (context, position) { |
|
|
|
|
|
|
|
return GestureDetector( |
|
|
|
|
|
|
|
behavior: |
|
|
|
|
|
|
|
HitTestBehavior.opaque, |
|
|
|
|
|
|
|
onTap: () { |
|
|
|
|
|
|
|
if (isKeyBoardShow) |
|
|
|
|
|
|
|
FocusScope.of(context) |
|
|
|
|
|
|
|
.requestFocus( |
|
|
|
|
|
|
|
FocusNode()); |
|
|
|
|
|
|
|
return; |
|
|
|
}, |
|
|
|
}, |
|
|
|
) |
|
|
|
child: rechargeFlowItem( |
|
|
|
: ((records == null || records.length == 0) |
|
|
|
records[position], |
|
|
|
? NoDataView( |
|
|
|
position), |
|
|
|
src: |
|
|
|
); |
|
|
|
"assets/image/bs_no data_logo.webp", |
|
|
|
}, |
|
|
|
isShowBtn: false, |
|
|
|
), |
|
|
|
text: "暂无数据", |
|
|
|
), |
|
|
|
fontSize: 16.sp, |
|
|
|
))), |
|
|
|
iconHeight: 120.h, |
|
|
|
], |
|
|
|
margin: EdgeInsets.all(50.h), |
|
|
|
))), |
|
|
|
) |
|
|
|
)), |
|
|
|
: Padding( |
|
|
|
|
|
|
|
padding: EdgeInsets.only(top: 16.h), |
|
|
|
|
|
|
|
child: Expanded( |
|
|
|
|
|
|
|
child: ListView.builder( |
|
|
|
|
|
|
|
itemCount: records?.length ?? 0, |
|
|
|
|
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
|
|
|
|
shrinkWrap: true, |
|
|
|
|
|
|
|
itemBuilder: (context, position) { |
|
|
|
|
|
|
|
return GestureDetector( |
|
|
|
|
|
|
|
behavior: |
|
|
|
|
|
|
|
HitTestBehavior.opaque, |
|
|
|
|
|
|
|
onTap: () { |
|
|
|
|
|
|
|
if (isKeyBoardShow) |
|
|
|
|
|
|
|
FocusScope.of(context) |
|
|
|
|
|
|
|
.requestFocus( |
|
|
|
|
|
|
|
FocusNode()); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
child: rechargeFlowItem( |
|
|
|
|
|
|
|
records[position], |
|
|
|
|
|
|
|
position), |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
))), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
)))), |
|
|
|
|
|
|
|
], |
|
|
|
], |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|