Flutter: Unhandled Exception: setState() called after dispose()

Поделиться
HTML-код
  • Опубликовано: 23 янв 2025

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

  • @usephermanto5870
    @usephermanto5870 4 года назад

    a whole nigh when last night i'm confused for memory leaks like that , dude thanks it's work perfectly 😂

    • @gg.brothers
      @gg.brothers  4 года назад +1

      Thank you! Programmers are always at a loss. LOL

    • @gg.brothers
      @gg.brothers  3 года назад +1

      please subscribe

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

    what mounted contains?

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

    if there are multiple setState in a file then you have to use if check every where that is very difficult. So use setState override method. And then use setState as you like to use.
    @override
    void setState(VoidCallback fn){
    if(mounted){
    super.setState(fn);
    }
    }

  • @muhammadfaiz2048
    @muhammadfaiz2048 4 года назад +1

    easy like that? like abc? i'll try