{"id":17122,"date":"2020-08-10T12:46:38","date_gmt":"2020-08-10T12:46:38","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=17122"},"modified":"2020-08-10T13:18:56","modified_gmt":"2020-08-10T13:18:56","slug":"stateful-and-stateless-widget-in-flutter","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/stateful-and-stateless-widget-in-flutter\/","title":{"rendered":"Stateful and Stateless widget in Flutter."},"content":{"rendered":"\n<p><span class=\"has-inline-color has-vivid-red-color\"><strong>Stateful Widget :-<\/strong><\/span> When 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> 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&#8217;s state changes, the state objects calls setState(), telling the framework to redraw the widget.<\/p>\n\n\n\n<p><span class=\"has-inline-color has-vivid-red-color\"><strong>Stateless :-<\/strong><\/span> A Stateless widget has no internal state to manage. <\/p>\n\n\n\n<p><strong>For Example :- <\/strong>Icon , IconButtons, Text , etc.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Stateful Widget :- When user interacts with an App and the widget change then it is called Stateful Widget. A Stateful widget is Dynamic. For Example :- When user click&#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":[],"class_list":["post-17122","post","type-post","status-publish","format-standard","hentry","category-flutter"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/17122","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=17122"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/17122\/revisions"}],"predecessor-version":[{"id":17124,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/17122\/revisions\/17124"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=17122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=17122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=17122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}