{"id":1178,"date":"2023-03-16T22:44:28","date_gmt":"2023-03-16T14:44:28","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1178"},"modified":"2023-04-29T09:52:53","modified_gmt":"2023-04-29T01:52:53","slug":"flutter0control-height-setting-issue","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/16\/flutter0control-height-setting-issue\/","title":{"rendered":"Flutter\u4e2d\u63a7\u4ef6\u9ad8\u5ea6\u8bbe\u7f6e\u95ee\u9898"},"content":{"rendered":"<p>Flutter\u4e2d<code>RaisedButton<\/code>\u3001<code>FloatingActionButton<\/code>\u3001<code>FlatButton<\/code>\u3001<code>OutlineButton<\/code>\u56db\u4e2a\u6309\u94ae\u7b49\u63a7\u4ef6\u5747\u65e0\u9ad8\u5ea6\u8bbe\u7f6e\uff0c\u89e3\u51b3\u65b9\u5f0f\u5982\u4e0b\uff1a<\/p>\n<h2>\u4f7f\u7528\u6709\u9ad8\u5ea6\u7684Container\u5305\u88f9<\/h2>\n<p><!-- more --><\/p>\n<pre><code class=\"language-dart\">new Container(\n  height: 40.0,\n  child: new RaisedButton(onPressed: () {},\n    child: new Text(&quot;AppBlog.CN&quot;),\n    color: Colors.deepOrange,\n  ),\n),<\/code><\/pre>\n<blockquote>\n<p>Container\u8bbe\u7f6e\u9ad8\u5ea6\u5373\u53ef\u5b9e\u73b0\uff0cContainer\u7684\u5bbd\u5ea6\u4e0d\u4f1a\u5360\u6ee1\u7236\u5bb9\u5668\uff0c\u53ea\u4f1a\u968f\u7740\u91cc\u9762\u5b57\u4f53\u7684\u5bbd\u5ea6\u663e\u793a<\/p>\n<\/blockquote>\n<h2>\u4f7f\u7528Pading\u5305\u88f9<\/h2>\n<pre><code class=\"language-dart\">new Padding(padding: new EdgeInsets.fromLTRB(10.0, 20.0, 10.0, 20.0),\n  child: new Row(\n    children: &lt;Widget&gt;[\n      new Expanded(\n        child: new RaisedButton(\n          onPressed: () {},\n          \/\/\u901a\u8fc7\u63a7\u5236\u8fb9\u8ddd\u6765\u8bbe\u7f6e\u63a7\u4ef6\u7684\u9ad8\u5ea6\n          child: new Padding(padding: new EdgeInsets.fromLTRB(10.0, 10.0, 0.0, 10.0),\n            child: new Text(&quot;AppBlog.CN&quot;),\n          ),\n          color: Colors.deepOrange,\n        ),\n      ),\n    ],\n  ),\n),<\/code><\/pre>\n<blockquote>\n<p>Padding\u8bbe\u7f6e\u9ad8\u5ea6\uff0c\u5bbd\u5ea6\u4f1a\u5360\u6ee1<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Flutter\u4e2dRaisedButton\u3001FloatingActionButton\u3001FlatButton\u3001Ou [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[],"class_list":["post-1178","post","type-post","status-publish","format-standard","hentry","category-flutter"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1178"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1178\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}