This commit is contained in:
v7lin 2022-03-29 10:52:45 +08:00
parent 76189ad26d
commit c03c286333

View File

@ -42,14 +42,14 @@ class Home extends StatefulWidget {
} }
class _HomeState extends State<Home> { class _HomeState extends State<Home> {
late final StreamSubscription<BaseResp> _respSubs = late final StreamSubscription<BaseResp> _respSubs;
Weibo.instance.respStream().listen(_listenResp);
AuthResp? _authResp; AuthResp? _authResp;
@override @override
void initState() { void initState() {
super.initState(); super.initState();
_respSubs = Weibo.instance.respStream().listen(_listenResp);
} }
void _listenResp(BaseResp resp) { void _listenResp(BaseResp resp) {