mirror of
https://github.com/RxReader/tencent_kit.git
synced 2025-07-18 01:44:10 +08:00
xxx
This commit is contained in:
@ -25,7 +25,7 @@ linter:
|
|||||||
- camel_case_types
|
- camel_case_types
|
||||||
- empty_constructor_bodies
|
- empty_constructor_bodies
|
||||||
- avoid_init_to_null
|
- avoid_init_to_null
|
||||||
- constant_identifier_names
|
# - constant_identifier_names
|
||||||
- one_member_abstracts
|
- one_member_abstracts
|
||||||
- slash_for_doc_comments
|
- slash_for_doc_comments
|
||||||
- sort_constructors_first
|
- sort_constructors_first
|
||||||
|
@ -39,6 +39,8 @@ class Home extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _HomeState extends State<Home> {
|
class _HomeState extends State<Home> {
|
||||||
|
static const String TENCENT_APPID = '222222';
|
||||||
|
|
||||||
Tencent _tencent = Tencent();
|
Tencent _tencent = Tencent();
|
||||||
|
|
||||||
StreamSubscription<TencentLoginResp> _login;
|
StreamSubscription<TencentLoginResp> _login;
|
||||||
@ -50,7 +52,7 @@ class _HomeState extends State<Home> {
|
|||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
_tencent.registerApp(appId: '222222');
|
_tencent.registerApp(appId: TENCENT_APPID);
|
||||||
_login = _tencent.loginResp().listen(_listenLogin);
|
_login = _tencent.loginResp().listen(_listenLogin);
|
||||||
_userInfo = _tencent.userInfoResp().listen(_listenUserInfo);
|
_userInfo = _tencent.userInfoResp().listen(_listenUserInfo);
|
||||||
_share = _tencent.shareResp().listen(_listenShare);
|
_share = _tencent.shareResp().listen(_listenShare);
|
||||||
|
Reference in New Issue
Block a user