aagarwal1012 / aagarwal1012/IntroViews-Flutter

Solution for setState not working

Aberta
#64 1 comentário 0 reações 0 responsáveis Ver no GitHub
bug waiting for response
Linguagem predominante
Dart
Estrelas
665
Forks
140
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Hi, I wanted to use this package one week ago but I couldn't because setState doesn't work and reading the package's issues, you wrote that you couldn't find the problem.

I was doing my own package and faced the same problem. I fixed it by moving the initState logic to build method. The problem is when you use setState in parent, child isn't created again and initState isn't called. If you move that crucial logic to build (or maybe another better place), it will work.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.