From 6828a3bb67bbea3890581aeab134d33410e6a86c Mon Sep 17 00:00:00 2001 From: wurong <953969641@qq.com> Date: Wed, 13 Dec 2023 15:29:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E5=91=98=E5=88=97=E8=A1=A8=E6=9B=B4?= =?UTF-8?q?=E6=94=B9=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home/vip/bus_vip_list.dart | 198 +++++++++--------- 1 file changed, 99 insertions(+), 99 deletions(-) diff --git a/lib/business_system/home/vip/bus_vip_list.dart b/lib/business_system/home/vip/bus_vip_list.dart index 2d96b992..e244382e 100644 --- a/lib/business_system/home/vip/bus_vip_list.dart +++ b/lib/business_system/home/vip/bus_vip_list.dart @@ -126,7 +126,9 @@ class _BusVipList extends State { @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 { ), 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), + ); + }, + ), + ), + ))), + ], + )))), ], - ); + )); } /// 搜索框