{"id":73645,"date":"2020-09-09T09:09:50","date_gmt":"2020-09-09T09:09:50","guid":{"rendered":"https:\/\/blog.jetbrains.com\/?p=73645"},"modified":"2020-09-24T06:32:17","modified_gmt":"2020-09-24T06:32:17","slug":"cross-platform-development-using-ktor-and-flutter","status":"publish","type":"post","link":"https:\/\/blog.jetbrains.com\/zh-hans\/2020\/09\/09\/cross-platform-development-using-ktor-and-flutter\/","title":{"rendered":"\u7f51\u7edc\u7814\u8ba8\u4f1a\uff1aFlutter x Ktor \u6253\u9020\u8de8\u5e73\u53f0\u5168\u7aef\u5e94\u7528"},"content":{"rendered":"\u8de8\u5e73\u53f0\u7684\u4e3b\u9898\u4e00\u76f4\u90fd\u5f88\u706b\uff01\u8eab\u4e3a\u5f00\u53d1\u8005\uff0c\u65e0\u4e0d\u8ffd\u6c42\u300c\u4e00\u6b21\u7f16\u5199\uff0c\u5230\u5904\u8fd0\u884c\u300d\u7684\u76ee\u6807\u3002\u4ee5\u5f53\u7ea2\u6280\u672f\u6765\u770b\uff0cFlutter \u5728\u79fb\u52a8\u7aef\u6709\u7740\u4e00\u81f4\u7684 UI \u8868\u73b0\uff0c\u53ea\u8981\u4e00\u4e2a Code Base \u5c31\u80fd\u5199\u51fa iOS \u53ca Android \u5e73\u53f0\u7684 App\u3002\u800c Kotlin \u5728\u670d\u52a1\u5668\u7aef\u901a\u8fc7\u4e0e JVM \u76f8\u5bb9\uff0c\u642d\u914d JetBrains \u5b98\u65b9\u4eb2\u81ea\u6253\u9020\u7684 Ktor \u6846\u67b6\u3001\u7b80\u6d01\u7684\u4ee3\u7801\uff0c\u540c\u6837\u4e00\u6b21\u7f16\u5199\u5c31\u80fd\u5728\u591a\u4e2a\u5e73\u53f0\u8fd0\u884c\u3002\n\u82e5\u6211\u4eec\u628a\u8fd9\u4e24\u4e2a\u6280\u672f\u4e32\u8d77\u6765\uff0c\u6253\u9020\u4e00\u4e2a\u8de8\u5e73\u53f0\u7684\u5168\u7aef\u5e94\u7528\u4e0d\u77e5\u662f\u4ec0\u4e48\u6837\u7684\u5149\u666f\uff1f\n\n\u5c31\u6765\u5b9e\u9a8c\u4e00\u4e0b\u7528 Flutter \u52a0\u4e0a Ktor \u6253\u9020\u8de8\u5e73\u53f0\u5168\u7aef\u5e94\u7528\u7684\u611f\u89c9\u5427\uff01\u5728 9\/24 (\u56db) 21:00-22:00 \u9080\u8bf7\u5230\u6765\u81ea flutter.cn \u793e\u533a\u7684\u946b\u78ca\u4e0e\u5723\u4f51\u4e00\u8d77\u8fdb\u884c\u7ebf\u4e0a\u6280\u672f\u5206\u4eab\u3002\u5728\u8fd9\u573a\u5206\u4eab\u91cc\uff0c\u946b\u78ca\u5c06\u4f1a\u5e26\u7740\u5927\u5bb6\u7528 Flutter \u7f16\u5199\u4e00\u4e2a\u65e5\u8bb0\u7684 App\uff0c\u800c\u5723\u4f51\u5219\u7528 Ktor \u5b9e\u73b0\u4e00\u4e2a\u540e\u7aef API\uff0c\u8ba9\u5927\u5bb6\u53ef\u4ee5\u4eb2\u773c\u770b\u5230\u4ece\u524d\u7aef\u5230\u540e\u7aef\u7684\u6574\u4f53\u5f00\u53d1\u6d41\u7a0b\u3002\u542c\u5b8c\u8fd9\u573a\u5206\u4eab\u540e\uff0c\u60a8\u5c06\u5bf9\u5168\u7aef\u5f00\u53d1\u6709\u4e00\u4e2a\u57fa\u672c\u7684\u6982\u5ff5\uff0c\u5e76\u5b66\u4f1a\u4f7f\u7528 Flutter \u5b9e\u4f5c UI\u3001\u7ba1\u7406\u72b6\u6001\u3001\u53d1\u9001 HTTP Request\uff0c\u4ee5\u53ca\u7528 Kotlin \u6253\u9020 Web API\u3001\u96c6\u5408 Exposed SQL \u5e93\u4e32\u63a5\u8d44\u6599\u5e93\u3002\u6253\u9020\u8de8\u5e73\u53f0\u5e94\u7528\u66f4\u9ad8\u6548\uff01\n\u672c\u6b21\u7814\u8ba8\u4f1a\u5c06\u4ee5\u817e\u8baf\u4f1a\u8bae\u76f4\u64ad\uff0c\u6f14\u793a\u5185\u5bb9\u5168\u7a0b\u5f55\u5f71\uff0c\u5e76\u5728\u4f1a\u540e\u516c\u5e03\u89c6\u9891\uff0c\u76f8\u5173\u6750\u6599\u4e5f\u4f1a\u53d1\u9001\u81f3\u4e0e\u4f1a\u8005\u90ae\u7bb1\uff0c\u8bf7\u9884\u5148\u62a5\u540d\u4ee5\u53d6\u5f97\u4f1a\u8bae\u5ba4\u94fe\u63a5\u3002\n\u7acb\u5373\u6ce8\u518c\u53c2\u52a0\n\u5609\u5bbe\u7b80\u4ecb\n\u8303\u5723\u4f51 - \u6280\u672f\u5e03\u9053\u5e08 @JetBrains\n\n\u5723\u4f51\u662f JetBrains \u6280\u672f\u5e03\u9053\u5e08\uff0c\u8d1f\u8d23\u63a8\u5e7f JetBrains \u76f8\u5173\u6280\u672f\u4e0e\u4ea7\u54c1\uff0c\u5305\u62ec\uff1aKotlin \u7f16\u7a0b\u8bed\u8a00\u3001 IntelliJ IDEA \u7cfb\u5217 IDE \u53ca YouTrack\u3001TeamCity\u3001Upsource \u7b49\u56e2\u961f\u5408\u4f5c\u89e3\u51b3\u65b9\u6848\uff0c\u534f\u52a9\u5f00\u53d1\u8005\u5584\u7528\u5de5\u5177\u8f85\u52a9\u6765\u63d0\u5347\u751f\u4ea7\u529b\uff0c\u540c\u65f6\u7ef4\u62a4\u4ee3\u7801\u54c1\u8d28\u3002\n\u738b\u946b\u78ca - Flutter \u5de5\u7a0b\u5e08 @\u6ef4\u6ef4\u51fa\u884c\n\n\u946b\u78ca\u662f\u6ef4\u6ef4\u51fa\u884c Flutter \u5de5\u7a0b\u5e08\uff0c\u6709\u7740\u4e24\u5e74 Flutter \u5f00\u53d1\u7ecf\u9a8c\uff0c\u540c\u6642\u4e5f\u662f flutter.cn &amp; dart.cn \u4e2d\u6587\u6587\u6863\u4e3b\u8981\u7ef4\u62a4\u8005\u4ee5\u53ca Flutter SDK \u8d21\u732e\u8005\u4e4b\u4e00\u3002\u9664\u4e86\u79ef\u6781\u63a8\u5e7f Flutter \u6280\u672f\u5916\uff0c\u4e5f\u5728\u81ea\u5df1\u7684\u535a\u5ba2\u4e0a\u5206\u4eab\u76f8\u5173\u4e3b\u9898\uff0c\u540c\u65f6\u63a2\u7d22 Flutter \u5e94\u7528\u67b6\u6784\u7684\u6700\u4f73\u5b9e\u8df5\u3002","protected":false},"excerpt":{"rendered":"\u8de8\u5e73\u53f0\u7684\u4e3b\u9898\u4e00\u76f4\u90fd\u5f88\u706b\uff01\u8eab\u4e3a\u5f00\u53d1\u8005\uff0c\u65e0\u4e0d\u8ffd\u6c42\u300c\u4e00\u6b21\u7f16\u5199\uff0c\u5230\u5904\u8fd0\u884c\u300d\u7684\u76ee\u6807\u3002\u4ee5\u5f53\u7ea2\u6280\u672f\u6765\u770b\uff0cFlutter \u5728\u79fb\u52a8\u7aef\u6709\u7740\u4e00\u81f4\u7684 UI \u8868\u73b0\uff0c\u53ea\u8981\u4e00\u4e2a Code Base \u5c31\u80fd\u5199\u51fa iOS \u53ca Android \u5e73\u53f0\u7684 App\u3002\u800c Kotlin \u5728\u670d\u52a1\u5668\u7aef\u901a\u8fc7\u4e0e JVM \u76f8\u5bb9\uff0c\u642d\u914d JetBrains \u5b98\u65b9\u4eb2\u81ea\u6253\u9020\u7684 Ktor \u6846\u67b6\u3001\u7b80\u6d01\u7684\u4ee3\u7801\uff0c\u540c\u6837\u4e00\u6b21\u7f16\u5199\u5c31\u80fd\u5728\u591a\u4e2a\u5e73\u53f0\u8fd0\u884c\u3002\n\u82e5\u6211\u4eec\u628a\u8fd9\u4e24\u4e2a\u6280\u672f\u4e32\u8d77\u6765","protected":false},"author":{"name":"\u8303\u5723\u4f51","link":"https:\/\/blog.jetbrains.com\/zh-hans\/author\/shengyou-fanjetbrains-com"},"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[],"tags":[4974,4968,21,4292,4975],"cross-post-tag":[],"acf":[],"featured_image":null,"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/posts\/73645"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/users\/1069"},{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/comments?post=73645"}],"version-history":[{"count":2,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/posts\/73645\/revisions"}],"predecessor-version":[{"id":78352,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/posts\/73645\/revisions\/78352"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media?parent=73645"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/categories?post=73645"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/tags?post=73645"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/cross-post-tag?post=73645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}