{"id":445648,"date":"2021-04-19T16:39:43","date_gmt":"2021-04-19T08:39:43","guid":{"rendered":"http:\/\/4563.org\/?p=445648"},"modified":"2021-04-19T16:39:43","modified_gmt":"2021-04-19T08:39:43","slug":"%e5%85%b3%e4%ba%8e-flutter-%e9%80%82%e9%85%8d%e5%88%98%e6%b5%b7%e5%b1%8f%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=445648","title":{"rendered":"\u5173\u4e8e Flutter \u9002\u914d\u5218\u6d77\u5c4f\u7684\u95ee\u9898"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5173\u4e8e Flutter \u9002\u914d\u5218\u6d77\u5c4f\u7684\u95ee\u9898               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Plague <\/span>  <span><i><\/i> 11<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5e0c\u671b\u7ed9 Flutter \u5e94\u7528\u8bbe\u7f6e\u5168\u5c4f\u7684\u80cc\u666f\u56fe\u7247\uff0c\u4f46\u662f\u5218\u6d77\u5c4f\u90e8\u5206\u8986\u76d6\u4e0d\u5230\uff0c\u51fa\u73b0\u9ed1\u8fb9\uff0c\u8bf7\u95ee\u5404\u4f4d\u5927\u4f6c\u600e\u4e48\u89e3\u51b3 \ud83d\ude42<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/04\/20210420_607e4d015bdba.jpg\" alt=\"\u5173\u4e8e Flutter \u9002\u914d\u5218\u6d77\u5c4f\u7684\u95ee\u9898\" \/><\/p>\n<p>\u80cc\u666f\u662f\u901a\u8fc7<code>container<\/code>\u8bbe\u7f6e\u7684:<\/p>\n<pre><code>    return Container(       decoration: BoxDecoration(         image: DecorationImage(           image: AssetImage(this.dial_bg_image),           fit: BoxFit.cover,         ),       ),       child: Center(...)       ... <\/code><\/pre>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>6<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5652896\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : TomVista <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             safearea                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5652897\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : TomVista <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @TomVista \u62b1\u6b49\uff0c\u601d\u8def\u4e0d\u5bf9\uff0c\u9996\u5148\u770b ui debug\uff0c\u786e\u5b9a\u662f\u56fe\u7247\u7f29\u653e\u95ee\u9898\uff0c\u8fd8\u662f\u76d2\u5b50\u5927\u5c0f\u95ee\u9898                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5652898\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : TomVista <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @TomVista flutter \u5e03\u5c40\u7ea6\u675f\u5411\u4e0b\u4f20\u9012\uff0c\u4f60\u7ed9\u8fd9\u4e48\u4e00\u884c\uff0c\u4e0d\u597d\u8bf4\u95ee\u9898\u5728\u54ea\uff0c\u5148 debug \u770b\u4e00\u4e0b\u90a3\u91cc\u51fa\u95ee\u9898\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5652899\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Plague <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @TomVista \u6ca1\u770b\u51fa\u539f\u56e0\uff0c\u53ef\u80fd\u662f\u6211\u4e0d\u592a\u4f1a\u770b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5652900\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Plague <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Plague \u5e94\u8be5\u4e0d\u662f\u56fe\u7247\u7684\u539f\u56e0\uff0c\u56e0\u4e3a`fit: BoxFit.cover`\uff0c\u4e5f\u5e94\u8be5\u4e0d\u662f Container \u5927\u5c0f\u7684\u95ee\u9898\uff0c\u5373\u4fbf\u628a`width`\u8bbe\u7f6e\u7684\u975e\u5e38\u5927\uff0c\u4e5f\u4f9d\u7136\u6ca1\u6709\u4efb\u4f55\u6539\u53d8\u3002\u6240\u4ee5\u5e94\u8be5\u662f\u5176\u4ed6\u539f\u56e0\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5652901\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : loginbygoogle <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bbe\u7f6e\u9ed8\u8ba4 padding \u4e3a zero                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5173\u4e8e Flutter \u9002\u914d\u5218\u6d77\u5c4f\u7684&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/445648"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=445648"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/445648\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=445648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=445648"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=445648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}