{"id":18323,"date":"2025-06-30T16:46:28","date_gmt":"2025-06-30T08:46:28","guid":{"rendered":"https:\/\/blog.ywdevops.cn\/?p=18323"},"modified":"2025-06-30T17:16:25","modified_gmt":"2025-06-30T09:16:25","slug":"18323","status":"publish","type":"post","link":"https:\/\/blog.ywdevops.cn\/index.php\/2025\/06\/30\/18323\/","title":{"rendered":"flutter\u5b89\u88c5"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u7531\u4e8eFlutter\u4f1a\u540c\u65f6\u6784\u5efaAndroid\u548cIOS\u4e24\u4e2a\u5e73\u53f0\u7684\u53d1\u5e03\u5305\uff0c\u6240\u4ee5Flutter\u540c\u65f6\u4f9d\u8d56Android SDK\u548ciOS SDK\uff0c\u5728\u5b89\u88c5Flutter\u65f6\u4e5f\u9700\u8981\u5b89\u88c5\u76f8\u5e94\u5e73\u53f0\u7684\u6784\u5efa\u5de5\u5177\u548cSDK<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u3001\u4f7f\u7528\u955c\u50cf<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7531\u4e8e\u5728\u56fd\u5185\u8bbf\u95eeFlutter\u6709\u65f6\u53ef\u80fd\u4f1a\u53d7\u5230\u9650\u5236\uff0cFlutter\u5b98\u65b9\u4e3a\u4e2d\u56fd\u5f00\u53d1\u8005\u642d\u5efa\u4e86\u4e34\u65f6\u955c\u50cf\uff0c\u5927\u5bb6\u53ef\u4ee5\u5c06\u5982\u4e0b\u73af\u5883\u53d8\u91cf\u6dfb\u52a0\u5230\u5230\u7528\u6237\u73af\u5883\u53d8\u91cf\u4e2d\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>export PUB_HOSTED_URL=https:\/\/pub.flutter-io.cn\nexport FLUTTER_STORAGE_BASE_URL=https:\/\/storage.flutter-io.cn<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u6ce8\u610f\uff1a<\/strong>&nbsp;\u6b64\u955c\u50cf\u4e3a\u4e34\u65f6\u955c\u50cf\uff0c\u5e76\u4e0d\u80fd\u4fdd\u8bc1\u4e00\u76f4\u53ef\u7528\uff0c\u53ef\u4ee5\u53c2\u8003https:\/\/flutter.dev\/community\/china \u4ee5\u83b7\u5f97\u6709\u5173\u955c\u50cf\u670d\u52a1\u5668\u7684\u6700\u65b0\u52a8\u6001<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3001\u5728Windows\u4e0a\u642d\u5efaFlutter\u5f00\u53d1\u73af\u5883<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7cfb\u7edf\u73af\u5883\u8981\u6ee1\u8db3\u5982\u4e0b\u8981\u6c42\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u64cd\u4f5c\u7cfb\u7edf: Windows 7 \u6216\u66f4\u9ad8\u7248\u672c (64-bit)<\/li>\n\n\n\n<li>\u78c1\u76d8\u7a7a\u95f4: 10G<\/li>\n\n\n\n<li>\u5de5\u5177\uff1a<a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/scripting\/setup\/installing-windows-powershell#upgrading-existing-windows-powershell\" target=\"_blank\">PowerShell 5.0<\/a>\u6216\u66f4\u65b0\u7684\u7248\u672c\u3001Git<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">3\u3001\u83b7\u53d6Flutter SDK<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u53bbflutter\u5b98\u7f51\u4e0b\u8f7d\u5176\u6700\u65b0\u53ef\u7528\u7684\u5b89\u88c5\u5305\uff0c\u4e0b\u8f7d\u5730\u5740\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;flutter.dev\/docs\/development\/tools\/sdk\/releases<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e5f\u53ef\u4ee5\u53bbFlutter github\u9879\u76ee\u4e0b\u53bb\u4e0b\u8f7d\u5b89\u88c5\u5305\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;github.com\/flutter\/flutter\/releases<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c06\u5b89\u88c5\u5305zip\u89e3\u538b\u5230\u4f60\u60f3\u5b89\u88c5Flutter SDK\u7684\u8def\u5f84\uff0c\u5728Flutter\u5b89\u88c5\u76ee\u5f55\u7684<code>flutter<\/code>\u6587\u4ef6\u4e0b\u627e\u5230<code>flutter_console.bat<\/code>\uff0c\u53cc\u51fb\u8fd0\u884c\u5e76\u542f\u52a8<strong>flutter\u547d\u4ee4\u884c<\/strong>\uff0c\u63a5\u4e0b\u6765\uff0c\u4f60\u5c31\u53ef\u4ee5\u5728Flutter\u547d\u4ee4\u884c\u8fd0\u884cflutter\u547d\u4ee4\u4e86\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"660\" height=\"496\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2025\/06\/5-2.png\" alt=\"\" class=\"wp-image-18328\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2025\/06\/5-2.png 660w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2025\/06\/5-2-300x225.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2025\/06\/5-2-600x451.png 600w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">4\u3001\u5c06\u89e3\u538b\u540e\u7684flutter\/bin\u8def\u5f84\u6dfb\u52a0\u5230\u73af\u5883\u53d8\u91cf\u4e2d\uff0c\u8fd9\u6837\u76f4\u63a5\u5728cmd\u7a97\u53e3\u4e5f\u53ef\u4ee5\u6267\u884c\u4e86<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5\u3001\u6267\u884cflutter doctor\u547d\u4ee4\u53ef\u4ee5\u770b\u5230\u7f3a\u5c11\u54ea\u4e9b\u4f9d\u8d56\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"655\" height=\"403\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2025\/06\/6-3.png\" alt=\"\" class=\"wp-image-18333\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2025\/06\/6-3.png 655w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2025\/06\/6-3-300x185.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2025\/06\/6-3-600x369.png 600w\" sizes=\"auto, (max-width: 655px) 100vw, 655px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7531\u4e8eFlutter\u4f1a\u540c\u65f6\u6784\u5efaAndroid\u548cIOS\u4e24\u4e2a\u5e73\u53f0\u7684\u53d1\u5e03\u5305\uff0c\u6240\u4ee5Flutter\u540c\u65f6\u4f9d\u8d56Android  [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":18330,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"class_list":["post-18323","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":8}},"_links":{"self":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/18323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/comments?post=18323"}],"version-history":[{"count":8,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/18323\/revisions"}],"predecessor-version":[{"id":18335,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/18323\/revisions\/18335"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media\/18330"}],"wp:attachment":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media?parent=18323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/categories?post=18323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/tags?post=18323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}