From 0adeea2e3fdc9426c937d44db95cfa721738678e Mon Sep 17 00:00:00 2001 From: wurong <953969641@qq.com> Date: Wed, 13 Dec 2023 14:48:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E5=91=98=E5=88=97=E8=A1=A8=EF=BC=8C?= =?UTF-8?q?=E5=85=85=E5=80=BC=E6=B5=81=E6=B0=B4=EF=BC=8C=E4=BD=99=E9=A2=9D?= =?UTF-8?q?=E5=8F=98=E5=8A=A8=E5=88=97=E8=A1=A8=E6=9B=B4=E6=94=B9=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home/vip/balance_change_record.dart | 130 ++++++------ .../home/vip/bus_vip_list.dart | 192 +++++++++--------- .../home/vip/vip_recharge_flow.dart | 188 ++++++++--------- 3 files changed, 258 insertions(+), 252 deletions(-) diff --git a/lib/business_system/home/vip/balance_change_record.dart b/lib/business_system/home/vip/balance_change_record.dart index aa6e71ca..49d04a29 100644 --- a/lib/business_system/home/vip/balance_change_record.dart +++ b/lib/business_system/home/vip/balance_change_record.dart @@ -198,73 +198,75 @@ class _BalanceChangeRecord extends State { ], )), Expanded( - 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: () { - _isShow = false; - _current = 1; - records.clear(); - _onRefresh(isShowLoad: false); - }, - onLoading: () { - _isShow = false; - _current++; - _onRefresh(isShowLoad: false); - }, - child: networkStatus == -1 - ? noNetwork() - : ((networkStatus == 0) - ? ListView.builder( - padding: EdgeInsets.zero, - itemCount: 10, - scrollDirection: Axis.vertical, - shrinkWrap: true, + child:Container( + child: SmartRefresher( + controller: _refreshController, + enablePullDown: true, + enablePullUp: records.length == 0 ? false : true, + header: MyHeader(color: Color(0xFF30415B)), physics: BouncingScrollPhysics(), - itemBuilder: (context, position) { - return balanceChangeItemSm(); + footer: CustomFooter( + builder: (context, mode) { + return MyFooter(mode); + }, + ), + onRefresh: () { + _isShow = false; + _current = 1; + records.clear(); + _onRefresh(isShowLoad: false); + }, + onLoading: () { + _isShow = false; + _current++; + _onRefresh(isShowLoad: false); }, - ) - : ((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: balanceChangeItem( - records[position], position), - ); - }, + child: networkStatus == -1 + ? noNetwork() + : ((networkStatus == 0) + ? ListView.builder( + padding: EdgeInsets.zero, + itemCount: 10, + scrollDirection: Axis.vertical, + shrinkWrap: true, + physics: BouncingScrollPhysics(), + itemBuilder: (context, position) { + return balanceChangeItemSm(); + }, + ) + : ((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: balanceChangeItem( + records[position], position), + ); + }, + ), ), - ), - ))), + ))), + ), )), ], ), diff --git a/lib/business_system/home/vip/bus_vip_list.dart b/lib/business_system/home/vip/bus_vip_list.dart index a5cdc65f..2d96b992 100644 --- a/lib/business_system/home/vip/bus_vip_list.dart +++ b/lib/business_system/home/vip/bus_vip_list.dart @@ -135,106 +135,108 @@ class _BusVipList extends State { ), vipSearch(), Expanded( - 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); + 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); }, - ), - 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), + 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(); + 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; }, - ) - : ((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), - ); - }, - ), - ), - ))), - ], - )))), + child: vipListItem( + records[position], + position), + ); + }, + ), + ), + ))), + ], + ))), + )), ], ); } diff --git a/lib/business_system/home/vip/vip_recharge_flow.dart b/lib/business_system/home/vip/vip_recharge_flow.dart index b4d0c28b..0d8539ac 100644 --- a/lib/business_system/home/vip/vip_recharge_flow.dart +++ b/lib/business_system/home/vip/vip_recharge_flow.dart @@ -137,104 +137,106 @@ class _VipRechargeFlow extends State { ), rechargeFlowSearch(), Expanded( - 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); + 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); }, - ), - 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), + 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 rechargeFlowItemSm(); + networkStatus == -1 + ? noNetwork() + : ((networkStatus == 0) + ? ListView.builder( + padding: EdgeInsets.zero, + itemCount: 10, + scrollDirection: Axis.vertical, + shrinkWrap: true, + physics: BouncingScrollPhysics(), + itemBuilder: (context, position) { + 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; }, - ) - : ((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[position], - position), - ); - }, - ), - ), - ))), - ], - )))), + child: rechargeFlowItem( + records[position], + position), + ); + }, + ), + ), + ))), + ], + ))), + )), ], ); }