From b5139f49d7f790ef63510b26a1eda115bb502c14 Mon Sep 17 00:00:00 2001 From: jiahao <283739569@qq.com> Date: Mon, 16 Mar 2020 16:38:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ios=E6=8E=A5=E6=94=B6?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8E=E5=8E=9F=E6=9C=89=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E5=86=B2=E7=AA=81/=E5=88=87=E6=8D=A2=E8=8B=B9=E6=9E=9Cid?= =?UTF-8?q?=E4=B8=BA=E8=AF=9A=E6=B8=B8=E7=9A=84=E5=8F=B7=E5=B9=B6=E6=9B=B4?= =?UTF-8?q?=E6=8D=A2=E7=9B=B8=E5=BA=94=E6=8E=A8=E9=80=81=E8=AF=81=E4=B9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils/NetUtil.dart | 6 +++--- lib/utils/screen.dart | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/utils/NetUtil.dart b/lib/utils/NetUtil.dart index 32a8d0e..c7f4c3e 100644 --- a/lib/utils/NetUtil.dart +++ b/lib/utils/NetUtil.dart @@ -160,7 +160,7 @@ class NetWork { loginTimer?.cancel(); MsgHandler.flushCacheMsg(); UploadUtil().setUploadUrl(msgContent.httpAddr); - GroupInfoMgr().checkGroupValid(); + GroupInfoMgr().checkGroupValid(); } else { _stateBloc.addState(ChatState.loginFailed); print('登录失败${msgContent.errorCode}'); @@ -323,7 +323,7 @@ class NetWork { connectServerTimer?.cancel(); if (channel != null) { - await channel.sink.close(); + await channel.sink.close(); channel = null; } }); @@ -415,7 +415,7 @@ class NetWork { //清缓存 ChatDataMgr().logout(); MsgHandler.clear(); - + isNormalClose = true; close(); } diff --git a/lib/utils/screen.dart b/lib/utils/screen.dart index fa12891..aea9410 100644 --- a/lib/utils/screen.dart +++ b/lib/utils/screen.dart @@ -63,12 +63,12 @@ fixedText(data, {Color color, double fontSize, FontWeight fontWeight}) { extendedText(String text, {Color color = Colors.blue, - double fontSize = 14, - selectionEnabled = false, - double emojisize = 20.0, - Function hideKeyboard, - fontWeight,int maxLines, - Function onSpecialTextTap + double fontSize = 14, + selectionEnabled = false, + double emojisize = 20.0, + Function hideKeyboard, + fontWeight,int maxLines, + Function onSpecialTextTap }) { return ExtendedText( text,