Widget Life Cycle in Flutter Explained | Flutter Basics

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ก.ค. 2024
  • Understand Widget Life Cycle in Flutter with information on methods Flutter provides us like initState, didChangeDependencies, didUpdateWidget, dispose, build function & more!
    Timestamps:
    (0:00) Intro
    (0:18) Brief Overview of Widgets
    (1:19) Life Cycle of Stateless Widget
    (2:24) initState method
    (3:33) General Internal Working of initState
    (4:05) Where to place our code in these methods?
    (4:48) didChangeDependencies method
    (5:06) didUpdateWidget method
    (5:31) dispose method
    (5:58) Proof of Lifecycle of Stateful Widget.
    (9:44) setState
    (9:13) Flowchart
    (10:18) Conclusion
    Connect With Me Here:
    / optimalcoding
    namanrivaan@gmail.com
    github.com/rivaanranawat
    / namanrivaan
  • แนวปฏิบัติและการใช้ชีวิต

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

  • @rw6262
    @rw6262 2 หลายเดือนก่อน

    Excellent description of widget life cycle. I learned a lot.

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

    life changing sir

  • @pragnabhatt9531
    @pragnabhatt9531 ปีที่แล้ว

    Clear explanation !!

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

    Well explained. THANKS ❤💙

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

    well explained bro !

    • @RivaanRanawat
      @RivaanRanawat  หลายเดือนก่อน +1

      Glad you liked it

  • @sarathrkrishnan6610
    @sarathrkrishnan6610 2 ปีที่แล้ว

    ❤️

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

    Great explanation but you missed deactivate life cycle.

  • @aradhyajain9575
    @aradhyajain9575 ปีที่แล้ว

    please make a video on Streams 🫶👏🙏