{"id":1141,"date":"2023-03-16T22:00:50","date_gmt":"2023-03-16T14:00:50","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1141"},"modified":"2023-03-16T22:00:57","modified_gmt":"2023-03-16T14:00:57","slug":"flutter-widget-column","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/16\/flutter-widget-column\/","title":{"rendered":"Flutter Widget\u4e4bColumn"},"content":{"rendered":"<p>Widget\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/flutter.io\/docs\/development\/ui\/widgets\">https:\/\/flutter.io\/docs\/development\/ui\/widgets<\/a><br \/>\nColumn\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/docs.flutter.io\/flutter\/widgets\/Column-class.html\">https:\/\/docs.flutter.io\/flutter\/widgets\/Column-class.html<\/a><\/p>\n<p><!-- more --><\/p>\n<pre><code class=\"language-dart\">import &#039;package:flutter\/material.dart&#039;;\n\nclass ColumnDemoPage extends StatefulWidget {\n  @override\n  State&lt;StatefulWidget&gt; createState() =&gt; new _ColumnDemoPageState();\n}\n\nclass _ColumnDemoPageState extends State&lt;ColumnDemoPage&gt; {\n  @override\n  Widget build(BuildContext context) {\n    return new Scaffold(\n      appBar: new AppBar(title: new Text(&#039;Column Page Demo&#039;),),\n      body: Center(\n\/\/          child: Column(\n\/\/            children: &lt;Widget&gt;[\n\/\/              Text(&#039;Deliver features faster&#039;),\n\/\/              Text(&#039;Craft beautiful UIs&#039;),\n\/\/              Expanded(\n\/\/                child: FittedBox(\n\/\/                  fit: BoxFit.contain, \/\/ otherwise the logo will be tiny\n\/\/                  child: const FlutterLogo(),\n\/\/                ),\n\/\/              ),\n\/\/            ],\n\/\/          )\n      child: Column(\n        crossAxisAlignment: CrossAxisAlignment.center,\n        mainAxisSize: MainAxisSize.min,\n        children: &lt;Widget&gt;[\n          Text(&#039;We move under cover and we move as one&#039;),\n          Text(&#039;Through the night, we have one shot to live another day&#039;),\n          Text(&#039;We cannot let a stray gunshot give us away&#039;),\n          Text(&#039;We will fight up close, seize the moment and stay in it&#039;),\n          Text(&#039;It\\&#039;s either that or meet the business end of a bayonet&#039;),\n          Text(&#039;The code word is \\&#039;Rochambeau\\&#039;, dig me?&#039;),\n          Text(&#039;Rochambeau!&#039;, style: DefaultTextStyle.of(context).style.apply(fontSizeFactor: 2.0)),\n        ],\n      ),\n      ),\n    );\n  }\n}<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/www.yezhou.me\/AppBlog\/images\/Flutter\/Flutter_Widget_Column.png\" alt=\"Flutter Widget Column\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Widget\uff1ahttps:\/\/flutter.io\/docs\/development\/ui\/widgets C [&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":[305],"class_list":["post-1141","post","type-post","status-publish","format-standard","hentry","category-flutter","tag-flutter-widget"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1141","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=1141"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1141\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}