{"id":2065,"date":"2022-04-07T14:39:06","date_gmt":"2022-04-07T14:39:06","guid":{"rendered":"https:\/\/mdr.foobrdigital.com\/?p=2065"},"modified":"2022-04-07T14:39:06","modified_gmt":"2022-04-07T14:39:06","slug":"body","status":"publish","type":"post","link":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/2022\/04\/07\/body\/","title":{"rendered":"Body"},"content":{"rendered":"\n<p><strong>2. body:<\/strong>\u00a0It is the other primary and required property of this widget, which will\u00a0<strong>display the main content in the Scaffold<\/strong>. It signifies the place below the appBar and behind the floatingActionButton &amp; drawer. The widgets inside the body are positioned at the top-left of the available space by default. See the below code:<a href=\"https:\/\/www.javatpoint.com\/flutter-scaffold#\"><\/a><a href=\"https:\/\/www.javatpoint.com\/flutter-scaffold#\"><\/a><a href=\"https:\/\/www.javatpoint.com\/flutter-scaffold#\"><\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Widget build(BuildContext context) {   \nreturn Scaffold(   \n    appBar: AppBar(   \n    title: Text('First Flutter Application'),   \n    ),   \n    body: Center(   \n    child: Text(\"Welcome to Javatpoint\",   \n        style: TextStyle( color: Colors.black, fontSize: 30.0,   \n        ),   \n         ),   \n    ),  \n}  <\/code><\/pre>\n\n\n\n<p>In the above code, we have displayed a text&nbsp;<strong>&#8220;Welcome to Javatpoint!!&#8221;<\/strong>&nbsp;in the body attribute. This text is aligned in the&nbsp;<strong>center<\/strong>&nbsp;of the page by using the&nbsp;<strong>Center widget<\/strong>. Here, we have also styled the text by using the&nbsp;<strong>TextStyle<\/strong>&nbsp;widget, such as color, font size, etc.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>2. body:\u00a0It is the other primary and required property of this widget, which will\u00a0display the main content in the Scaffold. It signifies the place below the appBar and behind the floatingActionButton &amp; drawer. The widgets inside the body are positioned at the top-left of the available space by default. See the below code: In the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[305],"tags":[],"_links":{"self":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/2065"}],"collection":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/comments?post=2065"}],"version-history":[{"count":0,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/2065\/revisions"}],"wp:attachment":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/media?parent=2065"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/categories?post=2065"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/tags?post=2065"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}