mirror of
https://github.com/RxReader/tencent_kit.git
synced 2025-06-22 03:41:09 +08:00
bugfix
This commit is contained in:
@ -33,14 +33,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;
|
||||||
Tencent.instance.respStream().listen(_listenLogin);
|
|
||||||
|
|
||||||
LoginResp? _loginResp;
|
LoginResp? _loginResp;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
|
_respSubs = Tencent.instance.respStream().listen(_listenLogin);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _listenLogin(BaseResp resp) {
|
void _listenLogin(BaseResp resp) {
|
||||||
|
Reference in New Issue
Block a user