{"id":11879,"date":"2025-01-27T07:16:02","date_gmt":"2025-01-27T07:16:02","guid":{"rendered":"https:\/\/www.bacancytechnology.com\/qanda\/?p=11879"},"modified":"2025-01-27T07:16:02","modified_gmt":"2025-01-27T07:16:02","slug":"flutter-scrollable-column","status":"publish","type":"post","link":"https:\/\/www.bacancytechnology.com\/qanda\/flutter\/flutter-scrollable-column","title":{"rendered":"Flutter &#8211; How to Make a Column Screen Scrollable"},"content":{"rendered":"<p>To implement this functionality and fix overflow issues, we wrap the <strong>Column<\/strong> widget with the <strong>SingleChildScrollView<\/strong> widget.<\/p>\n<p>In the example below, we use the <strong>SingleChildScrollView<\/strong> widget and pass a Column widget which contains multiple TextField widgets.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"lighttpd\">class MyForm extends StatelessWidget {\r\n const MyForm({super.key});\r\n @override\r\n Widget build(BuildContext context) {\r\n   return const SingleChildScrollView(\r\n     padding: EdgeInsets.symmetric(horizontal: 16.0),\r\n     child: Column(\r\n       mainAxisSize: MainAxisSize.min,\r\n       children: [\r\n         TextField(\r\n           decoration: InputDecoration(labelText: 'Enter text 1'),\r\n         ),\r\n         SizedBox(height: 20),\r\n         TextField(\r\n           decoration: InputDecoration(labelText: 'Enter text 2'),\r\n         ),\r\n         SizedBox(height: 20),\r\n         TextField(\r\n           decoration: InputDecoration(labelText: 'Enter text 3'),\r\n         ),\r\n         SizedBox(height: 20),\r\n         TextField(\r\n           decoration: InputDecoration(labelText: 'Enter text 4'),\r\n         ),\r\n         SizedBox(height: 20),\r\n         TextField(\r\n           decoration: InputDecoration(labelText: 'Enter text 5'),\r\n         ),\r\n         SizedBox(height: 20),\r\n         TextField(\r\n           decoration: InputDecoration(labelText: 'Enter text 6'),\r\n         ),\r\n         SizedBox(height: 20),\r\n         TextField(\r\n           decoration: InputDecoration(labelText: 'Enter text 7'),\r\n         ),\r\n         SizedBox(height: 20),\r\n         TextField(\r\n           decoration: InputDecoration(labelText: 'Enter text 8'),\r\n         ),\r\n         SizedBox(height: 20),\r\n         TextField(\r\n           decoration: InputDecoration(labelText: 'Enter text 9'),\r\n         ),\r\n       ],\r\n     ),\r\n   );\r\n }\r\n}\r\n<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignleft size-large wp-image-11881\" src=\"https:\/\/assets.bacancytechnology.com\/qanda\/wp-content\/uploads\/2025\/01\/27071510\/output-1-473x1024.png\" alt=\"output-1\" width=\"473\" height=\"1024\" srcset=\"https:\/\/assets.bacancytechnology.com\/qanda\/wp-content\/uploads\/2025\/01\/27071510\/output-1-473x1024.png 473w, https:\/\/assets.bacancytechnology.com\/qanda\/wp-content\/uploads\/2025\/01\/27071510\/output-1-138x300.png 138w, https:\/\/assets.bacancytechnology.com\/qanda\/wp-content\/uploads\/2025\/01\/27071510\/output-1-768x1664.png 768w, https:\/\/assets.bacancytechnology.com\/qanda\/wp-content\/uploads\/2025\/01\/27071510\/output-1-709x1536.png 709w, https:\/\/assets.bacancytechnology.com\/qanda\/wp-content\/uploads\/2025\/01\/27071510\/output-1.png 945w\" sizes=\"(max-width: 473px) 100vw, 473px\" \/><img decoding=\"async\" class=\"alignright size-large wp-image-11882\" src=\"https:\/\/assets.bacancytechnology.com\/qanda\/wp-content\/uploads\/2025\/01\/27071513\/output-2-473x1024.png\" alt=\"output-2\" width=\"473\" height=\"1024\" srcset=\"https:\/\/assets.bacancytechnology.com\/qanda\/wp-content\/uploads\/2025\/01\/27071513\/output-2-473x1024.png 473w, https:\/\/assets.bacancytechnology.com\/qanda\/wp-content\/uploads\/2025\/01\/27071513\/output-2-138x300.png 138w, https:\/\/assets.bacancytechnology.com\/qanda\/wp-content\/uploads\/2025\/01\/27071513\/output-2-768x1664.png 768w, https:\/\/assets.bacancytechnology.com\/qanda\/wp-content\/uploads\/2025\/01\/27071513\/output-2-709x1536.png 709w, https:\/\/assets.bacancytechnology.com\/qanda\/wp-content\/uploads\/2025\/01\/27071513\/output-2.png 945w\" sizes=\"(max-width: 473px) 100vw, 473px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To implement this functionality and fix overflow issues, we wrap the Column widget with the SingleChildScrollView widget. In the example below, we use the SingleChildScrollView widget and pass a Column widget which contains multiple TextField widgets. class MyForm extends StatelessWidget { const MyForm({super.key}); @override Widget build(BuildContext context) { return const SingleChildScrollView( padding: EdgeInsets.symmetric(horizontal: 16.0), child: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":11880,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[15],"tags":[],"class_list":["post-11879","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-flutter"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/posts\/11879"}],"collection":[{"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/comments?post=11879"}],"version-history":[{"count":2,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/posts\/11879\/revisions"}],"predecessor-version":[{"id":11884,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/posts\/11879\/revisions\/11884"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/media\/11880"}],"wp:attachment":[{"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/media?parent=11879"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/categories?post=11879"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/tags?post=11879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}