Learn Flutter Life Cycle In 10 Minutes

Поделиться
HTML-код
  • Опубликовано: 10 июл 2024
  • Understanding the basics of the Life Cycle methods in Flutter is vital to writing applications without missing things like memory leakage. That is why we go over them all step by step.
    Course to build a production-ready app 👉 robertbrunhage.com/course
    00:00 Overview
    00:41 InitState
    02:27 DidChangeDependencies
    03:28 DidUpdateWidget
    06:51 Deactivate
    07:42 Dispose
    Source code: github.com/RobertBrunhage/flu...
    ····················································································
    ♥ Become a Patreon supporter: / robertbrunhage
    ♥ Subscribe: bit.ly/2SUyRhx
    ····················································································
    ● Website: robertbrunhage.com
    ● Twitter: / robertbrunhage
    ● Discord: / discord
    ● Instagram: / robertbrunhagedev
    ● Facebook: bit.ly/RobertDev

Комментарии • 51

  • @FlutterMapp
    @FlutterMapp 2 года назад +8

    Thanks for the video Man ✈️🚀🎉

    • @FlutterMapp
      @FlutterMapp 2 года назад +2

      That is awesome! Do you use all of them?

    • @RobertBrunhage
      @RobertBrunhage  2 года назад +1

      @@FlutterMapp I use the ones that I need depending on the scenario 😊

  • @i.k.shaikh3772
    @i.k.shaikh3772 3 года назад +1

    Excellent demonstration

  • @midclock
    @midclock 3 года назад +14

    Interesting video, I was looking for it.
    Just a little note: it would have been nice to explain well what is a "dependency" from widget's perspective, that triggers a didChangeDependencies call.
    Regarding deactivate, maybe its fired once the widget is removed from the tree, while the instance continues to exist?
    I'm thinking about a widget that is set to "hidden" visbility.

  • @illtrax
    @illtrax 2 года назад

    Thanks for the summery!

  • @Pedro5antos_
    @Pedro5antos_ Год назад

    Thanks for sharing! AWESOME!

  • @junveld4830
    @junveld4830 8 месяцев назад

    Thank you, please post more interview questions

  • @victorhpantunes
    @victorhpantunes 3 года назад +5

    Awesome video. A lot of things that I didn't know it

  • @olaoluwamarvellous700
    @olaoluwamarvellous700 2 года назад

    Thank you

  • @oswaldoolea2889
    @oswaldoolea2889 6 месяцев назад

    great, thank a lot.

  • @Prizza_3lik
    @Prizza_3lik Год назад

    thanks you bro

  • @ehsanhasin8092
    @ehsanhasin8092 Год назад

    thank you

  • @TheFredFred33
    @TheFredFred33 3 года назад +4

    Excellent 👏🏻👏🏻👏🏻👏🏻👏🏻

  • @danumichael2143
    @danumichael2143 3 года назад

    great video

  • @fullstack_journey
    @fullstack_journey 3 года назад +16

    This was widget lifecycle, can u do one on app lifecycle too?

    • @RobertBrunhage
      @RobertBrunhage  3 года назад +10

      Have an old video about it but thinking of updating it as a lot of people has been asking about it!

    • @midclock
      @midclock 3 года назад +1

      As far as I know, a Flutter App is a widget, that's stated in the doc :)

  • @Ls-df2mf
    @Ls-df2mf 3 года назад

    Good one

  • @danangdwigustifajaryanto
    @danangdwigustifajaryanto 3 года назад +4

    I just wondering what is the different between dispose and deactivate.

  • @SuperHesni
    @SuperHesni 3 года назад +6

    great video as always

    • @RobertBrunhage
      @RobertBrunhage  3 года назад +3

      Thanks!
      Something I have on my todo so certainly in the future 😊

  • @mgmyo7066
    @mgmyo7066 3 года назад +3

    please make tutorials of navigation 2.0.

  • @hasansalim1868
    @hasansalim1868 3 года назад +1

    Thanks, but what about the constructor of the state class?

  • @mohamedalihammami5067
    @mohamedalihammami5067 2 года назад

    Excellent! Very helpful ,just if you can to make video for how to use huawei_map in Flutter thx

  • @ilgztrs
    @ilgztrs 7 месяцев назад

    Deactivate is useful if you want to interact with bloc before disposing the widget

  • @boghdadyDev
    @boghdadyDev 3 года назад +2

    what is the font name that you are using ?

  • @yashdixit3352
    @yashdixit3352 3 года назад +3

    What is dependency change?

    • @RobertBrunhage
      @RobertBrunhage  3 года назад +4

      When you pass something through the constructor to a widget, that widget is depandant on that value. So in a sense it's that if a value changes hat is the same as saying that the dependency changes.

  • @s.thentaro5901
    @s.thentaro5901 3 месяца назад

    What's about "activate" life cycle?

  • @atulrawat2996
    @atulrawat2996 3 года назад

    where is the createState method?

  • @yassinsaddem2262
    @yassinsaddem2262 3 года назад +2

    It's very good but the deactivate explication is not clear

    • @RobertBrunhage
      @RobertBrunhage  3 года назад +1

      Noted, if I come up with a good example I will update the Github Code!

  • @jst_kishan
    @jst_kishan 3 года назад +2

    How to write ≠ ?

    • @mohammadtalha2336
      @mohammadtalha2336 3 года назад +1

      Turn on code ligatures in vscode settings and install fira-code font or any other that support code ligatures

    • @RobertBrunhage
      @RobertBrunhage  3 года назад

      As Mohammad said, these is a setting in your ide or code editor for activating code ligatures. I am using JetBrains Mono and that activated!

  • @faheemahmad3957
    @faheemahmad3957 Год назад

    please make for 2023

  • @xiuChang
    @xiuChang 3 года назад

    uper is an indian?

  • @user-yn8gm3qj5x
    @user-yn8gm3qj5x 23 дня назад

    so slow men x2 speed and still slow xd

  • @alexvaiman4966
    @alexvaiman4966 11 месяцев назад +1

    dispose not called memory like? are you insane my friend??? dart has garbage collector!!! it does not need you to dispose anything! with exception of resources which are not under dart control! VC is not one of them!!! you should dispose of timers, but why? well, the reason is, if you dont, when the timer comes back it may try to get ref to disposed object, and you will have a crash. I hate when people talking about "memory leaks" - it is plain crap!

  • @RamyWahid
    @RamyWahid 2 года назад

    Diserve Comment