|
|
@ -126,9 +126,7 @@ class _BusVipList extends State<BusVipList> { |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
Widget build(BuildContext context) { |
|
|
|
Widget build(BuildContext context) { |
|
|
|
return Scaffold( |
|
|
|
return Column( |
|
|
|
backgroundColor: Colors.white, |
|
|
|
|
|
|
|
body: Column( |
|
|
|
|
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Container( |
|
|
|
Container( |
|
|
|
width: double.infinity, |
|
|
|
width: double.infinity, |
|
|
@ -163,7 +161,7 @@ class _BusVipList extends State<BusVipList> { |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Padding( |
|
|
|
Padding( |
|
|
|
padding: EdgeInsets.only( |
|
|
|
padding: EdgeInsets.only( |
|
|
|
left: 20.w,top: 16.h |
|
|
|
left: 20.w,top: 16.h,bottom: 16.h |
|
|
|
), |
|
|
|
), |
|
|
|
child: Row( |
|
|
|
child: Row( |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
@ -189,56 +187,51 @@ class _BusVipList extends State<BusVipList> { |
|
|
|
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 vipListItemSm(); |
|
|
|
return vipListItemSm(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
) |
|
|
|
) |
|
|
|
: ((records == null || records.length == 0) |
|
|
|
: ((records == null || records.length == 0) |
|
|
|
? NoDataView( |
|
|
|
? NoDataView( |
|
|
|
src: |
|
|
|
src: |
|
|
|
"assets/image/bs_no data_logo.webp", |
|
|
|
"assets/image/bs_no data_logo.webp", |
|
|
|
isShowBtn: false, |
|
|
|
isShowBtn: false, |
|
|
|
text: "暂无数据", |
|
|
|
text: "暂无数据", |
|
|
|
fontSize: 16.sp, |
|
|
|
fontSize: 16.sp, |
|
|
|
iconHeight: 120.h, |
|
|
|
iconHeight: 120.h, |
|
|
|
margin: EdgeInsets.all(50.h), |
|
|
|
margin: EdgeInsets.all(50.h), |
|
|
|
) |
|
|
|
) |
|
|
|
: Padding( |
|
|
|
: ListView.builder( |
|
|
|
padding: EdgeInsets.only(top: 16.h), |
|
|
|
itemCount: records?.length ?? 0, |
|
|
|
child: Expanded( |
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
child: ListView.builder( |
|
|
|
shrinkWrap: true, |
|
|
|
itemCount: records?.length ?? 0, |
|
|
|
itemBuilder: (context, position) { |
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
return GestureDetector( |
|
|
|
shrinkWrap: true, |
|
|
|
behavior: |
|
|
|
itemBuilder: (context, position) { |
|
|
|
HitTestBehavior.opaque, |
|
|
|
return GestureDetector( |
|
|
|
onTap: () { |
|
|
|
behavior: |
|
|
|
if (isKeyBoardShow) |
|
|
|
HitTestBehavior.opaque, |
|
|
|
FocusScope.of(context) |
|
|
|
onTap: () { |
|
|
|
.requestFocus( |
|
|
|
if (isKeyBoardShow) |
|
|
|
FocusNode()); |
|
|
|
FocusScope.of(context) |
|
|
|
return; |
|
|
|
.requestFocus( |
|
|
|
}, |
|
|
|
FocusNode()); |
|
|
|
child: vipListItem( |
|
|
|
return; |
|
|
|
records[position], |
|
|
|
}, |
|
|
|
position), |
|
|
|
child: vipListItem( |
|
|
|
); |
|
|
|
records[position], |
|
|
|
}, |
|
|
|
position), |
|
|
|
))), |
|
|
|
); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
))), |
|
|
|
|
|
|
|
], |
|
|
|
], |
|
|
|
)))), |
|
|
|
)))), |
|
|
|
], |
|
|
|
], |
|
|
|
)); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// 搜索框 |
|
|
|
/// 搜索框 |
|
|
|