|
|
|
@ -126,7 +126,9 @@ class _BusVipList extends State<BusVipList> {
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
Widget build(BuildContext context) { |
|
|
|
|
return Column( |
|
|
|
|
return Scaffold( |
|
|
|
|
backgroundColor: Colors.white, |
|
|
|
|
body: Column( |
|
|
|
|
children: [ |
|
|
|
|
Container( |
|
|
|
|
width: double.infinity, |
|
|
|
@ -135,110 +137,108 @@ class _BusVipList extends State<BusVipList> {
|
|
|
|
|
), |
|
|
|
|
vipSearch(), |
|
|
|
|
Expanded( |
|
|
|
|
child: Container( |
|
|
|
|
child: SmartRefresher( |
|
|
|
|
controller: _refreshController, |
|
|
|
|
enablePullDown: true, |
|
|
|
|
enablePullUp: records.length == 0 ? false : true, |
|
|
|
|
header: MyHeader(color: Color(0xFF30415B)), |
|
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
|
footer: CustomFooter( |
|
|
|
|
builder: (context, mode) { |
|
|
|
|
return MyFooter(mode); |
|
|
|
|
}, |
|
|
|
|
), |
|
|
|
|
onRefresh: () { |
|
|
|
|
_current = 1; |
|
|
|
|
records.clear(); |
|
|
|
|
_onRefresh(isShowLoad: false); |
|
|
|
|
child: SmartRefresher( |
|
|
|
|
controller: _refreshController, |
|
|
|
|
enablePullDown: true, |
|
|
|
|
enablePullUp: records.length == 0 ? false : true, |
|
|
|
|
header: MyHeader(color: Color(0xFF30415B)), |
|
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
|
footer: CustomFooter( |
|
|
|
|
builder: (context, mode) { |
|
|
|
|
return MyFooter(mode); |
|
|
|
|
}, |
|
|
|
|
onLoading: () { |
|
|
|
|
_current++; |
|
|
|
|
_onRefresh(isShowLoad: false); |
|
|
|
|
}, |
|
|
|
|
child: SingleChildScrollView( |
|
|
|
|
physics: NeverScrollableScrollPhysics(), |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
Padding( |
|
|
|
|
padding: EdgeInsets.only( |
|
|
|
|
left: 20.w,top: 16.h |
|
|
|
|
), |
|
|
|
|
child: Row( |
|
|
|
|
children: [ |
|
|
|
|
Container( |
|
|
|
|
width: 4.w, |
|
|
|
|
height: 16.h, |
|
|
|
|
color: Color(0xFF30415B), |
|
|
|
|
margin: EdgeInsets.only(right: 12.w), |
|
|
|
|
), |
|
|
|
|
Expanded( |
|
|
|
|
child: Text( |
|
|
|
|
"会员管理", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 15.sp, |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
color: Color(0xFF0D0D0D), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
onRefresh: () { |
|
|
|
|
_current = 1; |
|
|
|
|
records.clear(); |
|
|
|
|
_onRefresh(isShowLoad: false); |
|
|
|
|
}, |
|
|
|
|
onLoading: () { |
|
|
|
|
_current++; |
|
|
|
|
_onRefresh(isShowLoad: false); |
|
|
|
|
}, |
|
|
|
|
child: SingleChildScrollView( |
|
|
|
|
physics: NeverScrollableScrollPhysics(), |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
Padding( |
|
|
|
|
padding: EdgeInsets.only( |
|
|
|
|
left: 20.w,top: 16.h |
|
|
|
|
), |
|
|
|
|
child: Row( |
|
|
|
|
children: [ |
|
|
|
|
Container( |
|
|
|
|
width: 4.w, |
|
|
|
|
height: 16.h, |
|
|
|
|
color: Color(0xFF30415B), |
|
|
|
|
margin: EdgeInsets.only(right: 12.w), |
|
|
|
|
), |
|
|
|
|
Expanded( |
|
|
|
|
child: Text( |
|
|
|
|
"会员管理", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 15.sp, |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
color: Color(0xFF0D0D0D), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
networkStatus == -1 |
|
|
|
|
? noNetwork() |
|
|
|
|
: ((networkStatus == 0) |
|
|
|
|
? ListView.builder( |
|
|
|
|
padding: EdgeInsets.zero, |
|
|
|
|
itemCount: 10, |
|
|
|
|
scrollDirection: Axis.vertical, |
|
|
|
|
shrinkWrap: true, |
|
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
|
itemBuilder: (context, position) { |
|
|
|
|
return vipListItemSm(); |
|
|
|
|
}, |
|
|
|
|
) |
|
|
|
|
: ((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; |
|
|
|
|
), |
|
|
|
|
networkStatus == -1 |
|
|
|
|
? noNetwork() |
|
|
|
|
: ((networkStatus == 0) |
|
|
|
|
? ListView.builder( |
|
|
|
|
padding: EdgeInsets.zero, |
|
|
|
|
itemCount: 10, |
|
|
|
|
scrollDirection: Axis.vertical, |
|
|
|
|
shrinkWrap: true, |
|
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
|
itemBuilder: (context, position) { |
|
|
|
|
return vipListItemSm(); |
|
|
|
|
}, |
|
|
|
|
child: vipListItem( |
|
|
|
|
records[position], |
|
|
|
|
position), |
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
))), |
|
|
|
|
], |
|
|
|
|
))), |
|
|
|
|
)), |
|
|
|
|
) |
|
|
|
|
: ((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: vipListItem( |
|
|
|
|
records[position], |
|
|
|
|
position), |
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
))), |
|
|
|
|
], |
|
|
|
|
)))), |
|
|
|
|
], |
|
|
|
|
); |
|
|
|
|
)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// 搜索框 |
|
|
|
|