mirror of
https://github.com/RxReader/tencent_kit.git
synced 2025-05-21 01:07:12 +08:00
代码格式化
This commit is contained in:
@ -54,7 +54,6 @@ class _HomeState extends State<Home> {
|
|||||||
StreamSubscription<TencentShareResp> _share;
|
StreamSubscription<TencentShareResp> _share;
|
||||||
|
|
||||||
TencentLoginResp _loginResp;
|
TencentLoginResp _loginResp;
|
||||||
DateTime _loginDate;
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
@ -65,7 +64,6 @@ class _HomeState extends State<Home> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _listenLogin(TencentLoginResp resp) {
|
void _listenLogin(TencentLoginResp resp) {
|
||||||
_loginDate = DateTime.now();
|
|
||||||
_loginResp = resp;
|
_loginResp = resp;
|
||||||
String content = 'login: ${resp.openid} - ${resp.accessToken}';
|
String content = 'login: ${resp.openid} - ${resp.accessToken}';
|
||||||
_showTips('登录', content);
|
_showTips('登录', content);
|
||||||
@ -122,8 +120,7 @@ class _HomeState extends State<Home> {
|
|||||||
ListTile(
|
ListTile(
|
||||||
title: const Text('获取用户信息'),
|
title: const Text('获取用户信息'),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
if (_loginDate != null &&
|
if (_loginResp != null &&
|
||||||
_loginResp != null &&
|
|
||||||
_loginResp.ret == TencentResp.RET_SUCCESS) {
|
_loginResp.ret == TencentResp.RET_SUCCESS) {
|
||||||
if (DateTime.now().millisecondsSinceEpoch -
|
if (DateTime.now().millisecondsSinceEpoch -
|
||||||
_loginResp.createAt <
|
_loginResp.createAt <
|
||||||
|
Reference in New Issue
Block a user