Flutter Dart Tutorials: Building first Stateful widget App in Flutter #3.3

  Рет қаралды 48,381

Smartherd

Smartherd

5 жыл бұрын

Access 7000+ courses for 60 days FREE: pluralsight.pxf.io/c/1291657/...
Flutter tutorial for beginners to create your first Stateful Widget app in Android Studio. You'll learn how to create StatefulWidget subclass and create a State class for it. Override the required createState method and build method in those two classes respectively.
Next Video: • Flutter DropdownButton...
Previous Video: • Stateful vs. Stateless...
Video code: bit.ly/2VddNI9
Full Source code files: bit.ly/2NINczC .
.
Please donate and support my work
(If you think my free tutorials are better than paid ones :)
- Patreon: bit.ly/patreon-donate
- Paypal/Payoneer: sriyank123@gmail.com
- UPI (only for India): smartherd@okaxis
:: If you want to develop a website or a mobile app, email me your requirement at sriyank.siddhartha@gmail.com :: Free demos provided beforehand ::
- Access my premium courses: bit.ly/sriyank-courses
Free Programming courses:
- Ruby Programming: bit.ly/smyt-r
- Dart Programming: bit.ly/smyt-d
- Kotlin Programming: bit.ly/smyt-k
- Java Programming: bit.ly/smyt-j
- Kotlin Coroutines: bit.ly/smyt-coru
Free Flutter course:
- Flutter App Development: bit.ly/2Rg7EFR
Free Android courses:
- Android using Kotlin: bit.ly/smyt-ka
- Android using Java: bit.ly/smyt-ja
- Android Material Design: bit.ly/2SMJqU6
- Android Jetpack Architecture: bit.ly/yt-j
- Android Multiple Screen Support: bit.ly/smyt-mss
- Android Retrofit: bit.ly/2Ee6GHn
More free programming courses:
- bit.ly/smy-list
Check out my website:
- bit.ly/smartherd
Let's get in touch! [Sriyank Siddhartha]
LinkedIn: bit.ly/sriyank-linkedin
Facebook: bit.ly/smartherd-facebook
Instagram: bit.ly/sriyank-instagram
Twitter: bit.ly/sriyank-twitter
Github: bit.ly/smartherd-github
--- Thank you for your love and support ---

Пікірлер: 40
@Nithinjith1988
@Nithinjith1988 5 жыл бұрын
Good video series. I saw 2 people purposefully dislike all the videos without checking the content within it. It's too bad. This is a great informative video series for new technology. Keep going...
@xxxxxGhostBoyxxxxx
@xxxxxGhostBoyxxxxx 5 жыл бұрын
I learned a lot more in this 10 minutes video as compared to some hours tutorial i already went through -_-"
@royalbabu6766
@royalbabu6766 4 жыл бұрын
Might be because you have already watch hours of tutorials😂
@ahmedabed6652
@ahmedabed6652 3 жыл бұрын
@@royalbabu6766 haha absolutely!
@aresgod112
@aresgod112 5 жыл бұрын
Thank you for the tutorial helped me with understanding better the StatefulWidget
@vikasgoutam02
@vikasgoutam02 4 жыл бұрын
Unbelievable explanation itni complex bat itni easily smjha di Thanks bro
@anandhsivagami5967
@anandhsivagami5967 4 жыл бұрын
Thank you for the video. I was very confused about stateful widget before. This video gave me clear cut understanding of the stateful widget. I had been surfing all over the internet and none of them was understandable to me. Finally, I found this channel and it's too good👌👌👌 Kudos to the team
@lakshandersagwal
@lakshandersagwal 4 жыл бұрын
Learning in quarantine 👌👌
@irfanansari6448
@irfanansari6448 5 жыл бұрын
your way of explaining is good. Thank you.
@jessicahelenaramos6295
@jessicahelenaramos6295 4 жыл бұрын
Hey man, awesome playlist! I am really learning from zero pretty quickly thanks to you! Keep up the amazing work! You are the best! I will indeed seek for you in Udemy! More the worthy subscribe for your courses!
@gustavoreyes5915
@gustavoreyes5915 4 жыл бұрын
Wonderful explanation , go ahead , your doing well. Thank
@mastercheetos4422
@mastercheetos4422 5 жыл бұрын
Please explain about Context, thanks :)
@krishnakumarramachandran5888
@krishnakumarramachandran5888 5 жыл бұрын
I understood this StatefulWidget clearly.
@user-or7ji5hv8y
@user-or7ji5hv8y 3 жыл бұрын
Best explanation yet. Wow.
@if6086
@if6086 3 жыл бұрын
Excellent Tutorial. Congratulations!!!
@syedahmadfarooqgillani5936
@syedahmadfarooqgillani5936 3 жыл бұрын
Loved your video
@centraldemensagens
@centraldemensagens 3 жыл бұрын
Thank You Very Much.
@saravanarajacolan6728
@saravanarajacolan6728 5 жыл бұрын
Nice tutor video thank you for that first, one doubt in this session, when we call the setState function, as you told the whole widget is destroyed & recreated but how comes the textView value remain same (what we typed)?
@rinkeshsingh6457
@rinkeshsingh6457 3 жыл бұрын
My basic concept about flutter and mobile application, if cleared , reason only one this video series.
@bharatiwagh9499
@bharatiwagh9499 3 жыл бұрын
very nice video all cleared.....
@ritheshjarvis4177
@ritheshjarvis4177 3 жыл бұрын
Thanks man.
@robindegraaff2939
@robindegraaff2939 5 жыл бұрын
Thank you very much for the high-quality tutorials! I have two questions for you if you would like to answer them : 1. what is the purpose of the convention of writing the _FavoriteCityState with the"_" to keep it private to our library? 2. when using "onChanged" instead of "onSubmitted", does this mean that when we type a word, consisting of 5 letters for example, 5 widgets are destroyed and created? (-> is this bad for performance?)
@raul286162
@raul286162 5 жыл бұрын
From Dart Docs: Unlike Java, Dart doesn’t have the keywords public, protected, and private. If an identifier starts with an underscore (_), it’s private to its library. For details, see Libraries and visibility.
@nasirmehmood_
@nasirmehmood_ 4 жыл бұрын
awesome but have a question that we cannot change appbar during run time then why we put it in the stateful widget?
@darish155
@darish155 5 жыл бұрын
Awesome!!!!
@smartherd
@smartherd 5 жыл бұрын
Was waiting for your comment since morning 😉
@ANILTHOMAScherian
@ANILTHOMAScherian 5 жыл бұрын
Is it possible to add Bloc Concepts. Google recommends Bloc for building apps.
@ceoprotechbot4566
@ceoprotechbot4566 3 жыл бұрын
helpfull video
@haribabumanoharan5366
@haribabumanoharan5366 Жыл бұрын
why are we using underscore in the front of naming.. what is mean by that ?
@mokshmahajan6340
@mokshmahajan6340 5 жыл бұрын
The widget will be redrawn after all the code in the setState() body is executed?
@msa-msa-msa
@msa-msa-msa 4 жыл бұрын
Little confused, why isn't text field getting empty after submission, as you said it regenerates the entire UI.
@quovadis9900
@quovadis9900 5 жыл бұрын
i tried your code, then i saw this strange error on the logcat : com.example.flutter_app E/SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length. Any idea why this is happening ?
@chetandaulani2954
@chetandaulani2954 3 жыл бұрын
Actually the text widget is already executed with your bixt city is but as name is NULL there no text other than your bixt city is ,, after executing setState we have name ="mumbai" so it's new redrawn state will be your bixt city is mumbai
@austinjohn3156
@austinjohn3156 4 жыл бұрын
i am getting an exception. The app keeps pausing and i have to play it again like 3 times before it starts working normally. I get a methodchannel.invokemethod exception with like 18 more stacks. It works well on android studio but not on vs code.
@austinjohn3156
@austinjohn3156 4 жыл бұрын
ok i fixed it. thanks. your tutorials are the best
@karimovitche
@karimovitche 5 жыл бұрын
thanks a lot, I don't understand why we have to redraw AppBar, Title, TextField ... where the unique change is in our text?.
@smartherd
@smartherd 5 жыл бұрын
Because favcity is a widget object whose internal state has changed. So if any widget changes within the favcity widget you need to set state to reflect changes. Your query is why did we redraw entire favcity widget, why not just Text, we that's not possible. We cannot just redraw Text widget. We need to redraw whole favcity widget. If you just want to redraw Text widget then you might have to create a separate stateful widget that will contain only Text as child, which will lead to creating a lot of stateful widgets within stateful widget, which is practically not possible.
@Nithinjith1988
@Nithinjith1988 5 жыл бұрын
I have accepted your comment. But for a large application, redrawing the entire screen for each user input is not a good idea. For example, in a search screen, each search query will redraw the entire screen may cause a huge headache. I think we need to use some more OOPS concepts in here. Also, need to follow some design patterns guideline for building the widgets in a generic way.
@battleragecoc9411
@battleragecoc9411 4 жыл бұрын
Why do we use $ after the variables?
@souvikbera3067
@souvikbera3067 2 жыл бұрын
Its the expression so that the compiler know that its a variable name not a normal String
БАБУШКИН КОМПОТ В СОЛО
00:23
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 18 МЛН
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 58 МЛН
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
МЯТНАЯ ФАНТА
Рет қаралды 10 МЛН
Stateless vs Stateful Widgets - Flutter Explained - Level: Beginner
9:50
🔴 How to Use setState() Efficiently in Flutter || setState Tutorial
9:12
Techness With Hussain
Рет қаралды 2,1 М.
Flutter Basic Training - 12 Minute Bootcamp
12:09
Fireship
Рет қаралды 866 М.
БАБУШКИН КОМПОТ В СОЛО
00:23
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 18 МЛН