{"id":17204,"date":"2020-08-12T13:25:55","date_gmt":"2020-08-12T13:25:55","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=17204"},"modified":"2020-08-12T13:27:15","modified_gmt":"2020-08-12T13:27:15","slug":"stateful-widget-in-flutter","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/stateful-widget-in-flutter\/","title":{"rendered":"Stateful Widget in Flutter."},"content":{"rendered":"\n<p><strong><span class=\"has-inline-color has-vivid-red-color\">Stateful Widget :-<\/span><\/strong>\u00a0When user interacts with an App and the widget change then it is called Stateful Widget. A Stateful widget is Dynamic.<\/p>\n\n\n\n<p><strong><em>For Example :-<\/em><\/strong>&nbsp;When user click on a button on App and text changes then it is called Stateful Widget.<\/p>\n\n\n\n<p>When the widget\u2019s state changes, the state objects calls setState(), telling the framework to redraw the widget.<\/p>\n\n\n\n<p>Write down the below code in main.dart file in your project.<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/SushantSinghRajput03\/53eeededb6e10c5b35a5f8af1c7a4bca.js\"><\/script>\n","protected":false},"excerpt":{"rendered":"<p>Stateful Widget :-\u00a0When user interacts with an App and the widget change then it is called Stateful Widget. A Stateful widget is Dynamic. For Example :-&nbsp;When user click on a&#8230; <\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[6331],"tags":[6203],"class_list":["post-17204","post","type-post","status-publish","format-standard","hentry","category-flutter","tag-flutter"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/17204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=17204"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/17204\/revisions"}],"predecessor-version":[{"id":17205,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/17204\/revisions\/17205"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=17204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=17204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=17204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}