Flutter : Bad state: Stream has already been listened to

前端 未结 11 1362
灰色年华
灰色年华 2020-12-03 04:21

    class MyPage extends StatelessWidget {
      @override
      Widget build(BuildContext context) {
        return Defaul         


        
11条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-03 04:55

    You should use the following.

    StreamController<...> _controller = StreamController<...>.broadcast();
    

提交回复
热议问题