{"id":237,"date":"2023-03-31T08:52:54","date_gmt":"2023-03-31T00:52:54","guid":{"rendered":"https:\/\/www.aqrboyblog.top\/?p=237"},"modified":"2023-04-03T09:20:26","modified_gmt":"2023-04-03T01:20:26","slug":"flutter-window%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83","status":"publish","type":"post","link":"https:\/\/www.aqrboyblog.top\/?p=237","title":{"rendered":"Flutter Window\u5f00\u53d1\u73af\u5883"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\" id=\"get-the-flutter-sdk\">\u83b7\u53d6 Flutter SDK<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u70b9\u51fb\u4e0b\u65b9\u7684\u5b89\u88c5\u5305\uff0c\u83b7\u53d6 stable \u53d1\u884c\u901a\u9053\u7684 Flutter SDK \u6700\u65b0\u7248\u672c\uff1a<a href=\"https:\/\/storage.flutter-io.cn\/flutter_infra_release\/releases\/stable\/windows\/flutter_windows_3.7.9-stable.zip\">flutter_windows_3.7.9-stable.zip<\/a>\u8981\u67e5\u770b\u5176\u4ed6\u53d1\u884c\u901a\u9053\u548c\u4ee5\u5f80\u7684\u7248\u672c\uff0c\u8bf7\u53c2\u9605&nbsp;<a href=\"https:\/\/flutter.cn\/docs\/development\/tools\/sdk\/releases\">SDK \u7248\u672c\u5217\u8868<\/a>&nbsp;\u9875\u9762\u3002<\/li>\n\n\n\n<li>\u5c06\u538b\u7f29\u5305\u89e3\u538b\uff0c\u7136\u540e\u628a\u5176\u4e2d\u7684\u00a0<code>flutter<\/code>\u00a0\u76ee\u5f55\u6574\u4e2a\u653e\u5728\u4f60\u60f3\u653e\u7f6e Flutter SDK \u7684\u8def\u5f84\u4e2d\uff08\u4f8b\u5982\u00a0<code>C:\\src\\flutter<\/code>\uff09\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u5982\u679c\u4f60\u4e0d\u60f3\u5b89\u88c5\u6307\u5b9a\u7248\u672c\u7684\u5b89\u88c5\u5305\u3002\u53ef\u4ee5\u5ffd\u7565\u6b65\u9aa4 1 \u548c 2\u3002\u4ece GitHub \u4e0a\u7684\u00a0<a href=\"https:\/\/github.com\/flutter\/flutter\">Flutter repo<\/a>\u00a0\u83b7\u53d6\u6e90\u4ee3\u7801\uff0c\u5e76\u6839\u636e\u9700\u8981\uff0c\u5207\u6362\u5230\u6307\u5b9a\u7684\u5206\u652f\u6216\u6807\u7b7e\u3002\u4f8b\u5982\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/flutter\/flutter.git -b stable<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u66f4\u65b0 path \u73af\u5883\u53d8\u91cf<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5728\u5f00\u59cb\u83dc\u5355\u7684\u641c\u7d22\u529f\u80fd\u952e\u5165\u300cenv\u300d\uff0c\u7136\u540e\u9009\u62e9&nbsp;<strong>\u7f16\u8f91\u7cfb\u7edf\u73af\u5883\u53d8\u91cf<\/strong>\u3002<\/li>\n\n\n\n<li>\u5728\u00a0<strong>\u7528\u6237\u53d8\u91cf<\/strong>\u00a0\u4e00\u680f\u4e2d\uff0c\u68c0\u67e5\u662f\u5426\u6709\u00a0<strong>Path<\/strong>\u00a0\u8fd9\u4e2a\u6761\u76ee\uff1a\n<ul class=\"wp-block-list\">\n<li>\u5982\u679c\u5b58\u5728\u8fd9\u4e2a\u6761\u76ee\uff0c\u4ee5&nbsp;<code>;<\/code>&nbsp;\u5206\u9694\u5df2\u6709\u7684\u5185\u5bb9\uff0c\u52a0\u5165&nbsp;<code>flutter\\bin<\/code>&nbsp;\u76ee\u5f55\u7684\u5b8c\u6574\u8def\u5f84\u3002<\/li>\n\n\n\n<li>\u5982\u679c\u4e0d\u5b58\u5728\u7684\u8bdd\uff0c\u5728\u7528\u6237\u73af\u5883\u53d8\u91cf\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684&nbsp;<code>Path<\/code>&nbsp;\u53d8\u91cf\uff0c\u7136\u540e\u5c06&nbsp;<code>flutter\\bin<\/code>&nbsp;\u6240\u5728\u7684\u5b8c\u6574\u8def\u5f84\u4f5c\u4e3a\u65b0\u53d8\u91cf\u7684\u503c\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u8fd0\u884c\u00a0<code>flutter doctor<\/code><\/h3>\n\n\n\n<p>\u4e0a\u8ff0\u547d\u4ee4\u4f1a\u68c0\u67e5\u4f60\u7684\u73b0\u6709\u73af\u5883\uff0c\u5e76\u5c06\u68c0\u6d4b\u7ed3\u679c\u4ee5\u62a5\u544a\u5f62\u5f0f\u5448\u73b0\u51fa\u6765\u3002\u4ed4\u7ec6\u9605\u8bfb\u5b83\u663e\u793a\u7684\u5185\u5bb9\uff0c\u68c0\u67e5\u662f\u5426\u6709\u5c1a\u672a\u5b89\u88c5\u7684\u8f6f\u4ef6\u6216\u662f\u6709\u5176\u4ed6\u7684\u6b65\u9aa4\u9700\u8981\u5b8c\u6210\uff08\u901a\u5e38\u4f1a\u4ee5<strong>\u7c97\u4f53<\/strong>\u5448\u73b0\uff09\u3002<\/p>\n\n\n\n<p>\u4f8b\u5982\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;-] Android toolchain - develop for Android devices\n    \u2022 Android SDK at D:\\Android\\sdk\n    \u2717 Android SDK is missing command line tools; download from https:\/\/goo.gl\/XxQghQ\n    \u2022 Try re-installing or updating your Android SDK,\n      visit https:\/\/flutter.cn\/docs\/setup\/#android-setup for detailed instructions.\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b89\u88c5 VS Code<\/h3>\n\n\n\n<p>VS Code \u662f\u4e00\u4e2a\u53ef\u4ee5\u8fd0\u884c\u548c\u8c03\u8bd5 Flutter \u7684\u8f7b\u91cf\u7ea7\u7f16\u8f91\u5668\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/code.visualstudio.com\/\">VS Code<\/a>\uff0c\u6700\u65b0\u7a33\u5b9a\u7248\u672c<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-the-flutter-and-dart-plugins\">\u5b89\u88c5 Flutter \u548c Dart \u63d2\u4ef6<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u6253\u5f00 VS Code\u3002<\/li>\n\n\n\n<li>\u6253\u5f00&nbsp;<strong>View &gt; Command Palette\u2026<\/strong>\u3002<\/li>\n\n\n\n<li>\u8f93\u5165\u300cinstall\u300d\uff0c\u7136\u540e\u9009\u62e9&nbsp;<strong>Extensions: Install Extensions<\/strong>\u3002<\/li>\n\n\n\n<li>\u5728\u6269\u5c55\u641c\u7d22\u8f93\u5165\u6846\u4e2d\u8f93\u5165\u300cflutter\u300d\uff0c\u7136\u540e\u5728\u5217\u8868\u4e2d\u9009\u62e9&nbsp;<strong>Flutter<\/strong>&nbsp;\u5e76\u5355\u51fb&nbsp;<strong>Install<\/strong>\u3002\u6b64\u8fc7\u7a0b\u4e2d\u4f1a\u81ea\u52a8\u5b89\u88c5\u5fc5\u9700\u7684 Dart \u63d2\u4ef6\u3002<\/li>\n\n\n\n<li>\u70b9\u51fb&nbsp;<strong>Reload to Activate<\/strong>&nbsp;\u4ee5\u91cd\u65b0\u542f\u52a8 VS Code\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">\u901a\u8fc7 Flutter Doctor \u547d\u4ee4\u9a8c\u8bc1\u662f\u5426\u5b89\u88c5\u6210\u529f<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u6253\u5f00&nbsp;<strong>View &gt; Command Palette\u2026<\/strong>\u3002<\/li>\n\n\n\n<li>\u8f93\u5165 \u201cdoctor\u201d\uff0c\u9009\u62e9&nbsp;<strong>Flutter: Run Flutter Doctor<\/strong>\u3002<\/li>\n\n\n\n<li>\u6253\u5f00\u00a0<strong>OUTPUT<\/strong>\u00a0\u9762\u677f\u67e5\u770b\u662f\u5426\u6709\u9519\u8bef\uff0c\u786e\u4fdd\u5728\u4e0d\u540c\u7684\u8f93\u51fa\u9009\u9879 (Output Options) \u7684\u4e0b\u62c9\u5217\u8868\u4e2d\u9009\u62e9\u4e86 Flutter\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">\u521b\u5efaDemo \u6211\u5c1d\u8bd5\u7684\u662fweb\u5e94\u7528<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u521b\u5efaDemo\nflutter create my_app\n\/\/\u5207\u6362\u5230 web\u5b50\u6587\u4ef6 \u4f7f\u7528python\u8fd0\u884c\npython3 -m http.server 8080\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p class=\"text-justify\">\u83b7\u53d6 Flutter SDK \u5982\u679c\u4f60\u4e0d\u60f3\u5b89\u88c5 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-237","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=\/wp\/v2\/posts\/237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=237"}],"version-history":[{"count":1,"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=\/wp\/v2\/posts\/237\/revisions"}],"predecessor-version":[{"id":238,"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=\/wp\/v2\/posts\/237\/revisions\/238"}],"wp:attachment":[{"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}