{"id":843,"date":"2024-07-01T14:42:52","date_gmt":"2024-07-01T14:42:52","guid":{"rendered":"https:\/\/www.cmsgalaxy.com\/blog\/?p=843"},"modified":"2024-07-01T16:10:03","modified_gmt":"2024-07-01T16:10:03","slug":"what-is-scaffold-in-flutter","status":"publish","type":"post","link":"https:\/\/www.cmsgalaxy.com\/blog\/what-is-scaffold-in-flutter\/","title":{"rendered":"What is &#8221;Scaffold()&#8221; in flutter"},"content":{"rendered":"\n<p>In Flutter, the <code>Scaffold<\/code> widget is a fundamental layout structure for implementing the basic visual structure of an app. It provides a framework for creating a typical app screen with a standard app bar, drawer, floating action button, bottom navigation bar, and other common elements. The <code>Scaffold<\/code> widget is often used as the main container for each screen of an app.<\/p>\n\n\n\n<p><code><strong>\/\/Constructor of Scaffold<\/strong><\/code><\/p>\n\n\n\n<p><code><strong>const <\/strong>Scaffold({<br>   Key key,<br>   <strong>this<\/strong>.appBar,<br>   <strong>this<\/strong>.body,<br>   <strong>this<\/strong>.floatingActionButton,<br>   <strong>this<\/strong>.floatingActionButtonLocation,<br>   <strong>this<\/strong>.floatingActionButtonAnimator,<br>   <strong>this<\/strong>.persistentFooterButtons,<br>   <strong>this<\/strong>.drawer,<br>   <strong>this<\/strong>.endDrawer,<br>   <strong>this<\/strong>.bottomNavigationBar,<br>   <strong>this<\/strong>.bottomSheet,<br>   <strong>this<\/strong>.backgroundColor,<br>   <strong>this<\/strong>.resizeToAvoidBottomPadding = <strong>true<\/strong>,<br>   <strong>this<\/strong>.primary = <strong>true<\/strong>,<br>})<\/code><\/p>\n\n\n\n<p>Scaffold contains various functionality from giving an appbar, a floating button, a drawer, background color, bottom navigation bar, footer buttons,body.\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Flutter, the Scaffold widget is a fundamental layout structure for implementing the basic visual structure of an app. It<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-843","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/posts\/843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/comments?post=843"}],"version-history":[{"count":1,"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/posts\/843\/revisions"}],"predecessor-version":[{"id":844,"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/posts\/843\/revisions\/844"}],"wp:attachment":[{"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/media?parent=843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/categories?post=843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/tags?post=843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}