{"id":17381,"date":"2020-08-17T09:29:54","date_gmt":"2020-08-17T09:29:54","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=17381"},"modified":"2022-04-13T15:58:35","modified_gmt":"2022-04-13T15:58:35","slug":"how-to-add-input-section-to-mobile-app-in-flutter-using-dart-packages","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/how-to-add-input-section-to-mobile-app-in-flutter-using-dart-packages\/","title":{"rendered":"How to Add Input Section to Mobile App in Flutter using dart packages?"},"content":{"rendered":"\n<p>In this blog, I am going to explain that Add Input Section to Mobile App in Flutter. So, In this blog, I am going to use <strong>VS Code<\/strong> editor and create a Program and open main.dart and import<\/p>\n\n\n\n<p><strong>import &#8220;package:flutter\/material.dart&#8221;;<\/strong><\/p>\n\n\n\n<p>After that, I am using <strong>StatelessWidget<\/strong> and create a title like &#8220;<strong>Happy Journey<\/strong>&#8220;, theme and theme color <strong>primarySwatch<\/strong> color blue. After that using <strong>statefulWidget <\/strong>and create an input section with help decoration of <strong>InputDecoration<\/strong> and given some styling class and create a button using <strong>RaisedButton<\/strong> and for shown text, I am using a variable &#8220;<strong>myvar<\/strong>&#8220;. Whole Code mention below&#8211;<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/8fc644d2b7a13ff8fa724aa08b2f5a69.js\"><\/script>\n\n\n\n<p>In is Functionality When you type in input section then show input section word in default value which is assign upper side of Input like that below image.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/08\/input-section-flutter-485x1024.png\" alt=\"\" class=\"wp-image-17383\" width=\"270\" height=\"571\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/08\/input-section-flutter-485x1024.png 485w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/08\/input-section-flutter-142x300.png 142w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/08\/input-section-flutter-768x1621.png 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/08\/input-section-flutter-728x1536.png 728w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/08\/input-section-flutter-970x2048.png 970w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/08\/input-section-flutter.png 1080w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, I am going to explain that Add Input Section to Mobile App in Flutter. So, In this blog, I am going to use VS Code editor and&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[6331],"tags":[],"class_list":["post-17381","post","type-post","status-publish","format-standard","hentry","category-flutter"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/17381","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=17381"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/17381\/revisions"}],"predecessor-version":[{"id":17407,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/17381\/revisions\/17407"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=17381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=17381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=17381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}