ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

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

ความคิดเห็น • 44

  • @HijabiCoder
    @HijabiCoder 3 ปีที่แล้ว +41

    what the flutter 😂 😂 never gets old

    • @craftedapps
      @craftedapps 3 ปีที่แล้ว

      Never!!!
      And we keep learning new things almost everyday 😊

  • @physics.matter
    @physics.matter 3 ปีที่แล้ว +20

    awesome! we need more video on flutter decode

  • @ilkercankaya3779
    @ilkercankaya3779 3 ปีที่แล้ว +7

    I always wondered why sometimes hot reload didnt work, this is why. Even though I learned why it didnt work for a long time :)

  • @squirrelmanish
    @squirrelmanish 3 ปีที่แล้ว +3

    This was short and helpful, hope there's more to come.

  • @krishnakumarramachandran5888
    @krishnakumarramachandran5888 3 ปีที่แล้ว +2

    Need more videos like this from Flutter Team.

  • @argus.waikhom
    @argus.waikhom 3 ปีที่แล้ว +4

    I've never been so love with a software development kit
    Flutter flutters me 🥴

  • @leo_and_his_bikes
    @leo_and_his_bikes 3 ปีที่แล้ว +2

    Cool format. Thanks

  • @nafeewalee
    @nafeewalee 3 ปีที่แล้ว +1

    Flutter is love, flutter is life.

  • @kolya7921
    @kolya7921 3 ปีที่แล้ว +4

    Damn so I was thinking the entire time my flutter is outdated or my my machine is broken lol

  • @mhmzdev
    @mhmzdev 3 ปีที่แล้ว +7

    Fitz?
    Already liked :)

  • @Sominemo
    @Sominemo 3 ปีที่แล้ว +2

    Actually when updating a code-generated localization string, I noticed reload doesn't work either and I need to restart debugging process at all.

  • @thesnollygoster1477
    @thesnollygoster1477 3 ปีที่แล้ว +7

    Need decode on buildContext

    • @1c72
      @1c72 3 ปีที่แล้ว +2

      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.

    • @thesnollygoster1477
      @thesnollygoster1477 3 ปีที่แล้ว

      Thanks

    • @thesnollygoster1477
      @thesnollygoster1477 3 ปีที่แล้ว

      Thanks for reply
      Surely we are engaged with flutter

  • @JAICHANGPARK
    @JAICHANGPARK 3 ปีที่แล้ว +1

    Thank you 감사합니다

  • @trunghvbk
    @trunghvbk 3 ปีที่แล้ว

    nice explain, thanks!

  • @skythe83
    @skythe83 2 ปีที่แล้ว +1

    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!

  • @IvanNekoz
    @IvanNekoz 3 ปีที่แล้ว

    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.)

  • @IanSfirebirdflame
    @IanSfirebirdflame 3 ปีที่แล้ว +1

    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?

    • @mr.penguin6209
      @mr.penguin6209 3 ปีที่แล้ว +4

      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()

    • @IanSfirebirdflame
      @IanSfirebirdflame 3 ปีที่แล้ว +1

      @@mr.penguin6209Thank you for explaining! That makes a lot of sense

  • @WingsOfLuv27
    @WingsOfLuv27 3 ปีที่แล้ว +1

    What the Flutter 😂

  • @chisomemmanuel6160
    @chisomemmanuel6160 11 หลายเดือนก่อน

    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

  • @AdilRangila
    @AdilRangila 3 ปีที่แล้ว

    Great explanation. 👌

  • @SethuSenthil
    @SethuSenthil 3 ปีที่แล้ว +1

    Wish flutter had code push. It would make it the deafacto choice over React Native

  • @spspsp123
    @spspsp123 3 ปีที่แล้ว +1

    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?

    • @yiweima4412
      @yiweima4412 3 ปีที่แล้ว +1

      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.

  • @nbits7433
    @nbits7433 3 ปีที่แล้ว

    Flutter is awesome. !

  • @krtirtho
    @krtirtho 3 ปีที่แล้ว +3

    I learned a new English phrase
    "What the flutter? or WTF"

  • @prasaddhend5500
    @prasaddhend5500 3 ปีที่แล้ว

    Please tell me how do i recognize any language or multi-language text from image using flutter

  • @hsh2119
    @hsh2119 3 ปีที่แล้ว +2

    But it it doesn't work on web since version 2.0. I always have to kill the app and run it again

    • @1c72
      @1c72 3 ปีที่แล้ว +1

      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...

    • @hsh2119
      @hsh2119 3 ปีที่แล้ว

      @@1c72 I know but that doesn't work as well. It stucks doing the restart

  • @rifaldhiaw
    @rifaldhiaw 3 ปีที่แล้ว

    What the FLUT
    It will be good series as well

  • @AlbertoRodriguez-oe6jo
    @AlbertoRodriguez-oe6jo 3 ปีที่แล้ว

    This was pretty good

  • @faheemahmadofficial7701
    @faheemahmadofficial7701 3 ปีที่แล้ว

    It never works , had to hot restart all the time : 😭

    • @MustafaAlhadi
      @MustafaAlhadi 3 ปีที่แล้ว

      it depends on what Android version running in your device

    • @faheemahmadofficial7701
      @faheemahmadofficial7701 3 ปีที่แล้ว

      @@MustafaAlhadi i have latest android 11 and google pixel 2

    • @renanmendes35
      @renanmendes35 3 ปีที่แล้ว +1

      @@faheemahmadofficial7701 it happens to me in Vscode. In Android Studio everything works fine.

  • @RealOscarMay
    @RealOscarMay 3 ปีที่แล้ว +1

    First

  • @faheemahmadofficial7701
    @faheemahmadofficial7701 3 ปีที่แล้ว

    Please improve