From 98fa3a037dcf79ee8a2d9580a672d14135b3f712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AB=A0=E6=96=87=E8=BD=A9?= <12812285557@qq.com> Date: Mon, 1 Nov 2021 17:30:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dapp=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E7=BC=93=E6=85=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/const/resource.dart | 326 +++++++++--------- lib/main.dart | 7 +- lib/main_initialize.dart | 21 +- lib/pages/tab_navigator.dart | 2 +- lib/provider/user_provider.dart | 2 +- .../community_views/widgets/chat_card.dart | 5 +- pubspec.lock | 35 ++ pubspec.yaml | 2 + tool/config.dart | 6 +- 9 files changed, 229 insertions(+), 177 deletions(-) diff --git a/lib/const/resource.dart b/lib/const/resource.dart index 0cd2d093..6def22e0 100644 --- a/lib/const/resource.dart +++ b/lib/const/resource.dart @@ -3,595 +3,595 @@ class R { const R._(); - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/advice.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/advice.png) static const String ASSETS_APPLICATIONS_ADVICE_PNG = 'assets/applications/advice.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/all_app.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/all_app.png) static const String ASSETS_APPLICATIONS_ALL_APP_PNG = 'assets/applications/all_app.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/borrow.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/borrow.png) static const String ASSETS_APPLICATIONS_BORROW_PNG = 'assets/applications/borrow.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/box.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/box.png) static const String ASSETS_APPLICATIONS_BOX_PNG = 'assets/applications/box.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/committee.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/committee.png) static const String ASSETS_APPLICATIONS_COMMITTEE_PNG = 'assets/applications/committee.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/community_phone.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/community_phone.png) static const String ASSETS_APPLICATIONS_COMMUNITY_PHONE_PNG = 'assets/applications/community_phone.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/complaint.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/complaint.png) static const String ASSETS_APPLICATIONS_COMPLAINT_PNG = 'assets/applications/complaint.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/decoration.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/decoration.png) static const String ASSETS_APPLICATIONS_DECORATION_PNG = 'assets/applications/decoration.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/digital.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/digital.png) static const String ASSETS_APPLICATIONS_DIGITAL_PNG = 'assets/applications/digital.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/door_code.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/door_code.png) static const String ASSETS_APPLICATIONS_DOOR_CODE_PNG = 'assets/applications/door_code.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/fix.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/fix.png) static const String ASSETS_APPLICATIONS_FIX_PNG = 'assets/applications/fix.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/goods_out.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/goods_out.png) static const String ASSETS_APPLICATIONS_GOODS_OUT_PNG = 'assets/applications/goods_out.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/home_live.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/home_live.png) static const String ASSETS_APPLICATIONS_HOME_LIVE_PNG = 'assets/applications/home_live.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/hospital.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/hospital.png) static const String ASSETS_APPLICATIONS_HOSPITAL_PNG = 'assets/applications/hospital.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/makeup.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/makeup.png) static const String ASSETS_APPLICATIONS_MAKEUP_PNG = 'assets/applications/makeup.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/oepn_door.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/oepn_door.png) static const String ASSETS_APPLICATIONS_OEPN_DOOR_PNG = 'assets/applications/oepn_door.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/payment.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/payment.png) static const String ASSETS_APPLICATIONS_PAYMENT_PNG = 'assets/applications/payment.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/police.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/police.png) static const String ASSETS_APPLICATIONS_POLICE_PNG = 'assets/applications/police.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/question.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/question.png) static const String ASSETS_APPLICATIONS_QUESTION_PNG = 'assets/applications/question.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/snack.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/snack.png) static const String ASSETS_APPLICATIONS_SNACK_PNG = 'assets/applications/snack.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/tool_bmts.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/tool_bmts.png) static const String ASSETS_APPLICATIONS_TOOL_BMTS_PNG = 'assets/applications/tool_bmts.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/toy.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/toy.png) static const String ASSETS_APPLICATIONS_TOY_PNG = 'assets/applications/toy.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/transfer.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/transfer.png) static const String ASSETS_APPLICATIONS_TRANSFER_PNG = 'assets/applications/transfer.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/visitor_invite.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/visitor_invite.png) static const String ASSETS_APPLICATIONS_VISITOR_INVITE_PNG = 'assets/applications/visitor_invite.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/vote.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/vote.png) static const String ASSETS_APPLICATIONS_VOTE_PNG = 'assets/applications/vote.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/applications/wine.png) + /// ![preview](file:///Users/datang/aku_community/assets/applications/wine.png) static const String ASSETS_APPLICATIONS_WINE_PNG = 'assets/applications/wine.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/add.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/add.png) static const String ASSETS_ICONS_ADD_PNG = 'assets/icons/add.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/alarm.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/alarm.png) static const String ASSETS_ICONS_ALARM_PNG = 'assets/icons/alarm.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/alipay_round.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/alipay_round.png) static const String ASSETS_ICONS_ALIPAY_ROUND_PNG = 'assets/icons/alipay_round.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/app_add.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/app_add.png) static const String ASSETS_ICONS_APP_ADD_PNG = 'assets/icons/app_add.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/app_reduce.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/app_reduce.png) static const String ASSETS_ICONS_APP_REDUCE_PNG = 'assets/icons/app_reduce.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/appointment-address.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/appointment-address.png) static const String ASSETS_ICONS_APPOINTMENT_ADDRESS_PNG = 'assets/icons/appointment-address.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/appointment-code.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/appointment-code.png) static const String ASSETS_ICONS_APPOINTMENT_CODE_PNG = 'assets/icons/appointment-code.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/appointment_date.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/appointment_date.png) static const String ASSETS_ICONS_APPOINTMENT_DATE_PNG = 'assets/icons/appointment_date.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/article_count.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/article_count.png) static const String ASSETS_ICONS_ARTICLE_COUNT_PNG = 'assets/icons/article_count.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/article_name.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/article_name.png) static const String ASSETS_ICONS_ARTICLE_NAME_PNG = 'assets/icons/article_name.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/borrow_failure.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/borrow_failure.png) static const String ASSETS_ICONS_BORROW_FAILURE_PNG = 'assets/icons/borrow_failure.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/borrow_status.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/borrow_status.png) static const String ASSETS_ICONS_BORROW_STATUS_PNG = 'assets/icons/borrow_status.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/borrow_success.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/borrow_success.png) static const String ASSETS_ICONS_BORROW_SUCCESS_PNG = 'assets/icons/borrow_success.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/category.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/category.png) static const String ASSETS_ICONS_CATEGORY_PNG = 'assets/icons/category.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/change.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/change.png) static const String ASSETS_ICONS_CHANGE_PNG = 'assets/icons/change.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/comment_notice.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/comment_notice.png) static const String ASSETS_ICONS_COMMENT_NOTICE_PNG = 'assets/icons/comment_notice.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/commerc.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/commerc.png) static const String ASSETS_ICONS_COMMERC_PNG = 'assets/icons/commerc.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/complaint.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/complaint.png) static const String ASSETS_ICONS_COMPLAINT_PNG = 'assets/icons/complaint.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/consult.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/consult.png) static const String ASSETS_ICONS_CONSULT_PNG = 'assets/icons/consult.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/contract.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/contract.png) static const String ASSETS_ICONS_CONTRACT_PNG = 'assets/icons/contract.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/facility.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/facility.png) static const String ASSETS_ICONS_FACILITY_PNG = 'assets/icons/facility.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/file.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/file.png) static const String ASSETS_ICONS_FILE_PNG = 'assets/icons/file.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/finish.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/finish.png) static const String ASSETS_ICONS_FINISH_PNG = 'assets/icons/finish.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/goods_borrow.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/goods_borrow.png) static const String ASSETS_ICONS_GOODS_BORROW_PNG = 'assets/icons/goods_borrow.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/goods_return.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/goods_return.png) static const String ASSETS_ICONS_GOODS_RETURN_PNG = 'assets/icons/goods_return.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/groupbuy_tab_selected.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/groupbuy_tab_selected.png) static const String ASSETS_ICONS_GROUPBUY_TAB_SELECTED_PNG = 'assets/icons/groupbuy_tab_selected.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/groupbuy_tab_unselected.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/groupbuy_tab_unselected.png) static const String ASSETS_ICONS_GROUPBUY_TAB_UNSELECTED_PNG = 'assets/icons/groupbuy_tab_unselected.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/hot_fire.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/hot_fire.png) static const String ASSETS_ICONS_HOT_FIRE_PNG = 'assets/icons/hot_fire.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/house.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/house.png) static const String ASSETS_ICONS_HOUSE_PNG = 'assets/icons/house.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/house_keeping.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/house_keeping.png) static const String ASSETS_ICONS_HOUSE_KEEPING_PNG = 'assets/icons/house_keeping.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/icon_notification.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/icon_notification.png) static const String ASSETS_ICONS_ICON_NOTIFICATION_PNG = 'assets/icons/icon_notification.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/img_add.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/img_add.png) static const String ASSETS_ICONS_IMG_ADD_PNG = 'assets/icons/img_add.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/introduce.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/introduce.png) static const String ASSETS_ICONS_INTRODUCE_PNG = 'assets/icons/introduce.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/lease_house.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/lease_house.png) static const String ASSETS_ICONS_LEASE_HOUSE_PNG = 'assets/icons/lease_house.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/like.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/like.png) static const String ASSETS_ICONS_LIKE_PNG = 'assets/icons/like.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/location.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/location.png) static const String ASSETS_ICONS_LOCATION_PNG = 'assets/icons/location.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/manager_order_cancel.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/manager_order_cancel.png) static const String ASSETS_ICONS_MANAGER_ORDER_CANCEL_PNG = 'assets/icons/manager_order_cancel.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/manager_phone_call.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/manager_phone_call.png) static const String ASSETS_ICONS_MANAGER_PHONE_CALL_PNG = 'assets/icons/manager_phone_call.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/market_tab_selected.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/market_tab_selected.png) static const String ASSETS_ICONS_MARKET_TAB_SELECTED_PNG = 'assets/icons/market_tab_selected.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/market_tab_unselected.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/market_tab_unselected.png) static const String ASSETS_ICONS_MARKET_TAB_UNSELECTED_PNG = 'assets/icons/market_tab_unselected.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/pay.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/pay.png) static const String ASSETS_ICONS_PAY_PNG = 'assets/icons/pay.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/phone.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/phone.png) static const String ASSETS_ICONS_PHONE_PNG = 'assets/icons/phone.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/property.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/property.png) static const String ASSETS_ICONS_PROPERTY_PNG = 'assets/icons/property.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/proposal.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/proposal.png) static const String ASSETS_ICONS_PROPOSAL_PNG = 'assets/icons/proposal.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/report.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/report.png) static const String ASSETS_ICONS_REPORT_PNG = 'assets/icons/report.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/second_hand.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/second_hand.png) static const String ASSETS_ICONS_SECOND_HAND_PNG = 'assets/icons/second_hand.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/service.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/service.png) static const String ASSETS_ICONS_SERVICE_PNG = 'assets/icons/service.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/shield_content.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/shield_content.png) static const String ASSETS_ICONS_SHIELD_CONTENT_PNG = 'assets/icons/shield_content.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/shield_user.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/shield_user.png) static const String ASSETS_ICONS_SHIELD_USER_PNG = 'assets/icons/shield_user.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/shop_notice.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/shop_notice.png) static const String ASSETS_ICONS_SHOP_NOTICE_PNG = 'assets/icons/shop_notice.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/system_notice.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/system_notice.png) static const String ASSETS_ICONS_SYSTEM_NOTICE_PNG = 'assets/icons/system_notice.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tabbar_home.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tabbar_home.png) static const String ASSETS_ICONS_TABBAR_HOME_PNG = 'assets/icons/tabbar_home.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tabbar_home_no.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tabbar_home_no.png) static const String ASSETS_ICONS_TABBAR_HOME_NO_PNG = 'assets/icons/tabbar_home_no.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tabbar_house.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tabbar_house.png) static const String ASSETS_ICONS_TABBAR_HOUSE_PNG = 'assets/icons/tabbar_house.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tabbar_house_no.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tabbar_house_no.png) static const String ASSETS_ICONS_TABBAR_HOUSE_NO_PNG = 'assets/icons/tabbar_house_no.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tabbar_market.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tabbar_market.png) static const String ASSETS_ICONS_TABBAR_MARKET_PNG = 'assets/icons/tabbar_market.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tabbar_market_no.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tabbar_market_no.png) static const String ASSETS_ICONS_TABBAR_MARKET_NO_PNG = 'assets/icons/tabbar_market_no.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tabbar_message.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tabbar_message.png) static const String ASSETS_ICONS_TABBAR_MESSAGE_PNG = 'assets/icons/tabbar_message.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tabbar_message_no.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tabbar_message_no.png) static const String ASSETS_ICONS_TABBAR_MESSAGE_NO_PNG = 'assets/icons/tabbar_message_no.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tabbar_user.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tabbar_user.png) static const String ASSETS_ICONS_TABBAR_USER_PNG = 'assets/icons/tabbar_user.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tabbar_user_no.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tabbar_user_no.png) static const String ASSETS_ICONS_TABBAR_USER_NO_PNG = 'assets/icons/tabbar_user_no.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_bmdh.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_bmdh.png) static const String ASSETS_ICONS_TOOL_BMDH_PNG = 'assets/icons/tool_bmdh.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_bmts.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_bmts.png) static const String ASSETS_ICONS_TOOL_BMTS_PNG = 'assets/icons/tool_bmts.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_bsbx.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_bsbx.png) static const String ASSETS_ICONS_TOOL_BSBX_PNG = 'assets/icons/tool_bsbx.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_czxs.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_czxs.png) static const String ASSETS_ICONS_TOOL_CZXS_PNG = 'assets/icons/tool_czxs.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_facility.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_facility.png) static const String ASSETS_ICONS_TOOL_FACILITY_PNG = 'assets/icons/tool_facility.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_fkyq.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_fkyq.png) static const String ASSETS_ICONS_TOOL_FKYQ_PNG = 'assets/icons/tool_fkyq.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_fsxb.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_fsxb.png) static const String ASSETS_ICONS_TOOL_FSXB_PNG = 'assets/icons/tool_fsxb.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_hdtp.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_hdtp.png) static const String ASSETS_ICONS_TOOL_HDTP_PNG = 'assets/icons/tool_hdtp.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_jhgl.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_jhgl.png) static const String ASSETS_ICONS_TOOL_JHGL_PNG = 'assets/icons/tool_jhgl.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_jjsh.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_jjsh.png) static const String ASSETS_ICONS_TOOL_JJSH_PNG = 'assets/icons/tool_jjsh.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_jyts.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_jyts.png) static const String ASSETS_ICONS_TOOL_JYTS_PNG = 'assets/icons/tool_jyts.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_kmm.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_kmm.png) static const String ASSETS_ICONS_TOOL_KMM_PNG = 'assets/icons/tool_kmm.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_mywj.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_mywj.png) static const String ASSETS_ICONS_TOOL_MYWJ_PNG = 'assets/icons/tool_mywj.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_qbyy.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_qbyy.png) static const String ASSETS_ICONS_TOOL_QBYY_PNG = 'assets/icons/tool_qbyy.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_shjf.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_shjf.png) static const String ASSETS_ICONS_TOOL_SHJF_PNG = 'assets/icons/tool_shjf.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_smjd.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_smjd.png) static const String ASSETS_ICONS_TOOL_SMJD_PNG = 'assets/icons/tool_smjd.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_tsby.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_tsby.png) static const String ASSETS_ICONS_TOOL_TSBY_PNG = 'assets/icons/tool_tsby.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_wjdc.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_wjdc.png) static const String ASSETS_ICONS_TOOL_WJDC_PNG = 'assets/icons/tool_wjdc.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_wpcm.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_wpcm.png) static const String ASSETS_ICONS_TOOL_WPCM_PNG = 'assets/icons/tool_wpcm.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_xxfs.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_xxfs.png) static const String ASSETS_ICONS_TOOL_XXFS_PNG = 'assets/icons/tool_xxfs.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_yjbj.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_yjbj.png) static const String ASSETS_ICONS_TOOL_YJBJ_PNG = 'assets/icons/tool_yjbj.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_yjkm.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_yjkm.png) static const String ASSETS_ICONS_TOOL_YJKM_PNG = 'assets/icons/tool_yjkm.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_yljs.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_yljs.png) static const String ASSETS_ICONS_TOOL_YLJS_PNG = 'assets/icons/tool_yljs.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_ywh.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_ywh.png) static const String ASSETS_ICONS_TOOL_YWH_PNG = 'assets/icons/tool_ywh.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_zbbj.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_zbbj.png) static const String ASSETS_ICONS_TOOL_ZBBJ_PNG = 'assets/icons/tool_zbbj.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/tool_zxgl.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/tool_zxgl.png) static const String ASSETS_ICONS_TOOL_ZXGL_PNG = 'assets/icons/tool_zxgl.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/user_icon_dfh.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/user_icon_dfh.png) static const String ASSETS_ICONS_USER_ICON_DFH_PNG = 'assets/icons/user_icon_dfh.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/user_icon_dfk.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/user_icon_dfk.png) static const String ASSETS_ICONS_USER_ICON_DFK_PNG = 'assets/icons/user_icon_dfk.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/user_icon_dpj.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/user_icon_dpj.png) static const String ASSETS_ICONS_USER_ICON_DPJ_PNG = 'assets/icons/user_icon_dpj.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/user_icon_dsh.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/user_icon_dsh.png) static const String ASSETS_ICONS_USER_ICON_DSH_PNG = 'assets/icons/user_icon_dsh.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/user_icon_sh.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/user_icon_sh.png) static const String ASSETS_ICONS_USER_ICON_SH_PNG = 'assets/icons/user_icon_sh.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/user_icon_sz.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/user_icon_sz.png) static const String ASSETS_ICONS_USER_ICON_SZ_PNG = 'assets/icons/user_icon_sz.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/user_icon_vip.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/user_icon_vip.png) static const String ASSETS_ICONS_USER_ICON_VIP_PNG = 'assets/icons/user_icon_vip.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/user_icon_wdbx.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/user_icon_wdbx.png) static const String ASSETS_ICONS_USER_ICON_WDBX_PNG = 'assets/icons/user_icon_wdbx.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/user_icon_wdc.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/user_icon_wdc.png) static const String ASSETS_ICONS_USER_ICON_WDC_PNG = 'assets/icons/user_icon_wdc.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/user_icon_wdcw.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/user_icon_wdcw.png) static const String ASSETS_ICONS_USER_ICON_WDCW_PNG = 'assets/icons/user_icon_wdcw.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/user_icon_wddz.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/user_icon_wddz.png) static const String ASSETS_ICONS_USER_ICON_WDDZ_PNG = 'assets/icons/user_icon_wddz.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/user_icon_wdfk.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/user_icon_wdfk.png) static const String ASSETS_ICONS_USER_ICON_WDFK_PNG = 'assets/icons/user_icon_wdfk.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/user_icon_wdfw.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/user_icon_wdfw.png) static const String ASSETS_ICONS_USER_ICON_WDFW_PNG = 'assets/icons/user_icon_wdfw.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/user_icon_wdgj.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/user_icon_wdgj.png) static const String ASSETS_ICONS_USER_ICON_WDGJ_PNG = 'assets/icons/user_icon_wdgj.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/user_icon_wdjf.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/user_icon_wdjf.png) static const String ASSETS_ICONS_USER_ICON_WDJF_PNG = 'assets/icons/user_icon_wdjf.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/icons/user_icon_wdsqhd.png) + /// ![preview](file:///Users/datang/aku_community/assets/icons/user_icon_wdsqhd.png) static const String ASSETS_ICONS_USER_ICON_WDSQHD_PNG = 'assets/icons/user_icon_wdsqhd.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/images/application.png) + /// ![preview](file:///Users/datang/aku_community/assets/images/application.png) static const String ASSETS_IMAGES_APPLICATION_PNG = 'assets/images/application.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/images/car_header.png) + /// ![preview](file:///Users/datang/aku_community/assets/images/car_header.png) static const String ASSETS_IMAGES_CAR_HEADER_PNG = 'assets/images/car_header.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/images/code_logo.png) + /// ![preview](file:///Users/datang/aku_community/assets/images/code_logo.png) static const String ASSETS_IMAGES_CODE_LOGO_PNG = 'assets/images/code_logo.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/images/commitment.png) + /// ![preview](file:///Users/datang/aku_community/assets/images/commitment.png) static const String ASSETS_IMAGES_COMMITMENT_PNG = 'assets/images/commitment.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/images/contact_manager.png) + /// ![preview](file:///Users/datang/aku_community/assets/images/contact_manager.png) static const String ASSETS_IMAGES_CONTACT_MANAGER_PNG = 'assets/images/contact_manager.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/images/drawings.png) + /// ![preview](file:///Users/datang/aku_community/assets/images/drawings.png) static const String ASSETS_IMAGES_DRAWINGS_PNG = 'assets/images/drawings.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/images/house_attestation.png) + /// ![preview](file:///Users/datang/aku_community/assets/images/house_attestation.png) static const String ASSETS_IMAGES_HOUSE_ATTESTATION_PNG = 'assets/images/house_attestation.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/images/house_header.png) + /// ![preview](file:///Users/datang/aku_community/assets/images/house_header.png) static const String ASSETS_IMAGES_HOUSE_HEADER_PNG = 'assets/images/house_header.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/images/license.png) + /// ![preview](file:///Users/datang/aku_community/assets/images/license.png) static const String ASSETS_IMAGES_LICENSE_PNG = 'assets/images/license.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/images/license_back.png) + /// ![preview](file:///Users/datang/aku_community/assets/images/license_back.png) static const String ASSETS_IMAGES_LICENSE_BACK_PNG = 'assets/images/license_back.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/images/lock.png) + /// ![preview](file:///Users/datang/aku_community/assets/images/lock.png) static const String ASSETS_IMAGES_LOCK_PNG = 'assets/images/lock.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/images/logo.png) + /// ![preview](file:///Users/datang/aku_community/assets/images/logo.png) static const String ASSETS_IMAGES_LOGO_PNG = 'assets/images/logo.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/images/member_bg.png) + /// ![preview](file:///Users/datang/aku_community/assets/images/member_bg.png) static const String ASSETS_IMAGES_MEMBER_BG_PNG = 'assets/images/member_bg.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/images/mine_bg.png) + /// ![preview](file:///Users/datang/aku_community/assets/images/mine_bg.png) static const String ASSETS_IMAGES_MINE_BG_PNG = 'assets/images/mine_bg.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/images/open_door.png) + /// ![preview](file:///Users/datang/aku_community/assets/images/open_door.png) static const String ASSETS_IMAGES_OPEN_DOOR_PNG = 'assets/images/open_door.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/images/phone_logo.png) + /// ![preview](file:///Users/datang/aku_community/assets/images/phone_logo.png) static const String ASSETS_IMAGES_PHONE_LOGO_PNG = 'assets/images/phone_logo.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/images/placeholder.webp) + /// ![preview](file:///Users/datang/aku_community/assets/images/placeholder.webp) static const String ASSETS_IMAGES_PLACEHOLDER_WEBP = 'assets/images/placeholder.webp'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/images/white.png) + /// ![preview](file:///Users/datang/aku_community/assets/images/white.png) static const String ASSETS_IMAGES_WHITE_PNG = 'assets/images/white.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/images/wxpay.png) + /// ![preview](file:///Users/datang/aku_community/assets/images/wxpay.png) static const String ASSETS_IMAGES_WXPAY_PNG = 'assets/images/wxpay.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/static/car_card_grey.webp) + /// ![preview](file:///Users/datang/aku_community/assets/static/car_card_grey.webp) static const String ASSETS_STATIC_CAR_CARD_GREY_WEBP = 'assets/static/car_card_grey.webp'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/static/car_card_yellow.webp) + /// ![preview](file:///Users/datang/aku_community/assets/static/car_card_yellow.webp) static const String ASSETS_STATIC_CAR_CARD_YELLOW_WEBP = 'assets/static/car_card_yellow.webp'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/static/car_park_empty.webp) + /// ![preview](file:///Users/datang/aku_community/assets/static/car_park_empty.webp) static const String ASSETS_STATIC_CAR_PARK_EMPTY_WEBP = 'assets/static/car_park_empty.webp'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/static/house_auth_fail.webp) + /// ![preview](file:///Users/datang/aku_community/assets/static/house_auth_fail.webp) static const String ASSETS_STATIC_HOUSE_AUTH_FAIL_WEBP = 'assets/static/house_auth_fail.webp'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/static/house_auth_success.webp) + /// ![preview](file:///Users/datang/aku_community/assets/static/house_auth_success.webp) static const String ASSETS_STATIC_HOUSE_AUTH_SUCCESS_WEBP = 'assets/static/house_auth_success.webp'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/static/id_card_back.png) + /// ![preview](file:///Users/datang/aku_community/assets/static/id_card_back.png) static const String ASSETS_STATIC_ID_CARD_BACK_PNG = 'assets/static/id_card_back.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/static/id_card_front.png) + /// ![preview](file:///Users/datang/aku_community/assets/static/id_card_front.png) static const String ASSETS_STATIC_ID_CARD_FRONT_PNG = 'assets/static/id_card_front.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/static/parking_grey.webp) + /// ![preview](file:///Users/datang/aku_community/assets/static/parking_grey.webp) static const String ASSETS_STATIC_PARKING_GREY_WEBP = 'assets/static/parking_grey.webp'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/static/parking_yellow.webp) + /// ![preview](file:///Users/datang/aku_community/assets/static/parking_yellow.webp) static const String ASSETS_STATIC_PARKING_YELLOW_WEBP = 'assets/static/parking_yellow.webp'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/static/review_fail.webp) + /// ![preview](file:///Users/datang/aku_community/assets/static/review_fail.webp) static const String ASSETS_STATIC_REVIEW_FAIL_WEBP = 'assets/static/review_fail.webp'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/static/reviewing.webp) + /// ![preview](file:///Users/datang/aku_community/assets/static/reviewing.webp) static const String ASSETS_STATIC_REVIEWING_WEBP = 'assets/static/reviewing.webp'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/tab/bkjh.png) + /// ![preview](file:///Users/datang/aku_community/assets/tab/bkjh.png) static const String ASSETS_TAB_BKJH_PNG = 'assets/tab/bkjh.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/tab/kbhw.png) + /// ![preview](file:///Users/datang/aku_community/assets/tab/kbhw.png) static const String ASSETS_TAB_KBHW_PNG = 'assets/tab/kbhw.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/tab/nanz.png) + /// ![preview](file:///Users/datang/aku_community/assets/tab/nanz.png) static const String ASSETS_TAB_NANZ_PNG = 'assets/tab/nanz.png'; - /// ![preview](file:///Users/zhangmeng/aku_community/assets/tab/nvz.png) + /// ![preview](file:///Users/datang/aku_community/assets/tab/nvz.png) static const String ASSETS_TAB_NVZ_PNG = 'assets/tab/nvz.png'; } diff --git a/lib/main.dart b/lib/main.dart index 7a782fc7..8c5d0af1 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -24,13 +24,10 @@ void main() async { ///firebase crashlytics initalize await MainInitialize.initFirebase(); MainInitialize.initTheme(); - await MainInitialize.initJPush(); MainInitialize.initWechat(); MainInitialize.initWebSocket(); - String? rID; - JPush().getRegistrationID().then((value) => rID = value); - print('jpush registrationID is $rID'); - LoggerData.addData(rID, tag: 'RegistrationID'); + await MainInitialize.initJPush(); + runApp(MyApp()); } diff --git a/lib/main_initialize.dart b/lib/main_initialize.dart index 294e68c6..1d962be4 100644 --- a/lib/main_initialize.dart +++ b/lib/main_initialize.dart @@ -19,6 +19,7 @@ import 'package:power_logger/power_logger.dart'; import 'package:provider/provider.dart'; class MainInitialize { + ///初始化firebase static Future initFirebase() async { await Firebase.initializeApp(); @@ -41,14 +42,17 @@ class MainInitialize { } static Future initJPush() async { + final JPush jpush = new JPush(); if (kIsWeb || Platform.isMacOS) return; - JPush jpush = new JPush(); + // Future Function(Map? message)? jPushLogger( // String type) { // return (Map? message) async { // LoggerData.addData(message, tag: type); // }; // } + + try { jpush.addEventHandler( onReceiveNotification: (message) async { LoggerData.addData(message, tag: 'onReceiveNotification'); @@ -62,8 +66,14 @@ class MainInitialize { }, onReceiveMessage: (Map? message) async { LoggerData.addData(message, tag: 'onReceiveMessage'); - }, + }, onReceiveNotificationAuthorization: + (Map message) async { + print("flutter onReceiveNotificationAuthorization: $message"); + } ); + } on PlatformException { + + } jpush.setup( appKey: "00e20fef79ee804d5c9abb54", channel: "developer-default", @@ -71,6 +81,13 @@ class MainInitialize { debug: true, ); // jpush.applyPushAuthority(); + String? rID; + jpush.getRegistrationID().then((rid) { + print("flutter get registration id : $rid"); + rID = rid; + LoggerData.addData(rID, tag: 'RegistrationID'); + }); + } static initWechat() { diff --git a/lib/pages/tab_navigator.dart b/lib/pages/tab_navigator.dart index be56547f..c3dd04d3 100644 --- a/lib/pages/tab_navigator.dart +++ b/lib/pages/tab_navigator.dart @@ -10,6 +10,7 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:get/get.dart'; +import 'package:jpush_flutter/jpush_flutter.dart'; import 'home/home_page.dart'; import 'personal/personal_page.dart'; @@ -36,7 +37,6 @@ class _TabNavigatorState extends State @override void initState() { super.initState(); - _pages = [ HomePage(), MarketPage(), diff --git a/lib/provider/user_provider.dart b/lib/provider/user_provider.dart index d4e0a253..50a3c04a 100644 --- a/lib/provider/user_provider.dart +++ b/lib/provider/user_provider.dart @@ -68,7 +68,7 @@ class UserProvider extends ChangeNotifier { _userInfoModel = await SignFunc.getUserInfo(); if (_userInfoModel != null && !kIsWeb && !Platform.isMacOS) { try { - await JPush().setAlias(_userInfoModel!.id.toString()); + await JPush().setAlias(_userInfoModel!.id.toString()); } catch (e) { LoggerData.addData(e); } diff --git a/lib/ui/community/community_views/widgets/chat_card.dart b/lib/ui/community/community_views/widgets/chat_card.dart index 2992981c..3abda53c 100644 --- a/lib/ui/community/community_views/widgets/chat_card.dart +++ b/lib/ui/community/community_views/widgets/chat_card.dart @@ -71,7 +71,7 @@ class _ChatCardState extends State { ), child: Hero( tag: ImgModel.first(widget.model!.imgUrls), - child: FadeInImage.assetNetwork( + child:FadeInImage.assetNetwork( placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, image: API.image(ImgModel.first(widget.model!.imgUrls)), ), @@ -293,6 +293,7 @@ class _ChatCardState extends State { child: Row( crossAxisAlignment: CrossAxisAlignment.start, children: [ + widget.model!.headSculptureImgUrl!.length>0? Material( color: Color(0xFFF5F5F5), borderRadius: BorderRadius.circular(6.w), @@ -305,7 +306,7 @@ class _ChatCardState extends State { width: 86.w, fit: BoxFit.cover, ), - ), + ):SizedBox(), 24.wb, Column( crossAxisAlignment: CrossAxisAlignment.start, diff --git a/pubspec.lock b/pubspec.lock index f6181cd8..36a3de8b 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -155,6 +155,27 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "8.1.1" + cached_network_image: + dependency: "direct main" + description: + name: cached_network_image + url: "https://pub.flutter-io.cn" + source: hosted + version: "3.1.0" + cached_network_image_platform_interface: + dependency: transitive + description: + name: cached_network_image_platform_interface + url: "https://pub.flutter-io.cn" + source: hosted + version: "1.0.0" + cached_network_image_web: + dependency: transitive + description: + name: cached_network_image_web + url: "https://pub.flutter-io.cn" + source: hosted + version: "1.0.1" characters: dependency: transitive description: @@ -405,6 +426,13 @@ packages: description: flutter source: sdk version: "0.0.0" + flutter_blurhash: + dependency: transitive + description: + name: flutter_blurhash + url: "https://pub.flutter-io.cn" + source: hosted + version: "0.6.0" flutter_cache_manager: dependency: transitive description: @@ -702,6 +730,13 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "2.1.1" + octo_image: + dependency: transitive + description: + name: octo_image + url: "https://pub.flutter-io.cn" + source: hosted + version: "1.0.0+1" open_file: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index cf6e8de4..bd8095fc 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -106,6 +106,8 @@ dependencies: advance_pdf_viewer: ^2.0.0 #扩展组件 expandable: ^5.0.1 + #加载网络图片 + cached_network_image: ^3.1.0 dev_dependencies: flutter_test: diff --git a/tool/config.dart b/tool/config.dart index fa66383e..331ca7c6 100644 --- a/tool/config.dart +++ b/tool/config.dart @@ -1,6 +1,6 @@ class Config { ///用户根目录 - static const String homeDir = '/users/zhangmeng'; + static const String homeDir = '/users/datang'; ///包名 static const String packageName = 'aku_community'; @@ -11,9 +11,9 @@ class Config { ///测试包文件夹 static String get apkDevDir => - '/users/zhangmeng/team/bee/app/aku_community/dev'; + '/users/datang/team/bee/app/aku_community/dev'; ///正式包文件夹 static String get apkDir => - '/users/zhangmeng/team/bee/app/aku_community/release'; + '/users/datang/team/bee/app/aku_community/release'; }