StreamBuilder snapshot is always ConnectionState.waiting

前端 未结 5 2017
故里飘歌
故里飘歌 2021-02-19 12:12

I thought I understood StreamBuilders but I have some doubts that are puzzling me.

I thought that a ConnectionState.waiting means that the connection with the stream is

5条回答
  •  温柔的废话
    2021-02-19 12:29

    Encountered the same issue. Checking the code, if you passed a not null data, the status will be set to waiting.

    If you want to make the status to be 'none', then you need to pass null first and pass the Stream to the StreamBuilder when the data is on fetching.

提交回复
热议问题