parent
8a46f8f6e9
commit
5ad1afedf3
@ -0,0 +1,467 @@
|
|||||||
|
/// Generate by [resource_generator](https://github.com/CaiJingLong/flutter_resource_generator) library.
|
||||||
|
/// PLEASE DO NOT EDIT MANUALLY.
|
||||||
|
class R {
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/agreement.pdf)
|
||||||
|
static const String ASSETS_AGREEMENT_PDF = 'assets/agreement.pdf';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/QR_code.png)
|
||||||
|
static const String ASSETS_EXAMPLE_QR_CODE_PNG = 'assets/example/QR_code.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/bg1.png)
|
||||||
|
static const String ASSETS_EXAMPLE_BG1_PNG = 'assets/example/bg1.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/bg2.png)
|
||||||
|
static const String ASSETS_EXAMPLE_BG2_PNG = 'assets/example/bg2.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/bg3.png)
|
||||||
|
static const String ASSETS_EXAMPLE_BG3_PNG = 'assets/example/bg3.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/bg4.png)
|
||||||
|
static const String ASSETS_EXAMPLE_BG4_PNG = 'assets/example/bg4.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/good.png)
|
||||||
|
static const String ASSETS_EXAMPLE_GOOD_PNG = 'assets/example/good.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/guanggao1.png)
|
||||||
|
static const String ASSETS_EXAMPLE_GUANGGAO1_PNG =
|
||||||
|
'assets/example/guanggao1.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/guanggao2.png)
|
||||||
|
static const String ASSETS_EXAMPLE_GUANGGAO2_PNG =
|
||||||
|
'assets/example/guanggao2.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/guanggao3.png)
|
||||||
|
static const String ASSETS_EXAMPLE_GUANGGAO3_PNG =
|
||||||
|
'assets/example/guanggao3.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/guanggao4.png)
|
||||||
|
static const String ASSETS_EXAMPLE_GUANGGAO4_PNG =
|
||||||
|
'assets/example/guanggao4.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/guanggao5.png)
|
||||||
|
static const String ASSETS_EXAMPLE_GUANGGAO5_PNG =
|
||||||
|
'assets/example/guanggao5.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/guanggao6.png)
|
||||||
|
static const String ASSETS_EXAMPLE_GUANGGAO6_PNG =
|
||||||
|
'assets/example/guanggao6.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/guanggao7.png)
|
||||||
|
static const String ASSETS_EXAMPLE_GUANGGAO7_PNG =
|
||||||
|
'assets/example/guanggao7.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/header.png)
|
||||||
|
static const String ASSETS_EXAMPLE_HEADER_PNG = 'assets/example/header.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/jiaoshijie.png)
|
||||||
|
static const String ASSETS_EXAMPLE_JIAOSHIJIE_PNG =
|
||||||
|
'assets/example/jiaoshijie.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/kuzi.png)
|
||||||
|
static const String ASSETS_EXAMPLE_KUZI_PNG = 'assets/example/kuzi.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/mine_header.png)
|
||||||
|
static const String ASSETS_EXAMPLE_MINE_HEADER_PNG =
|
||||||
|
'assets/example/mine_header.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/topic1.png)
|
||||||
|
static const String ASSETS_EXAMPLE_TOPIC1_PNG = 'assets/example/topic1.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/topic2.png)
|
||||||
|
static const String ASSETS_EXAMPLE_TOPIC2_PNG = 'assets/example/topic2.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/topic3.png)
|
||||||
|
static const String ASSETS_EXAMPLE_TOPIC3_PNG = 'assets/example/topic3.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/touxiang1.png)
|
||||||
|
static const String ASSETS_EXAMPLE_TOUXIANG1_PNG =
|
||||||
|
'assets/example/touxiang1.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/touxiang2.png)
|
||||||
|
static const String ASSETS_EXAMPLE_TOUXIANG2_PNG =
|
||||||
|
'assets/example/touxiang2.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/touxiang3.jpeg)
|
||||||
|
static const String ASSETS_EXAMPLE_TOUXIANG3_JPEG =
|
||||||
|
'assets/example/touxiang3.jpeg';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/tz1.png)
|
||||||
|
static const String ASSETS_EXAMPLE_TZ1_PNG = 'assets/example/tz1.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/tz2.png)
|
||||||
|
static const String ASSETS_EXAMPLE_TZ2_PNG = 'assets/example/tz2.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/tz3.png)
|
||||||
|
static const String ASSETS_EXAMPLE_TZ3_PNG = 'assets/example/tz3.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/xiezi.png)
|
||||||
|
static const String ASSETS_EXAMPLE_XIEZI_PNG = 'assets/example/xiezi.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/yifu.png)
|
||||||
|
static const String ASSETS_EXAMPLE_YIFU_PNG = 'assets/example/yifu.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/example/yifu1.png)
|
||||||
|
static const String ASSETS_EXAMPLE_YIFU1_PNG = 'assets/example/yifu1.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/add.png)
|
||||||
|
static const String ASSETS_ICONS_ADD_PNG = 'assets/icons/add.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/app_add.png)
|
||||||
|
static const String ASSETS_ICONS_APP_ADD_PNG = 'assets/icons/app_add.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/app_reduce.png)
|
||||||
|
static const String ASSETS_ICONS_APP_REDUCE_PNG =
|
||||||
|
'assets/icons/app_reduce.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/comment_notice.png)
|
||||||
|
static const String ASSETS_ICONS_COMMENT_NOTICE_PNG =
|
||||||
|
'assets/icons/comment_notice.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/complaint.png)
|
||||||
|
static const String ASSETS_ICONS_COMPLAINT_PNG = 'assets/icons/complaint.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/consult.png)
|
||||||
|
static const String ASSETS_ICONS_CONSULT_PNG = 'assets/icons/consult.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/groupbuy_tab_selected.png)
|
||||||
|
static const String ASSETS_ICONS_GROUPBUY_TAB_SELECTED_PNG =
|
||||||
|
'assets/icons/groupbuy_tab_selected.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/groupbuy_tab_unselected.png)
|
||||||
|
static const String ASSETS_ICONS_GROUPBUY_TAB_UNSELECTED_PNG =
|
||||||
|
'assets/icons/groupbuy_tab_unselected.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/house.png)
|
||||||
|
static const String ASSETS_ICONS_HOUSE_PNG = 'assets/icons/house.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/icon_notification.png)
|
||||||
|
static const String ASSETS_ICONS_ICON_NOTIFICATION_PNG =
|
||||||
|
'assets/icons/icon_notification.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/img_add.png)
|
||||||
|
static const String ASSETS_ICONS_IMG_ADD_PNG = 'assets/icons/img_add.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/like.png)
|
||||||
|
static const String ASSETS_ICONS_LIKE_PNG = 'assets/icons/like.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/location.png)
|
||||||
|
static const String ASSETS_ICONS_LOCATION_PNG = 'assets/icons/location.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/market_tab_selected.png)
|
||||||
|
static const String ASSETS_ICONS_MARKET_TAB_SELECTED_PNG =
|
||||||
|
'assets/icons/market_tab_selected.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/market_tab_unselected.png)
|
||||||
|
static const String ASSETS_ICONS_MARKET_TAB_UNSELECTED_PNG =
|
||||||
|
'assets/icons/market_tab_unselected.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/phone.png)
|
||||||
|
static const String ASSETS_ICONS_PHONE_PNG = 'assets/icons/phone.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/property.png)
|
||||||
|
static const String ASSETS_ICONS_PROPERTY_PNG = 'assets/icons/property.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/proposal.png)
|
||||||
|
static const String ASSETS_ICONS_PROPOSAL_PNG = 'assets/icons/proposal.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/report.png)
|
||||||
|
static const String ASSETS_ICONS_REPORT_PNG = 'assets/icons/report.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/shield_content.png)
|
||||||
|
static const String ASSETS_ICONS_SHIELD_CONTENT_PNG =
|
||||||
|
'assets/icons/shield_content.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/shield_user.png)
|
||||||
|
static const String ASSETS_ICONS_SHIELD_USER_PNG =
|
||||||
|
'assets/icons/shield_user.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/shop_notice.png)
|
||||||
|
static const String ASSETS_ICONS_SHOP_NOTICE_PNG =
|
||||||
|
'assets/icons/shop_notice.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/system_notice.png)
|
||||||
|
static const String ASSETS_ICONS_SYSTEM_NOTICE_PNG =
|
||||||
|
'assets/icons/system_notice.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tabbar_home.png)
|
||||||
|
static const String ASSETS_ICONS_TABBAR_HOME_PNG =
|
||||||
|
'assets/icons/tabbar_home.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tabbar_home_no.png)
|
||||||
|
static const String ASSETS_ICONS_TABBAR_HOME_NO_PNG =
|
||||||
|
'assets/icons/tabbar_home_no.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tabbar_house.png)
|
||||||
|
static const String ASSETS_ICONS_TABBAR_HOUSE_PNG =
|
||||||
|
'assets/icons/tabbar_house.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tabbar_house_no.png)
|
||||||
|
static const String ASSETS_ICONS_TABBAR_HOUSE_NO_PNG =
|
||||||
|
'assets/icons/tabbar_house_no.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tabbar_market.png)
|
||||||
|
static const String ASSETS_ICONS_TABBAR_MARKET_PNG =
|
||||||
|
'assets/icons/tabbar_market.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tabbar_market_no.png)
|
||||||
|
static const String ASSETS_ICONS_TABBAR_MARKET_NO_PNG =
|
||||||
|
'assets/icons/tabbar_market_no.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tabbar_message.png)
|
||||||
|
static const String ASSETS_ICONS_TABBAR_MESSAGE_PNG =
|
||||||
|
'assets/icons/tabbar_message.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tabbar_message_no.png)
|
||||||
|
static const String ASSETS_ICONS_TABBAR_MESSAGE_NO_PNG =
|
||||||
|
'assets/icons/tabbar_message_no.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tabbar_user.png)
|
||||||
|
static const String ASSETS_ICONS_TABBAR_USER_PNG =
|
||||||
|
'assets/icons/tabbar_user.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tabbar_user_no.png)
|
||||||
|
static const String ASSETS_ICONS_TABBAR_USER_NO_PNG =
|
||||||
|
'assets/icons/tabbar_user_no.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_bmdh.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_BMDH_PNG = 'assets/icons/tool_bmdh.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_bmts.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_BMTS_PNG = 'assets/icons/tool_bmts.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_bsbx.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_BSBX_PNG = 'assets/icons/tool_bsbx.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_czxs.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_CZXS_PNG = 'assets/icons/tool_czxs.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_fkyq.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_FKYQ_PNG = 'assets/icons/tool_fkyq.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_fsxb.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_FSXB_PNG = 'assets/icons/tool_fsxb.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_hdtp.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_HDTP_PNG = 'assets/icons/tool_hdtp.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_jhgl.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_JHGL_PNG = 'assets/icons/tool_jhgl.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_jjsh.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_JJSH_PNG = 'assets/icons/tool_jjsh.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_jyts.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_JYTS_PNG = 'assets/icons/tool_jyts.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_kmm.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_KMM_PNG = 'assets/icons/tool_kmm.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_mywj.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_MYWJ_PNG = 'assets/icons/tool_mywj.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_qbyy.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_QBYY_PNG = 'assets/icons/tool_qbyy.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_shjf.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_SHJF_PNG = 'assets/icons/tool_shjf.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_smjd.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_SMJD_PNG = 'assets/icons/tool_smjd.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_tsby.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_TSBY_PNG = 'assets/icons/tool_tsby.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_wjdc.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_WJDC_PNG = 'assets/icons/tool_wjdc.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_wpcm.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_WPCM_PNG = 'assets/icons/tool_wpcm.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_xxfs.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_XXFS_PNG = 'assets/icons/tool_xxfs.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_yjbj.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_YJBJ_PNG = 'assets/icons/tool_yjbj.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_yjkm.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_YJKM_PNG = 'assets/icons/tool_yjkm.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_yljs.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_YLJS_PNG = 'assets/icons/tool_yljs.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_ywh.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_YWH_PNG = 'assets/icons/tool_ywh.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_zbbj.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_ZBBJ_PNG = 'assets/icons/tool_zbbj.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/tool_zxgl.png)
|
||||||
|
static const String ASSETS_ICONS_TOOL_ZXGL_PNG = 'assets/icons/tool_zxgl.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/user_icon_dfh.png)
|
||||||
|
static const String ASSETS_ICONS_USER_ICON_DFH_PNG =
|
||||||
|
'assets/icons/user_icon_dfh.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/user_icon_dfk.png)
|
||||||
|
static const String ASSETS_ICONS_USER_ICON_DFK_PNG =
|
||||||
|
'assets/icons/user_icon_dfk.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/user_icon_dpj.png)
|
||||||
|
static const String ASSETS_ICONS_USER_ICON_DPJ_PNG =
|
||||||
|
'assets/icons/user_icon_dpj.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/user_icon_dsh.png)
|
||||||
|
static const String ASSETS_ICONS_USER_ICON_DSH_PNG =
|
||||||
|
'assets/icons/user_icon_dsh.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/user_icon_sh.png)
|
||||||
|
static const String ASSETS_ICONS_USER_ICON_SH_PNG =
|
||||||
|
'assets/icons/user_icon_sh.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/user_icon_sz.png)
|
||||||
|
static const String ASSETS_ICONS_USER_ICON_SZ_PNG =
|
||||||
|
'assets/icons/user_icon_sz.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/user_icon_vip.png)
|
||||||
|
static const String ASSETS_ICONS_USER_ICON_VIP_PNG =
|
||||||
|
'assets/icons/user_icon_vip.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/user_icon_wdbx.png)
|
||||||
|
static const String ASSETS_ICONS_USER_ICON_WDBX_PNG =
|
||||||
|
'assets/icons/user_icon_wdbx.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/user_icon_wdc.png)
|
||||||
|
static const String ASSETS_ICONS_USER_ICON_WDC_PNG =
|
||||||
|
'assets/icons/user_icon_wdc.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/user_icon_wdcw.png)
|
||||||
|
static const String ASSETS_ICONS_USER_ICON_WDCW_PNG =
|
||||||
|
'assets/icons/user_icon_wdcw.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/user_icon_wddz.png)
|
||||||
|
static const String ASSETS_ICONS_USER_ICON_WDDZ_PNG =
|
||||||
|
'assets/icons/user_icon_wddz.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/user_icon_wdfk.png)
|
||||||
|
static const String ASSETS_ICONS_USER_ICON_WDFK_PNG =
|
||||||
|
'assets/icons/user_icon_wdfk.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/user_icon_wdfw.png)
|
||||||
|
static const String ASSETS_ICONS_USER_ICON_WDFW_PNG =
|
||||||
|
'assets/icons/user_icon_wdfw.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/user_icon_wdgj.png)
|
||||||
|
static const String ASSETS_ICONS_USER_ICON_WDGJ_PNG =
|
||||||
|
'assets/icons/user_icon_wdgj.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/user_icon_wdjf.png)
|
||||||
|
static const String ASSETS_ICONS_USER_ICON_WDJF_PNG =
|
||||||
|
'assets/icons/user_icon_wdjf.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/icons/user_icon_wdsqhd.png)
|
||||||
|
static const String ASSETS_ICONS_USER_ICON_WDSQHD_PNG =
|
||||||
|
'assets/icons/user_icon_wdsqhd.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/images/application.png)
|
||||||
|
static const String ASSETS_IMAGES_APPLICATION_PNG =
|
||||||
|
'assets/images/application.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/images/car_header.png)
|
||||||
|
static const String ASSETS_IMAGES_CAR_HEADER_PNG =
|
||||||
|
'assets/images/car_header.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/images/code_logo.png)
|
||||||
|
static const String ASSETS_IMAGES_CODE_LOGO_PNG =
|
||||||
|
'assets/images/code_logo.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/images/commitment.png)
|
||||||
|
static const String ASSETS_IMAGES_COMMITMENT_PNG =
|
||||||
|
'assets/images/commitment.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/images/drawings.png)
|
||||||
|
static const String ASSETS_IMAGES_DRAWINGS_PNG = 'assets/images/drawings.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/images/house_attestation.png)
|
||||||
|
static const String ASSETS_IMAGES_HOUSE_ATTESTATION_PNG =
|
||||||
|
'assets/images/house_attestation.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/images/house_header.png)
|
||||||
|
static const String ASSETS_IMAGES_HOUSE_HEADER_PNG =
|
||||||
|
'assets/images/house_header.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/images/license.png)
|
||||||
|
static const String ASSETS_IMAGES_LICENSE_PNG = 'assets/images/license.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/images/license_back.png)
|
||||||
|
static const String ASSETS_IMAGES_LICENSE_BACK_PNG =
|
||||||
|
'assets/images/license_back.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/images/lock.png)
|
||||||
|
static const String ASSETS_IMAGES_LOCK_PNG = 'assets/images/lock.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/images/logo.png)
|
||||||
|
static const String ASSETS_IMAGES_LOGO_PNG = 'assets/images/logo.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/images/member_bg.png)
|
||||||
|
static const String ASSETS_IMAGES_MEMBER_BG_PNG =
|
||||||
|
'assets/images/member_bg.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/images/mine_bg.png)
|
||||||
|
static const String ASSETS_IMAGES_MINE_BG_PNG = 'assets/images/mine_bg.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/images/open_door.png)
|
||||||
|
static const String ASSETS_IMAGES_OPEN_DOOR_PNG =
|
||||||
|
'assets/images/open_door.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/images/phone_logo.png)
|
||||||
|
static const String ASSETS_IMAGES_PHONE_LOGO_PNG =
|
||||||
|
'assets/images/phone_logo.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/images/white.png)
|
||||||
|
static const String ASSETS_IMAGES_WHITE_PNG = 'assets/images/white.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/images/wxpay.png)
|
||||||
|
static const String ASSETS_IMAGES_WXPAY_PNG = 'assets/images/wxpay.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/json/czxs.json)
|
||||||
|
static const String ASSETS_JSON_CZXS_JSON = 'assets/json/czxs.json';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/json/fsxb.json)
|
||||||
|
static const String ASSETS_JSON_FSXB_JSON = 'assets/json/fsxb.json';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/json/jjsh.json)
|
||||||
|
static const String ASSETS_JSON_JJSH_JSON = 'assets/json/jjsh.json';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/json/mywj.json)
|
||||||
|
static const String ASSETS_JSON_MYWJ_JSON = 'assets/json/mywj.json';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/json/shop.json)
|
||||||
|
static const String ASSETS_JSON_SHOP_JSON = 'assets/json/shop.json';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/json/shopclass.json)
|
||||||
|
static const String ASSETS_JSON_SHOPCLASS_JSON = 'assets/json/shopclass.json';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/json/smjd.json)
|
||||||
|
static const String ASSETS_JSON_SMJD_JSON = 'assets/json/smjd.json';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/json/xxfs.json)
|
||||||
|
static const String ASSETS_JSON_XXFS_JSON = 'assets/json/xxfs.json';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/json/yljs.json)
|
||||||
|
static const String ASSETS_JSON_YLJS_JSON = 'assets/json/yljs.json';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/json/zbbj.json)
|
||||||
|
static const String ASSETS_JSON_ZBBJ_JSON = 'assets/json/zbbj.json';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/tab/bkjh.png)
|
||||||
|
static const String ASSETS_TAB_BKJH_PNG = 'assets/tab/bkjh.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/tab/kbhw.png)
|
||||||
|
static const String ASSETS_TAB_KBHW_PNG = 'assets/tab/kbhw.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/tab/nanz.png)
|
||||||
|
static const String ASSETS_TAB_NANZ_PNG = 'assets/tab/nanz.png';
|
||||||
|
|
||||||
|
/// ![preview](file:///Users/akufe/Documents/akuCommunity/assets/tab/nvz.png)
|
||||||
|
static const String ASSETS_TAB_NVZ_PNG = 'assets/tab/nvz.png';
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||||
|
|
||||||
|
extension NumExt on num {
|
||||||
|
Widget get wb => SizedBox(width: this.w);
|
||||||
|
Widget get hb => SizedBox(height: this.w);
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'num_ext.dart';
|
||||||
|
|
||||||
|
extension WidgetListExt on List<Widget> {
|
||||||
|
List<Widget> sepWidget({Widget separate}) {
|
||||||
|
return List.generate(this.length * 2 - 1, (index) {
|
||||||
|
if (index.isEven)
|
||||||
|
return this[index ~/ 2];
|
||||||
|
else
|
||||||
|
return separate ?? 10.wb;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
@ -1,355 +0,0 @@
|
|||||||
import 'dart:async';
|
|
||||||
import 'package:akuCommunity/pages/setting_page/agreement_page/agreement_page.dart';
|
|
||||||
import 'package:akuCommunity/pages/sign/sign_in_page.dart';
|
|
||||||
import 'package:akuCommunity/provider/user_provider.dart';
|
|
||||||
import 'package:ani_route/ani_route.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:flutter/cupertino.dart';
|
|
||||||
import 'package:flutter_icons/flutter_icons.dart';
|
|
||||||
import 'package:akuCommunity/utils/screenutil.dart';
|
|
||||||
import 'package:akuCommunity/base/base_style.dart';
|
|
||||||
import 'package:akuCommunity/widget/common_app_bar.dart';
|
|
||||||
import 'package:akuCommunity/routers/page_routers.dart';
|
|
||||||
import 'package:akuCommunity/widget/custom_action_sheet.dart';
|
|
||||||
import 'package:provider/provider.dart';
|
|
||||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
||||||
|
|
||||||
import 'agreement_page/privacy_page.dart';
|
|
||||||
|
|
||||||
class SettingPage extends StatefulWidget {
|
|
||||||
SettingPage({Key key}) : super(key: key);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_SettingPageState createState() => _SettingPageState();
|
|
||||||
}
|
|
||||||
|
|
||||||
class _SettingPageState extends State<SettingPage> {
|
|
||||||
bool isNotice = false;
|
|
||||||
|
|
||||||
List<Map<String, dynamic>> _listView = [
|
|
||||||
{
|
|
||||||
'title': '是否接受信息通知',
|
|
||||||
'isSwitch': true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'title': '关于小蜜蜂智慧社区',
|
|
||||||
'isSwitch': false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'title': '邀请注册',
|
|
||||||
'isSwitch': false,
|
|
||||||
},
|
|
||||||
{'title': '清除缓存', 'isSwitch': false, 'fun': null},
|
|
||||||
{
|
|
||||||
'title': '意见反馈',
|
|
||||||
'isSwitch': false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'title': '账号管理',
|
|
||||||
'isSwitch': false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'title': '用户协议',
|
|
||||||
'isSwitch': false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'title': '隐私政策',
|
|
||||||
'isSwitch': false,
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
void _showDialog(String url) {
|
|
||||||
showCupertinoDialog(
|
|
||||||
context: context,
|
|
||||||
builder: (context) {
|
|
||||||
return CupertinoAlertDialog(
|
|
||||||
title: Text(
|
|
||||||
url,
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 34.sp,
|
|
||||||
color: Color(0xff030303),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
actions: <Widget>[
|
|
||||||
CupertinoDialogAction(
|
|
||||||
child: Text(
|
|
||||||
'取消',
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 34.sp,
|
|
||||||
color: Color(0xff333333),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
onPressed: () {
|
|
||||||
Navigator.of(context).pop();
|
|
||||||
},
|
|
||||||
),
|
|
||||||
CupertinoDialogAction(
|
|
||||||
child: Text(
|
|
||||||
'确认',
|
|
||||||
style: TextStyle(
|
|
||||||
fontWeight: FontWeight.w600,
|
|
||||||
fontSize: 34.sp,
|
|
||||||
color: Color(0xffff8200),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
onPressed: () {
|
|
||||||
Navigator.pop(context);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
],
|
|
||||||
);
|
|
||||||
},
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/// 具体使用方式
|
|
||||||
Future<int> showPayActionSheets(
|
|
||||||
{@required BuildContext context, String title, String subtitle}) {
|
|
||||||
return showCustomBottomSheet(
|
|
||||||
context: context,
|
|
||||||
title: title,
|
|
||||||
children: [
|
|
||||||
actionItem(
|
|
||||||
context: context,
|
|
||||||
index: 1,
|
|
||||||
title: subtitle,
|
|
||||||
isLastOne: true,
|
|
||||||
onTap: () {},
|
|
||||||
),
|
|
||||||
],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Widget _inkWellListTile(String title, bool isSwitch) {
|
|
||||||
return InkWell(
|
|
||||||
onTap: () {
|
|
||||||
switch (title) {
|
|
||||||
case '关于小蜜蜂智慧社区':
|
|
||||||
Navigator.pushNamed(context, PageName.about_page.toString());
|
|
||||||
break;
|
|
||||||
case '邀请注册':
|
|
||||||
Navigator.pushNamed(context, PageName.invite_page.toString());
|
|
||||||
break;
|
|
||||||
case '意见反馈':
|
|
||||||
Navigator.pushNamed(context, PageName.feedback_page.toString());
|
|
||||||
break;
|
|
||||||
case '清除缓存':
|
|
||||||
_showDialog('是否清除缓存?');
|
|
||||||
break;
|
|
||||||
case '账号管理':
|
|
||||||
showCupertinoModalPopup(
|
|
||||||
context: context,
|
|
||||||
builder: (context) {
|
|
||||||
return CupertinoActionSheet(
|
|
||||||
message: Text('退出注销当前账号'),
|
|
||||||
actions: [
|
|
||||||
CupertinoButton(
|
|
||||||
child: Text(
|
|
||||||
'确定',
|
|
||||||
style: TextStyle(
|
|
||||||
color: Colors.red.withOpacity(0.7),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
onPressed: () {
|
|
||||||
Navigator.popUntil(context, (route) {
|
|
||||||
return !Navigator.canPop(context);
|
|
||||||
});
|
|
||||||
Navigator.pushReplacement(
|
|
||||||
context,
|
|
||||||
CupertinoPageRoute(
|
|
||||||
builder: (context) => SignInPage(),
|
|
||||||
));
|
|
||||||
},
|
|
||||||
),
|
|
||||||
],
|
|
||||||
cancelButton: CupertinoButton(
|
|
||||||
child: Text('取消'),
|
|
||||||
onPressed: () {
|
|
||||||
Navigator.pop(context);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
);
|
|
||||||
break;
|
|
||||||
case '用户协议':
|
|
||||||
ARoute.push(context, AgreementPage());
|
|
||||||
break;
|
|
||||||
case '隐私政策':
|
|
||||||
ARoute.push(context, PrivacyPage());
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
}
|
|
||||||
},
|
|
||||||
child: Container(
|
|
||||||
color: Colors.white,
|
|
||||||
padding: EdgeInsets.symmetric(horizontal: 32.w),
|
|
||||||
child: Container(
|
|
||||||
padding: EdgeInsets.symmetric(vertical: 28.w),
|
|
||||||
decoration: BoxDecoration(
|
|
||||||
border: Border(
|
|
||||||
bottom: BorderSide(color: BaseStyle.coloreeeeee, width: 0.5)),
|
|
||||||
),
|
|
||||||
child: Row(
|
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
||||||
children: [
|
|
||||||
Text(
|
|
||||||
title,
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: BaseStyle.fontSize28,
|
|
||||||
color: BaseStyle.color333333,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
isSwitch
|
|
||||||
? InkWell(
|
|
||||||
onTap: () {
|
|
||||||
setState(() {
|
|
||||||
isNotice = !isNotice;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
child: CupertinoSwitch(
|
|
||||||
value: isNotice,
|
|
||||||
activeColor: Color(0xffffc40c), // 激活时原点颜色
|
|
||||||
onChanged: (bool val) {
|
|
||||||
setState(() {
|
|
||||||
isNotice = !isNotice;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
),
|
|
||||||
)
|
|
||||||
: Icon(
|
|
||||||
AntDesign.right,
|
|
||||||
size: 36.sp,
|
|
||||||
color: BaseStyle.color999999,
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Widget _containerQuit() {
|
|
||||||
final userProvider = Provider.of<UserProvider>(context);
|
|
||||||
return InkWell(
|
|
||||||
onTap: () {
|
|
||||||
userProvider.isSigned?
|
|
||||||
showCupertinoModalPopup(
|
|
||||||
context: context,
|
|
||||||
builder: (context) {
|
|
||||||
return CupertinoActionSheet(
|
|
||||||
message: Text('退出当前账号'),
|
|
||||||
actions: [
|
|
||||||
CupertinoButton(
|
|
||||||
child: Text(
|
|
||||||
'确定',
|
|
||||||
style: TextStyle(
|
|
||||||
color: Colors.red.withOpacity(0.7),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
onPressed: () {
|
|
||||||
userProvider.setisSigned(false);
|
|
||||||
ARoute.pop(context);
|
|
||||||
// Navigator.popUntil(context, (route) {
|
|
||||||
// return !Navigator.canPop(context);
|
|
||||||
// });
|
|
||||||
// Navigator.pushReplacement(
|
|
||||||
// context,
|
|
||||||
// CupertinoPageRoute(
|
|
||||||
// builder: (context) => SignInPage(),
|
|
||||||
// ));
|
|
||||||
},
|
|
||||||
),
|
|
||||||
],
|
|
||||||
cancelButton: CupertinoButton(
|
|
||||||
child: Text('取消'),
|
|
||||||
onPressed: () {
|
|
||||||
Navigator.pop(context);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
):ARoute.push(context, SignInPage());
|
|
||||||
},
|
|
||||||
child: userProvider.isSigned
|
|
||||||
? Container(
|
|
||||||
color: Colors.white,
|
|
||||||
height: 96.w,
|
|
||||||
padding: EdgeInsets.only(
|
|
||||||
top: 26.w,
|
|
||||||
bottom: 25.w,
|
|
||||||
),
|
|
||||||
alignment: Alignment.center,
|
|
||||||
child: Text(
|
|
||||||
'退出当前帐号',
|
|
||||||
style: TextStyle(
|
|
||||||
fontWeight: FontWeight.w600,
|
|
||||||
fontSize: BaseStyle.fontSize32,
|
|
||||||
color: BaseStyle.color333333,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
: Container(
|
|
||||||
alignment: Alignment.center,
|
|
||||||
height: 89.w,
|
|
||||||
width: 586.w,
|
|
||||||
padding: EdgeInsets.only(
|
|
||||||
top: 25.w, bottom: 24.w),
|
|
||||||
margin: EdgeInsets.symmetric(horizontal: 82.w),
|
|
||||||
decoration: BoxDecoration(
|
|
||||||
color: Color(0xffffc40c),
|
|
||||||
borderRadius: BorderRadius.all(Radius.circular(36)),
|
|
||||||
),
|
|
||||||
child: Text(
|
|
||||||
'登录',
|
|
||||||
style: TextStyle(
|
|
||||||
fontWeight: FontWeight.w600,
|
|
||||||
fontSize: BaseStyle.fontSize28,
|
|
||||||
color: BaseStyle.color333333,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return Scaffold(
|
|
||||||
appBar: PreferredSize(
|
|
||||||
child: CommonAppBar(
|
|
||||||
title: '设置',
|
|
||||||
),
|
|
||||||
preferredSize: Size.fromHeight(kToolbarHeight),
|
|
||||||
),
|
|
||||||
body: ListView(
|
|
||||||
children: [
|
|
||||||
Column(
|
|
||||||
children: _listView
|
|
||||||
.take(3)
|
|
||||||
.toList()
|
|
||||||
.map((item) => _inkWellListTile(
|
|
||||||
item['title'],
|
|
||||||
item['isSwitch'],
|
|
||||||
))
|
|
||||||
.toList(),
|
|
||||||
),
|
|
||||||
SizedBox(height: 24.w),
|
|
||||||
Column(
|
|
||||||
children: _listView
|
|
||||||
.take(8)
|
|
||||||
.skip(3)
|
|
||||||
.toList()
|
|
||||||
.map((item) => _inkWellListTile(
|
|
||||||
item['title'],
|
|
||||||
item['isSwitch'],
|
|
||||||
))
|
|
||||||
.toList(),
|
|
||||||
),
|
|
||||||
SizedBox(height: 52.w),
|
|
||||||
_containerQuit(),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,217 @@
|
|||||||
|
import 'package:akuCommunity/base/base_style.dart';
|
||||||
|
import 'package:akuCommunity/extensions/num_ext.dart';
|
||||||
|
import 'package:akuCommunity/pages/setting_page/about_page/about_page.dart';
|
||||||
|
import 'package:akuCommunity/pages/setting_page/feedback_page/feedback_page.dart';
|
||||||
|
import 'package:akuCommunity/pages/setting_page/invite_page/invite_page.dart';
|
||||||
|
import 'package:akuCommunity/pages/sign/sign_in_page.dart';
|
||||||
|
import 'package:akuCommunity/provider/user_provider.dart';
|
||||||
|
import 'package:akuCommunity/widget/bee_scaffold.dart';
|
||||||
|
import 'package:akuCommunity/extensions/widget_list_ext.dart';
|
||||||
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:get/get.dart';
|
||||||
|
import 'package:provider/provider.dart';
|
||||||
|
import 'package:velocity_x/velocity_x.dart';
|
||||||
|
|
||||||
|
class SettingsPage extends StatefulWidget {
|
||||||
|
SettingsPage({Key key}) : super(key: key);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_SettingsPageState createState() => _SettingsPageState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _SettingsPageState extends State<SettingsPage> {
|
||||||
|
Widget _buildTile({
|
||||||
|
String title,
|
||||||
|
VoidCallback onTap,
|
||||||
|
Widget suffix,
|
||||||
|
}) {
|
||||||
|
return MaterialButton(
|
||||||
|
color: Colors.white,
|
||||||
|
disabledColor: Colors.white,
|
||||||
|
height: 96.h,
|
||||||
|
elevation: 0,
|
||||||
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
|
onPressed: onTap,
|
||||||
|
child: Row(
|
||||||
|
children: [
|
||||||
|
96.hb,
|
||||||
|
32.wb,
|
||||||
|
title.text.size(28.sp).color(Colors.black).make(),
|
||||||
|
Spacer(),
|
||||||
|
suffix ??
|
||||||
|
Icon(
|
||||||
|
CupertinoIcons.chevron_forward,
|
||||||
|
size: 32.w,
|
||||||
|
color: Color(0xFF999999),
|
||||||
|
),
|
||||||
|
32.wb,
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
Widget _containerQuit() {
|
||||||
|
final userProvider = Provider.of<UserProvider>(context);
|
||||||
|
return InkWell(
|
||||||
|
onTap: () {
|
||||||
|
userProvider.isSigned
|
||||||
|
? showCupertinoModalPopup(
|
||||||
|
context: context,
|
||||||
|
builder: (context) {
|
||||||
|
return CupertinoActionSheet(
|
||||||
|
message: Text('退出当前账号'),
|
||||||
|
actions: [
|
||||||
|
CupertinoButton(
|
||||||
|
child: Text(
|
||||||
|
'确定',
|
||||||
|
style: TextStyle(
|
||||||
|
color: Colors.red.withOpacity(0.7),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
onPressed: () {
|
||||||
|
userProvider.setisSigned(false);
|
||||||
|
Get.back();
|
||||||
|
},
|
||||||
|
),
|
||||||
|
],
|
||||||
|
cancelButton: CupertinoButton(
|
||||||
|
child: Text('取消'),
|
||||||
|
onPressed: () {
|
||||||
|
Navigator.pop(context);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
)
|
||||||
|
: Get.to(SignInPage());
|
||||||
|
},
|
||||||
|
child: userProvider.isSigned
|
||||||
|
? Container(
|
||||||
|
color: Colors.white,
|
||||||
|
height: 96.w,
|
||||||
|
padding: EdgeInsets.only(
|
||||||
|
top: 26.w,
|
||||||
|
bottom: 25.w,
|
||||||
|
),
|
||||||
|
alignment: Alignment.center,
|
||||||
|
child: Text(
|
||||||
|
'退出当前帐号',
|
||||||
|
style: TextStyle(
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
fontSize: BaseStyle.fontSize32,
|
||||||
|
color: BaseStyle.color333333,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
: Container(
|
||||||
|
alignment: Alignment.center,
|
||||||
|
height: 89.w,
|
||||||
|
width: 586.w,
|
||||||
|
padding: EdgeInsets.only(top: 25.w, bottom: 24.w),
|
||||||
|
margin: EdgeInsets.symmetric(horizontal: 82.w),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: Color(0xffffc40c),
|
||||||
|
borderRadius: BorderRadius.all(Radius.circular(36)),
|
||||||
|
),
|
||||||
|
child: Text(
|
||||||
|
'登录',
|
||||||
|
style: TextStyle(
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
fontSize: BaseStyle.fontSize28,
|
||||||
|
color: BaseStyle.color333333,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return BeeScaffold(
|
||||||
|
title: '设置',
|
||||||
|
body: ListView(
|
||||||
|
padding: EdgeInsets.zero,
|
||||||
|
children: [
|
||||||
|
...[
|
||||||
|
_buildTile(
|
||||||
|
title: '是否接受信息通知',
|
||||||
|
suffix: CupertinoSwitch(
|
||||||
|
value: false,
|
||||||
|
onChanged: (state) {},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
_buildTile(
|
||||||
|
title: '关于小蜜蜂智慧社区',
|
||||||
|
onTap: () => Get.to(AboutPage()),
|
||||||
|
),
|
||||||
|
_buildTile(
|
||||||
|
title: '邀请注册',
|
||||||
|
onTap: () => Get.to(InvitePage()),
|
||||||
|
),
|
||||||
|
].sepWidget(
|
||||||
|
separate: Divider(
|
||||||
|
indent: 32.w,
|
||||||
|
endIndent: 32.w,
|
||||||
|
color: Color(0xFFD8D8D8),
|
||||||
|
thickness: 1.w,
|
||||||
|
height: 1.w,
|
||||||
|
)),
|
||||||
|
26.hb,
|
||||||
|
...[
|
||||||
|
_buildTile(
|
||||||
|
title: '清除缓存',
|
||||||
|
onTap: () {},
|
||||||
|
),
|
||||||
|
_buildTile(
|
||||||
|
title: '意见反馈',
|
||||||
|
onTap: () => Get.to(FeedBackPage()),
|
||||||
|
),
|
||||||
|
_buildTile(
|
||||||
|
title: '账号管理',
|
||||||
|
onTap: () {
|
||||||
|
showCupertinoModalPopup(
|
||||||
|
context: context,
|
||||||
|
builder: (context) {
|
||||||
|
return CupertinoActionSheet(
|
||||||
|
message: Text('退出注销当前账号'),
|
||||||
|
actions: [
|
||||||
|
CupertinoButton(
|
||||||
|
child: Text(
|
||||||
|
'确定',
|
||||||
|
style: TextStyle(
|
||||||
|
color: Colors.red.withOpacity(0.7),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
onPressed: () {
|
||||||
|
Get.offAll(SignInPage());
|
||||||
|
},
|
||||||
|
),
|
||||||
|
],
|
||||||
|
cancelButton: CupertinoButton(
|
||||||
|
child: Text('取消'),
|
||||||
|
onPressed: () {
|
||||||
|
Navigator.pop(context);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
].sepWidget(
|
||||||
|
separate: Divider(
|
||||||
|
indent: 32.w,
|
||||||
|
endIndent: 32.w,
|
||||||
|
color: Color(0xFFD8D8D8),
|
||||||
|
thickness: 1.w,
|
||||||
|
height: 1.w,
|
||||||
|
)),
|
||||||
|
50.hb,
|
||||||
|
_containerQuit(),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class BeeBackButton extends StatelessWidget {
|
||||||
|
const BeeBackButton({Key key}) : super(key: key);
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Navigator.canPop(context)
|
||||||
|
? IconButton(
|
||||||
|
onPressed: () {},
|
||||||
|
icon: Icon(
|
||||||
|
CupertinoIcons.chevron_back,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
: SizedBox();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,28 @@
|
|||||||
|
import 'package:akuCommunity/widget/bee_back_button.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class BeeScaffold extends StatefulWidget {
|
||||||
|
final String title;
|
||||||
|
final Widget body;
|
||||||
|
BeeScaffold({Key key, @required this.title, this.body}) : super(key: key);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_BeeScaffoldState createState() => _BeeScaffoldState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _BeeScaffoldState extends State<BeeScaffold> {
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Scaffold(
|
||||||
|
backgroundColor: Color(0xFFF9F9F9),
|
||||||
|
appBar: AppBar(
|
||||||
|
backgroundColor: Colors.white,
|
||||||
|
elevation: 0,
|
||||||
|
title: Text(widget.title),
|
||||||
|
centerTitle: true,
|
||||||
|
leading: BeeBackButton(),
|
||||||
|
),
|
||||||
|
body: widget.body,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue