From 4edfb48bddb869a4272ab9ca53e7c82b380fc1c3 Mon Sep 17 00:00:00 2001 From: v7lin Date: Fri, 17 May 2019 11:17:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=B7=E6=B7=86=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/lib/main.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index b84094c..8d27fea 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -39,7 +39,7 @@ class Home extends StatefulWidget { } class _HomeState extends State { - Tencent _tencent; + Tencent _tencent = Tencent(); StreamSubscription _login; StreamSubscription _userInfo; @@ -50,7 +50,6 @@ class _HomeState extends State { @override void initState() { super.initState(); - _tencent = Tencent(); _tencent.registerApp(appId: '222222'); _login = _tencent.loginResp().listen(_listenLogin); _userInfo = _tencent.userInfoResp().listen(_listenUserInfo);