Flutter App LifeCycle

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.ย. 2024
  • Flutter LifeCycle is about having control over the lifecycle of the Android/iOS application. Don't confuse with Widget LifeCycle that is different things.
    In android, we are having onCreate on Resume and onPause are part of android lifecycle but in Flutter there is no method like onCreate or onPause.
    In this video I will show you how to get control over the LifeCycle of Flutter Application, like Android and iOS.
    Facebook: / nitishk72
    LinedIn: / nitishk72
    Patreon: / nitishk72
    Github: github.com/nit...

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

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

    Please tell me.....
    didchangeAppLifecyclestate is called immediately after init state Or
    when app is coming from background to foreground then its called .....
    Please clear when it's called.

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

    thanks a lot dode , It works

  • @mikunjosh8162
    @mikunjosh8162 4 ปีที่แล้ว

    Wow! Thanks for this insight. Its gonna go along way.

  • @farrazmohamed2612
    @farrazmohamed2612 4 ปีที่แล้ว +1

    hello, is there any way to find out if my app came from background to foreground and nor other app was on top of my app? as you know if my app opened camera app or file explorer my flutter app life cycle state changes to inactive/paused although user is actually working on my app?

  • @PranvatSinghDang
    @PranvatSinghDang 4 ปีที่แล้ว

    How to get the app that just popped up to foreground in flutter? If you could help!

  • @mithuns8410
    @mithuns8410 4 ปีที่แล้ว

    Informative video. Looks like the Android Virtual Device is too fast and responsive. Which Computer you are using and what configuration you got? Please mention

  • @aytunch
    @aytunch 4 ปีที่แล้ว

    Hi thanks for this. can we navigate to the login page while app is minimizing instead of when the user it brings it back. I don't want the secure page to be shown even for a second lets say

    • @NitishKumarSingh
      @NitishKumarSingh  4 ปีที่แล้ว +1

      Yes you can do that
      Change the checking of state condition to "Inactive" from "Resume"

  • @josephcarlokotualubun8865
    @josephcarlokotualubun8865 4 ปีที่แล้ว

    how can you handle it if you have many screen?
    any sugetion to solve these?
    I already make LifeCycle on route (parent of MaterialApp), but Navigation doesnt work.
    Navigator operation requested with a context that does not include a Navigator. The context used to push or pop routes from the Navigator must be that of a widget that is a descendant of a Navigator widget.
    please help, thankyou