diff --git a/lib/community/new_community_details.dart b/lib/community/new_community_details.dart index 6a07e675..45f58177 100644 --- a/lib/community/new_community_details.dart +++ b/lib/community/new_community_details.dart @@ -357,8 +357,8 @@ class _NewCommunityDetails extends State with WidgetsBindin fit: BoxFit.contain, width: MediaQuery.of(context).size.width / 1.5, height: MediaQuery.of(context).size.width, - errorSrc: "assets/image/default_2_1.png", - fadeSrc: "assets/image/default_2_1.png", + errorSrc: "assets/image/default_2_1.webp", + fadeSrc: "assets/image/default_2_1.webp", )), ); } else { @@ -395,8 +395,8 @@ class _NewCommunityDetails extends State with WidgetsBindin fit: BoxFit.cover, aspectRatio: 1, radius: BorderRadius.circular(1), - errorSrc: "assets/image/default_2_1.png", - fadeSrc: "assets/image/default_2_1.png", + errorSrc: "assets/image/default_2_1.webp", + fadeSrc: "assets/image/default_2_1.webp", ), ), ); diff --git a/lib/home/home_view/shortcut_operation.dart b/lib/home/home_view/shortcut_operation.dart index 8d7fb5f7..b168901e 100644 --- a/lib/home/home_view/shortcut_operation.dart +++ b/lib/home/home_view/shortcut_operation.dart @@ -1,15 +1,9 @@ import 'package:dio/dio.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; -import 'package:huixiang/generated/l10n.dart'; -import 'package:huixiang/retrofit/data/activity.dart'; -import 'package:huixiang/retrofit/data/base_data.dart'; -import 'package:huixiang/retrofit/data/page.dart'; import 'package:huixiang/retrofit/retrofit_api.dart'; import 'package:huixiang/utils/font_weight.dart'; -import 'package:huixiang/view_widget/item_title.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; -import 'package:shared_preferences/shared_preferences.dart'; class ShortcutOperation extends StatefulWidget { final Function goToOrder; diff --git a/lib/message/system_details.dart b/lib/message/system_details.dart index 8ff701a2..15f78689 100644 --- a/lib/message/system_details.dart +++ b/lib/message/system_details.dart @@ -502,8 +502,8 @@ class _SystemDetails extends State { height: 44, isCircle: true, fit: BoxFit.cover, - errorSrc: "assets/image/default_1.png", - fadeSrc: "assets/image/default_1.png", + errorSrc: "assets/image/default_1.webp", + fadeSrc: "assets/image/default_1.webp", ), SizedBox(width: 8,), Expanded(child:Column( @@ -563,8 +563,8 @@ class _SystemDetails extends State { isCircle: true, fit: BoxFit.cover, radius: BorderRadius.circular(2), - errorSrc: "assets/image/default_1.png", - fadeSrc: "assets/image/default_1.png", + errorSrc: "assets/image/default_1.webp", + fadeSrc: "assets/image/default_1.webp", ), SizedBox(width:2.w), Expanded(child:Text( @@ -649,8 +649,8 @@ class _SystemDetails extends State { height: 44, isCircle: true, fit: BoxFit.cover, - errorSrc: "assets/image/default_1.png", - fadeSrc: "assets/image/default_1.png", + errorSrc: "assets/image/default_1.webp", + fadeSrc: "assets/image/default_1.webp", ), SizedBox(width: 8,), Expanded(child:Column( @@ -807,8 +807,8 @@ class _SystemDetails extends State { isCircle: true, fit: BoxFit.cover, radius: BorderRadius.circular(2), - errorSrc: "assets/image/default_1.png", - fadeSrc: "assets/image/default_1.png", + errorSrc: "assets/image/default_1.webp", + fadeSrc: "assets/image/default_1.webp", ), SizedBox(width:2.w), Expanded(child:Text( @@ -892,8 +892,8 @@ class _SystemDetails extends State { height: 44, isCircle: true, fit: BoxFit.cover, - errorSrc: "assets/image/default_1.png", - fadeSrc: "assets/image/default_1.png", + errorSrc: "assets/image/default_1.webp", + fadeSrc: "assets/image/default_1.webp", ), SizedBox(width: 8,), Expanded(child:Column( diff --git a/lib/order/bargain_group_order.dart b/lib/order/bargain_group_order.dart index 99dd0112..ab2e92ea 100644 --- a/lib/order/bargain_group_order.dart +++ b/lib/order/bargain_group_order.dart @@ -344,8 +344,8 @@ class _ExchangeHistoryList extends State { width: 81.w, height: 81.h, fit: BoxFit.cover, - errorSrc: "assets/image/default_1.png", - fadeSrc: "assets/image/default_1.png", + errorSrc: "assets/image/default_1.webp", + fadeSrc: "assets/image/default_1.webp", ), SizedBox( width: 10, diff --git a/lib/settlement/settlement_view/distribution.dart b/lib/settlement/settlement_view/distribution.dart index 9d959ce0..ec1a4298 100644 --- a/lib/settlement/settlement_view/distribution.dart +++ b/lib/settlement/settlement_view/distribution.dart @@ -258,7 +258,7 @@ class _DistributionMode extends State { Column( children: [ Image.asset( - "assets/image/map.png", + "assets/image/map.webp", height: 61.h, width: 61.w, ), @@ -279,7 +279,7 @@ class _DistributionMode extends State { fontSize: 7.sp, ), Image.asset( - "assets/image/landmark.png", + "assets/image/landmark.webp", height: 24.h, width: 24.w, ), @@ -322,7 +322,7 @@ class _DistributionMode extends State { color: Color(0xFF727272), size: 24, ):Image.asset( - "assets/image/icon_permission_location.png", + "assets/image/icon_permission_location.webp", height: 24.h, width: 24.w, ), diff --git a/lib/store/shopping/shopping_goods_details.dart b/lib/store/shopping/shopping_goods_details.dart index 898fda0c..5c4d4b88 100644 --- a/lib/store/shopping/shopping_goods_details.dart +++ b/lib/store/shopping/shopping_goods_details.dart @@ -622,7 +622,7 @@ class _ShoppingGoodsDetails extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ Image.asset( - "assets/image/goods_cart.png", + "assets/image/goods_cart.webp", width: 24, height: 24, ), @@ -648,7 +648,7 @@ class _ShoppingGoodsDetails extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ Image.asset( - "assets/image/goods_phone.png", + "assets/image/goods_phone.webp", width: 24, height: 24, ), @@ -1317,8 +1317,8 @@ class _ShoppingGoodsDetails extends State { width: 72, height: 30.h, fit: BoxFit.cover, - errorSrc: "assets/image/default_1.png", - fadeSrc: "assets/image/default_1.png", + errorSrc: "assets/image/default_1.webp", + fadeSrc: "assets/image/default_1.webp", ), Container( width: 91, @@ -1482,8 +1482,8 @@ class _ShoppingGoodsDetails extends State { width: 72, height: 30.h, fit: BoxFit.cover, - errorSrc: "assets/image/default_1.png", - fadeSrc: "assets/image/default_1.png", + errorSrc: "assets/image/default_1.webp", + fadeSrc: "assets/image/default_1.webp", ), )) : Container(), @@ -1592,8 +1592,8 @@ class _ShoppingGoodsDetails extends State { width: double.infinity, height: double.infinity, fit: BoxFit.cover, - errorSrc: "assets/image/default_1.png", - fadeSrc: "assets/image/default_1.png", + errorSrc: "assets/image/default_1.webp", + fadeSrc: "assets/image/default_1.webp", ), ), GestureDetector( @@ -1858,8 +1858,8 @@ class _ShoppingGoodsDetails extends State { height: 30, fit: BoxFit.cover, isCircle: true, - errorSrc: "assets/image/default_1.png", - fadeSrc: "assets/image/default_1.png", + errorSrc: "assets/image/default_1.webp", + fadeSrc: "assets/image/default_1.webp", ), SizedBox(width: 4.w), Expanded( @@ -2012,7 +2012,7 @@ class _ShoppingGoodsDetails extends State { crossAxisAlignment: CrossAxisAlignment.center, children: [ Image.asset( - "assets/image/zu_tuan.png", + "assets/image/zu_tuan.webp", width: 42, height: 42, fit: BoxFit.cover, @@ -2088,7 +2088,7 @@ class _ShoppingGoodsDetails extends State { crossAxisAlignment: CrossAxisAlignment.center, children: [ Image.asset( - "assets/image/zt_zf.png", + "assets/image/zt_zf.webp", width: 42, height: 42, fit: BoxFit.cover, @@ -2164,7 +2164,7 @@ class _ShoppingGoodsDetails extends State { crossAxisAlignment: CrossAxisAlignment.center, children: [ Image.asset( - "assets/image/yq_zt.png", + "assets/image/yq_zt.webp", width: 42, height: 42, fit: BoxFit.cover, @@ -2236,7 +2236,7 @@ class _ShoppingGoodsDetails extends State { Column( children: [ Image.asset( - "assets/image/zt_m.png", + "assets/image/zt_m.webp", width: 42, height: 42, fit: BoxFit.cover, diff --git a/lib/store/shopping/shopping_home/classify_list.dart b/lib/store/shopping/shopping_home/classify_list.dart index 45247023..b1012485 100644 --- a/lib/store/shopping/shopping_home/classify_list.dart +++ b/lib/store/shopping/shopping_home/classify_list.dart @@ -83,8 +83,8 @@ class _ClassifyList extends State { width: 48, height: 48, fit: BoxFit.cover, - errorSrc: "assets/image/default_1.png", - fadeSrc: "assets/image/default_1.png", + errorSrc: "assets/image/default_1.webp", + fadeSrc: "assets/image/default_1.webp", ), SizedBox(height: 4,), Text( diff --git a/lib/store/shopping/shopping_home/group_details.dart b/lib/store/shopping/shopping_home/group_details.dart index 66397b13..b467cad4 100644 --- a/lib/store/shopping/shopping_home/group_details.dart +++ b/lib/store/shopping/shopping_home/group_details.dart @@ -586,7 +586,7 @@ class _GroupDetails extends State { crossAxisAlignment: CrossAxisAlignment.center, children: [ Image.asset( - "assets/image/wx.png", + "assets/image/wx.webp", width: 24, height: 24, fit: BoxFit.cover, @@ -662,8 +662,8 @@ class _GroupDetails extends State { height: 60, fit: BoxFit.cover, isCircle: true, - errorSrc: "assets/image/default_1.png", - fadeSrc: "assets/image/default_1.png", + errorSrc: "assets/image/default_1.webp", + fadeSrc: "assets/image/default_1.webp", ), ), activityActRecordDetails.actRecordJoinList[position].isLeader @@ -698,7 +698,7 @@ class _GroupDetails extends State { height: 67, margin: EdgeInsets.only(left: 20), child: Image.asset( - "assets/image/pin_t.png", + "assets/image/pin_t.webp", width: 60.w, height: 60.h, fit: BoxFit.cover, @@ -750,7 +750,7 @@ class _GroupDetails extends State { crossAxisAlignment: CrossAxisAlignment.center, children: [ Image.asset( - "assets/image/zu_tuan.png", + "assets/image/zu_tuan.webp", width: 42, height: 42, fit: BoxFit.cover, @@ -827,7 +827,7 @@ class _GroupDetails extends State { crossAxisAlignment: CrossAxisAlignment.center, children: [ Image.asset( - "assets/image/zt_zf.png", + "assets/image/zt_zf.webp", width: 42, height: 42, fit: BoxFit.cover, @@ -904,7 +904,7 @@ class _GroupDetails extends State { crossAxisAlignment: CrossAxisAlignment.center, children: [ Image.asset( - "assets/image/yq_zt.png", + "assets/image/yq_zt.webp", width: 42, height: 42, fit: BoxFit.cover, @@ -977,7 +977,7 @@ class _GroupDetails extends State { Column( children: [ Image.asset( - "assets/image/zt_m.png", + "assets/image/zt_m.webp", width: 42, height: 42, fit: BoxFit.cover, diff --git a/lib/store/shopping/shopping_home/recommend_goods_list_view.dart b/lib/store/shopping/shopping_home/recommend_goods_list_view.dart index 7b79baec..9d294085 100644 --- a/lib/store/shopping/shopping_home/recommend_goods_list_view.dart +++ b/lib/store/shopping/shopping_home/recommend_goods_list_view.dart @@ -128,8 +128,8 @@ class _RecommendGoodsListView extends State { width: double.infinity, height: 166, fit: BoxFit.cover, - errorSrc: "assets/image/default_1.png", - fadeSrc: "assets/image/default_1.png", + errorSrc: "assets/image/default_1.webp", + fadeSrc: "assets/image/default_1.webp", ), ), Expanded( diff --git a/lib/store/shopping/shopping_home/search_page.dart b/lib/store/shopping/shopping_home/search_page.dart index fc96612f..2861bc28 100644 --- a/lib/store/shopping/shopping_home/search_page.dart +++ b/lib/store/shopping/shopping_home/search_page.dart @@ -459,7 +459,7 @@ class _SearchPage extends State ), )), Image.asset( - "assets/image/icon_delete.png", + "assets/image/icon_delete.webp", width: 22.w, height: 20.h, ), @@ -681,7 +681,7 @@ class _SearchPage extends State SizedBox(height: 16.h), (productListBeans == null || productListBeans?.length == 0) ? NoDataView( - src: "assets/image/ding_dan.png", + src: "assets/image/ding_dan.webp", isShowBtn: false, text: "该关键词未搜索到相关商品~", fontSize: 16.sp, @@ -760,8 +760,8 @@ class _SearchPage extends State width: double.infinity, height: 166, fit: BoxFit.cover, - errorSrc: "assets/image/default_1.png", - fadeSrc: "assets/image/default_1.png", + errorSrc: "assets/image/default_1.webp", + fadeSrc: "assets/image/default_1.webp", ), ), Expanded( diff --git a/lib/store/shopping/shopping_home/shopping_acticvity.dart b/lib/store/shopping/shopping_home/shopping_acticvity.dart index f466ee53..54ee3326 100644 --- a/lib/store/shopping/shopping_home/shopping_acticvity.dart +++ b/lib/store/shopping/shopping_home/shopping_acticvity.dart @@ -83,8 +83,8 @@ class _ShoppingActivity extends State { widget?.quickEntry[0]?.img ?? "", width:double.infinity, fit: BoxFit.contain, - errorSrc: "assets/image/default_2_1.png", - fadeSrc: "assets/image/default_2_1.png", + errorSrc: "assets/image/default_2_1.webp", + fadeSrc: "assets/image/default_2_1.webp", ), // Column( // mainAxisAlignment: MainAxisAlignment.spaceAround, @@ -178,8 +178,8 @@ class _ShoppingActivity extends State { widget?.quickEntry[1]?.img ?? "", width:double.infinity, fit: BoxFit.contain, - errorSrc: "assets/image/default_2_1.png", - fadeSrc: "assets/image/default_2_1.png", + errorSrc: "assets/image/default_2_1.webp", + fadeSrc: "assets/image/default_2_1.webp", ), // Row( // mainAxisAlignment: MainAxisAlignment.spaceEvenly, @@ -279,8 +279,8 @@ class _ShoppingActivity extends State { widget?.quickEntry[2]?.img ?? "", width:double.infinity, fit: BoxFit.contain, - errorSrc: "assets/image/default_2_1.png", - fadeSrc: "assets/image/default_2_1.png", + errorSrc: "assets/image/default_2_1.webp", + fadeSrc: "assets/image/default_2_1.webp", ), // Row( // mainAxisAlignment: MainAxisAlignment.spaceEvenly, diff --git a/lib/store/shopping/shopping_home/shopping_home_banner.dart b/lib/store/shopping/shopping_home/shopping_home_banner.dart index 9bc88b1c..c544541b 100644 --- a/lib/store/shopping/shopping_home/shopping_home_banner.dart +++ b/lib/store/shopping/shopping_home/shopping_home_banner.dart @@ -60,8 +60,8 @@ class _ShoppingHomeBanner extends State { : "", fit: BoxFit.cover, radius: BorderRadius.circular(8), - errorSrc: "assets/image/default_2_1.png", - fadeSrc: "assets/image/default_2_1.png", + errorSrc: "assets/image/default_2_1.webp", + fadeSrc: "assets/image/default_2_1.webp", ), ); }, diff --git a/lib/store/shopping/shopping_home/shopping_home_page.dart b/lib/store/shopping/shopping_home/shopping_home_page.dart index 9a8c9319..e5a956b9 100644 --- a/lib/store/shopping/shopping_home/shopping_home_page.dart +++ b/lib/store/shopping/shopping_home/shopping_home_page.dart @@ -271,8 +271,8 @@ class _ShoppingHomePage extends State : "", fit: BoxFit.cover, radius: BorderRadius.circular(8), - errorSrc: "assets/image/default_2_1.png", - fadeSrc: "assets/image/default_2_1.png", + errorSrc: "assets/image/default_2_1.webp", + fadeSrc: "assets/image/default_2_1.webp", ), ); },