Flutter : Bad state: Stream has already been listened to

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

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


        
11条回答
  •  我在风中等你
    2020-12-03 04:51

    For me defining my stream as a global variable worked

    Stream infostream (was inside the ...State in a stateful widget i defined it outside the widget and it worked

    (not sure if the best solution but give it a try)

提交回复
热议问题