{"id":1140,"date":"2023-03-16T21:59:48","date_gmt":"2023-03-16T13:59:48","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1140"},"modified":"2023-03-16T21:59:55","modified_gmt":"2023-03-16T13:59:55","slug":"flutter-widget-row","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/16\/flutter-widget-row\/","title":{"rendered":"Flutter Widget\u4e4bRow"},"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 \/>\nRow\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/docs.flutter.io\/flutter\/widgets\/Row-class.html\">https:\/\/docs.flutter.io\/flutter\/widgets\/Row-class.html<\/a><\/p>\n<p><!-- more --><\/p>\n<pre><code class=\"language-dart\">import &#039;package:flutter\/material.dart&#039;;\n\nclass RowDemoPage extends StatefulWidget {\n  @override\n  State&lt;StatefulWidget&gt; createState() =&gt; new _RowDemoPageState();\n}\n\nclass _RowDemoPageState extends State&lt;RowDemoPage&gt; {\n  @override\n  Widget build(BuildContext context) {\n    return new Scaffold(\n      appBar: new AppBar(title: new Text(&#039;Row Page Demo&#039;),),\n      body: Center(\n\/\/        child: Row(\n\/\/          children: &lt;Widget&gt;[\n\/\/            Expanded(\n\/\/              child: Text(&#039;Deliver features faster&#039;, textAlign: TextAlign.center),\n\/\/            ),\n\/\/            Expanded(\n\/\/              child: Text(&#039;Craft beautiful UIs&#039;, textAlign: TextAlign.center),\n\/\/            ),\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: Row(\n          children: &lt;Widget&gt;[\n            const FlutterLogo(),\n            \/\/ const Text(&#039;Flutter\\&#039;s hot reload helps you quickly and easily experiment, build UIs, add features, and fix bug faster. Experience sub-second reload times, without losing state, on emulators, simulators, and hardware for iOS and Android.&#039;),\n            const Expanded(\n              child: Text(&#039;Flutter\\&#039;s hot reload helps you quickly and easily experiment, build UIs, add features, and fix bug faster. Experience sub-second reload times, without losing state, on emulators, simulators, and hardware for iOS and Android.&#039;),\n            ),\n            const Icon(Icons.sentiment_very_satisfied),\n          ],\n        )\n      ),\n    );\n  }\n}<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/www.yezhou.me\/AppBlog\/images\/Flutter\/Flutter_Widget_Row.png\" alt=\"Flutter Widget Row\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Widget\uff1ahttps:\/\/flutter.io\/docs\/development\/ui\/widgets R [&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-1140","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\/1140","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=1140"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1140\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}