ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก
Hot reload?! | Decoding Flutter
ฝัง
- เผยแพร่เมื่อ 5 เม.ย. 2021
- We all know and love Flutter's Hot Reload, but why does it sometimes seem like hot reload isn't working? Learn how hot reload works, and when a hot restart is necessary instead!
Learn more about Hot Reload → goo.gle/3rVvMiz
Leave us suggestions for code to unravel in the comments below!
Watch more Decoding Flutter episodes → goo.gle/Decodin...
Don’t miss an episode, subscribe to Flutter → goo.gle/FlutterYT
Get started with Flutter → goo.gle/Flutter
Learn more about the Dart Language → goo.gle/2YF9OCi
#DecodingFlutter #Flutter #Developer
what the flutter 😂 😂 never gets old
Never!!!
And we keep learning new things almost everyday 😊
awesome! we need more video on flutter decode
I always wondered why sometimes hot reload didnt work, this is why. Even though I learned why it didnt work for a long time :)
This was short and helpful, hope there's more to come.
Need more videos like this from Flutter Team.
I've never been so love with a software development kit
Flutter flutters me 🥴
Cool format. Thanks
Flutter is love, flutter is life.
Damn so I was thinking the entire time my flutter is outdated or my my machine is broken lol
Fitz?
Already liked :)
Bruh😁
Actually when updating a code-generated localization string, I noticed reload doesn't work either and I need to restart debugging process at all.
Need decode on buildContext
BuildContext is just the Element. This API is invented to discourage you from using the Element directly. When you do stuff like "Theme.of(context)", flutter calls the "depend on widget of exact type" method (or something, I forgot its exact name) on the Element (which is the context you passed in), and looks up the nearest widget of that type (e.g. Theme) from the widget tree for you.
Thanks
Thanks for reply
Surely we are engaged with flutter
Thank you 감사합니다
nice explain, thanks!
So Flutter drops my client TCP/IP connection on hot reload, but why? Is there a way to code it without losing the connection? Thanks!
that guy mean "restart" not to be confused with "hot restart" (which means hot reload with deafault starting values, but with the same widget tree etc.)
So, explain this then if you would please.
Say I have two screens. Right now I'm on screen two. I make a change in initState() on screen two.
Then, I hot reload. After that, I Navigator.pop() to screen one. Then I tap a button to view screen two. Presto! I see my change. And yet, as you said, only the build methods are fired on hot reload. Is this because the dart code is replaced in the dart VM?
When you Navigator.pop() back to first screen, the second screen POPS out of the widget tree. After that when you push that second screen again with a button tap, it's actually a new instance of the second screen that gets added to the widget tree, so its initState and build methods get called again. It has nothing to do with the hot reload of the previous instance that you popped before. The previous instance was gone with the Navigator.pop()
@@mr.penguin6209Thank you for explaining! That makes a lot of sense
What the Flutter 😂
Wow ❤ Flutter is Awesome... Please do developers a favour by adding Live Reload to the next Flutter sdk, so that we can easily update our Apps, unlike publishing new application to App stores almost every 3/4weeks
Great explanation. 👌
Wish flutter had code push. It would make it the deafacto choice over React Native
I know only basics of Java and never successfully dev a native app. What if I wanted to skip it and learn Flutter instead? Do you people have any suggestions?
Yes go for Flutter, dart is very similar to java so you can pick up easily, and by using Flutter saves you PLENTY of development work.
Flutter is awesome. !
I learned a new English phrase
"What the flutter? or WTF"
Please tell me how do i recognize any language or multi-language text from image using flutter
But it it doesn't work on web since version 2.0. I always have to kill the app and run it again
Hot reload isn't supported for web yet, even before 2.0, so it's not a regression. When you do "hot reload" for web, it performs a "hot restart" instead...
@@1c72 I know but that doesn't work as well. It stucks doing the restart
What the FLUT
It will be good series as well
This was pretty good
It never works , had to hot restart all the time : 😭
it depends on what Android version running in your device
@@MustafaAlhadi i have latest android 11 and google pixel 2
@@faheemahmadofficial7701 it happens to me in Vscode. In Android Studio everything works fine.
First
Please improve