{"id":69528,"date":"2026-04-21T09:42:53","date_gmt":"2026-04-21T01:42:53","guid":{"rendered":"https:\/\/app.applebyme.cn\/cloud\/wwwinfo\/69528.html"},"modified":"2026-04-21T09:42:53","modified_gmt":"2026-04-21T01:42:53","slug":"flutter%e9%a1%b9%e7%9b%ae%e4%b8%8a%e6%9e%b6app%e6%93%8d%e4%bd%9c%e5%8a%9e%e6%b3%95%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/app.applebyme.cn\/cloud\/wwwinfo\/69528.html","title":{"rendered":"flutter\u9879\u76ee\u4e0a\u67b6app\u64cd\u4f5c\u529e\u6cd5\u4ecb\u7ecd"},"content":{"rendered":"<p>Flutter\u9879\u76ee\u4e0a\u67b6APP\u5168\u6d41\u7a0b\u6307\u5357\uff1a\u4ece\u5f00\u53d1\u5230\u53d1\u5e03\u4e00\u6b65\u5230\u4f4d<\/p>\n<p>\u5728\u5f53\u4eca\u79fb\u52a8\u5e94\u7528\u5f00\u53d1\u9886\u57df\uff0cFlutter\u4ee5\u5176\u8de8\u5e73\u53f0\u7684\u7279\u6027\u8d62\u5f97\u4e86\u4f17\u591a\u5f00\u53d1\u8005\u7684\u9752\u7750\u3002\u7136\u800c\uff0c\u8bb8\u591a\u5f00\u53d1\u8005\u5728\u5b8c\u6210Flutter\u9879\u76ee\u5f00\u53d1\u540e\uff0c\u5f80\u5f80\u5bf9\u4e0a\u67b6\u6d41\u7a0b\u611f\u5230\u8ff7\u832b\u3002\u672c\u6587\u5c06\u4e3a\u60a8\u8be6\u7ec6\u4ecb\u7ecdFlutter\u9879\u76ee\u4e0a\u67b6APP\u7684\u5168\u8fc7\u7a0b\uff0c\u52a9\u60a8\u987a\u5229\u5c06\u5e94\u7528\u63a8\u5411\u5e02\u573a\u3002<\/p>\n<p>\u4e00\u3001Flutter\u9879\u76ee\u4e0a\u67b6\u524d\u7684\u51c6\u5907\u5de5\u4f5c<\/p>\n<ol>\n<li>\n<p><strong>\u4ee3\u7801\u4f18\u5316\u4e0e\u6d4b\u8bd5<\/strong><br \/>\n\u5728\u6b63\u5f0f\u4e0a\u67b6\u524d\uff0c\u52a1\u5fc5\u5bf9Flutter\u9879\u76ee\u8fdb\u884c\u5168\u9762\u6d4b\u8bd5\u3002\u4f7f\u7528flutter analyze\u68c0\u67e5\u4ee3\u7801\u8d28\u91cf\uff0c\u8fd0\u884cflutter test\u8fdb\u884c\u5355\u5143\u6d4b\u8bd5\uff0c\u5e76\u901a\u8fc7flutter run &#8211;release\u8fdb\u884c\u771f\u673a\u6d4b\u8bd5\uff0c\u786e\u4fdd\u5e94\u7528\u5728\u5404\u79cd\u8bbe\u5907\u4e0a\u8fd0\u884c\u7a33\u5b9a\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5e94\u7528\u56fe\u6807\u4e0e\u542f\u52a8\u753b\u9762<\/strong><br \/>\n\u6839\u636e\u5404\u5e94\u7528\u5546\u5e97\u7684\u8981\u6c42\u51c6\u5907\u4e0d\u540c\u5c3a\u5bf8\u7684\u5e94\u7528\u56fe<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.yimenyun.net\/2023-03\/31\/13\/26850345825.jpg\" \/><\/figure>\n<\/p>\n<p>\u6807\u548c\u542f\u52a8\u753b\u9762\u3002Flutter\u63d0\u4f9b\u4e86flutter_launcher_icons\u548cflutter_native_splash\u63d2\u4ef6\uff0c\u53ef\u7b80\u5316\u8fd9\u4e00\u6d41\u7a0b\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u914d\u7f6e\u5e94\u7528\u4fe1\u606f<\/strong><br \/>\n\u5728pubspec.yaml\u6587\u4ef6\u4e2d\u6b63\u786e\u914d\u7f6e\u5e94\u7528\u540d\u79f0\u3001\u7248\u672c\u53f7\u3001\u63cf\u8ff0\u7b49\u4fe1\u606f\u3002\u7248\u672c\u53f7\u5e94\u9075\u5faa\u8bed\u4e49\u5316\u7248\u672c\u63a7\u5236\u89c4\u8303\uff08\u59821.0.0\uff09\u3002<\/p>\n<\/li>\n<\/ol>\n<p>\u4e8c\u3001\u5e73\u53f0\u7279\u5b9a\u7684\u914d\u7f6e<br \/>\n1. Android\u5e73\u53f0\u914d\u7f6e<\/p>\n<ul>\n<li>\u7f16\u8f91android\/app\/build.gradle\u6587\u4ef6\uff0c\u8bbe\u7f6eapplicationId\u3001versionCode\u548cversionName<\/li>\n<li>\u914d\u7f6eAndroidManifest.xml\u6587\u4ef6\uff0c\u6dfb\u52a0\u5fc5\u8981\u7684\u6743\u9650\u58f0\u660e<\/li>\n<li>\u751f\u6210\u7b7e\u540d\u5bc6\u94a5\u5e76\u914d\u7f6e\u7b7e\u540d\u4fe1\u606f<\/li>\n<\/ul>\n<p>2. iOS\u5e73\u53f0\u914d\u7f6e<\/p>\n<ul>\n<li>\u5728Xcode\u4e2d\u8bbe\u7f6eBundle Identifier\u3001\u7248\u672c\u53f7\u548c\u6784\u5efa\u53f7<\/li>\n<li>\u914d\u7f6eInfo.plist\u6587\u4ef6\uff0c\u6dfb\u52a0\u5fc5\u8981\u7684\u6743\u9650\u63cf\u8ff0<\/li>\n<li>\u51c6\u5907App Store Connect\u6240\u9700\u7684\u5143\u6570\u636e\u548c\u622a\u56fe<\/li>\n<\/ul>\n<p>\u4e09\u3001\u6784\u5efa\u53d1\u5e03\u7248\u672c<\/p>\n<ol>\n<li>\n<p><strong>Android APK\/AAB\u6784\u5efa<\/strong><br \/>\n\u8fd0\u884cflutter build apk\u6216flutter build appbundle\u547d\u4ee4\u751f\u6210\u53d1\u5e03\u5305\u3002Google Play\u73b0\u5728\u63a8\u8350\u4f7f\u7528AAB\u683c\u5f0f\u66ff\u4ee3\u4f20\u7edf\u7684APK\u3002<\/p>\n<\/li>\n<li>\n<p><strong>iOS IPA\u6784\u5efa<\/strong><br \/>\n\u4f7f\u7528Xcode\u6216\u8fd0\u884cflutter build ipa\u547d\u4ee4\u751f\u6210IPA\u6587\u4ef6\u3002\u786e\u4fdd\u9009\u62e9\u6b63\u786e\u7684\u7b7e\u540d\u914d\u7f6e\u548c\u5206\u53d1\u65b9\u5f0f\u3002<\/p>\n<\/li>\n<\/ol>\n<p>\u56db\u3001\u5e94\u7528\u5546\u5e97\u4e0a\u67b6\u6d41\u7a0b<\/p>\n<ol>\n<li><strong>Google Play\u4e0a\u67b6<\/strong><\/li>\n<\/ol>\n<ul>\n<li>\u521b\u5efa\u5f00\u53d1\u8005\u8d26\u53f7\uff08\u9700\u652f\u4ed825\u7f8e\u5143\u4e00\u6b21\u6027\u8d39\u7528\uff09<\/li>\n<li>\u5728Play Console\u4e2d\u521b\u5efa\u5e94\u7528\u5e76\u586b\u5199\u8be6\u7ec6\u4fe1\u606f<\/li>\n<li>\u4e0a\u4f20AAB\u6587\u4ef6\u548c\u5404\u79cd\u5c3a\u5bf8\u7684\u622a\u56fe<\/li>\n<li>\u8bbe\u7f6e\u5b9a\u4ef7\u548c\u5206\u53d1\u8303\u56f4<\/li>\n<li>\u63d0\u4ea4\u5ba1\u6838<\/li>\n<\/ul>\n<ol start=\"2\">\n<li><strong>App Store\u4e0a\u67b6<\/strong><\/li>\n<\/ol>\n<ul>\n<li>\u52a0\u5165Apple\u5f00\u53d1\u8005\u8ba1\u5212\uff08\u5e74\u8d3999\u7f8e\u5143\uff09<\/li>\n<li>\u5728App Store Connect\u4e2d\u521b\u5efa\u5e94\u7528\u8bb0\u5f55<\/li>\n<li>\u4f7f\u7528Transporter\u6216Xcode\u4e0a\u4f20IPA\u6587\u4ef6<\/li>\n<li>\u586b\u5199\u5143\u6570\u636e\u5e76\u63d0\u4ea4\u5ba1\u6838<\/li>\n<\/ul>\n<p>\u4e94\u3001\u5e38\u89c1\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6848<\/p>\n<ol>\n<li>\n<p><strong>\u5e94\u7528\u88ab\u62d2\u600e\u4e48\u529e\uff1f<\/strong><br \/>\n\u4ed4\u7ec6\u9605\u8bfb\u5e94\u7528\u5546\u5e97\u7684\u62d2\u7edd\u7406\u7531\uff0c\u9488\u5bf9\u6027\u4fee\u6539\u540e\u91cd\u65b0\u63d0\u4ea4\u3002\u5e38\u89c1\u95ee\u9898\u5305\u62ec\u9690\u79c1\u653f\u7b56\u4e0d\u5b8c\u5584\u3001\u6743\u9650\u8bf4\u660e\u4e0d\u6e05\u6670\u7b49\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u591a\u5e73\u53f0UI\u9002\u914d\u95ee\u9898<\/strong><br \/>\n\u5229\u7528Flutter\u7684MediaQuery\u548cLayoutBuilder\u7b49\u5de5\u5177\u786e\u4fddUI\u5728\u4e0d\u540c\u8bbe\u5907\u4e0a\u8868\u73b0\u4e00\u81f4\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u6027\u80fd\u4f18<a href=\"https:\/\/appshangjia.yimenapp.com\/anzhuo-shangjia-1031.html\">\u600e\u4e48\u4e0a\u67b6\u5b89\u5353app<\/a>\u5316<\/strong><br \/>\n\u4f7f\u7528Flutter\u7684\u6027\u80fd\u5de5\u5177\u5206\u6790\u5e94\u7528\u6027\u80fd\uff0c\u4f18\u5316\u4e0d\u5fc5\u8981\u7684\u91cd\u5efa\u548c\u5185\u5b58\u4f7f\u7528\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u591a\u8bed\u8a00\u652f\u6301<\/strong><br \/>\n\u901a\u8fc7flutter_localizations\u63d2\u4ef6\u5b9e\u73b0\u56fd\u9645\u5316\uff0c\u8986\u76d6\u66f4\u5e7f\u6cdb\u7684\u7528\u6237\u7fa4\u3002<\/p>\n<\/li>\n<\/ol>\n<p>\u7ed3\u8bed<\/p>\n<p>Flutter\u9879\u76ee\u4e0a\u67b6APP\u867d\u7136\u6d89\u53ca\u591a\u4e2a\u73af\u8282\uff0c\u4f46\u53ea\u8981\u6309\u90e8\u5c31\u73ed\u5730\u5b8c\u6210\u6bcf\u4e2a\u6b65\u9aa4\uff0c\u5c31\u80fd\u987a\u5229\u5c06\u5e94\u7528\u53d1\u5e03\u5230\u5404\u5927\u5e94\u7528\u5546\u5e97\u3002\u5bf9\u4e8e\u6ca1\u6709\u7ecf\u9a8c\u6216\u5e0c\u671b\u8282\u7701\u65f6\u95f4\u7684\u5f00\u53d1\u8005\uff0c\u53ef\u4ee5\u8003\u8651\u5bfb\u6c42\u4e13\u4e1a\u7684\u4e0a\u67b6\u670d\u52a1\u652f\u6301\u3002<\/p>\n<p>\u4e00\u95e8APP\u4ee3\u4e0a\u67b6\u5e73\u53f0\u4e13\u6ce8APP\u4e0a\u67b6\u670d\u52a110\u5e74\uff0c\u63d0\u4f9bAPP\u4e0a\u67b6\u5168\u6d41\u7a0b\u670d\u52a1\uff0c\u5305\u62ecAPP\u5f00\u53d1\u8005\u8d44\u8d28\u534f\u52a9\uff0cAPP\u8f6f\u8457\u7533\u8bf7\uff0cAPP\u5907\u6848\u534f\u52a9\uff0cAPP\u9884\u5ba1\uff0cAPP\u88ab\u62d2\u89e3\u51b3\u65b9\u6848\u7b49\uff1b\u5305\u6210\u529f\uff0cAPP\u6ca1\u4e0a\u67b6\u6210\u529f\u5168\u989d\u9000\u6b3e\u4e0a\u67b6\u670d\u52a1\u8d39\u3002\u8ba9\u60a8\u7684APP\u8f7b\u677e\u5feb\u6377\u53d1\u5e03\u5230\u8c37\u6b4c\u5546\u5e97\uff0c\u82f9\u679cAPPstore\uff0c\u4ee5\u53ca\u56fd\u5185\u4e3b\u6d41\u5b89\u5353\u5546\u5e97\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Flutter\u9879\u76ee\u4e0a\u67b6APP\u5168\u6d41\u7a0b\u6307\u5357\uff1a\u4ece\u5f00\u53d1\u5230\u53d1\u5e03\u4e00\u6b65\u5230\u4f4d<br \/>\n\u5728\u5f53\u4eca\u79fb\u52a8\u5e94\u7528\u5f00\u53d1\u9886\u57df\uff0cFlutter\u4ee5\u5176\u8de8\u5e73\u53f0\u7684\u7279\u6027\u8d62\u5f97\u4e86\u4f17\u591a\u5f00\u53d1\u8005\u7684\u9752\u7750\u3002\u7136\u800c\uff0c\u8bb8\u591a\u5f00\u53d1\u8005\u5728\u5b8c\u6210Flutter\u9879\u76ee\u5f00\u53d1\u540e\uff0c\u5f80\u5f80\u5bf9\u4e0a\u67b6<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[562,789,802],"class_list":["post-69528","post","type-post","status-publish","format-standard","hentry","category-wwwinfo","tag-562","tag-789","tag-802"],"_links":{"self":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/69528","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/comments?post=69528"}],"version-history":[{"count":0,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/69528\/revisions"}],"wp:attachment":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/media?parent=69528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/categories?post=69528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/tags?post=69528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}