From 639b9b1371741fa559242c8513eae07a8ba62e27 Mon Sep 17 00:00:00 2001 From: jiahao <283739569@qq.com> Date: Fri, 10 Apr 2020 12:30:47 +0800 Subject: [PATCH] 1 --- lib/chat/ChatPage.dart | 2 +- lib/chat/group_chat_view.dart | 2 +- lib/home/LoginPage.dart | 1 - lib/utils/HttpUtil.dart | 4 ++-- lib/utils/net_state_util.dart | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/chat/ChatPage.dart b/lib/chat/ChatPage.dart index a9adece..fa00612 100644 --- a/lib/chat/ChatPage.dart +++ b/lib/chat/ChatPage.dart @@ -451,7 +451,7 @@ class _ChatPageState extends State { Provider.value(value: widget.friendId), ], child: GestureDetector( - onTapDown: (args){hideKeyBoard();}, + onTap: hideKeyBoard, child: ExtendedTextSelectionPointerHandler( ///选择文字,消除弹窗 diff --git a/lib/chat/group_chat_view.dart b/lib/chat/group_chat_view.dart index 830f2fa..d950a05 100644 --- a/lib/chat/group_chat_view.dart +++ b/lib/chat/group_chat_view.dart @@ -290,7 +290,7 @@ class _GroupChatPageState extends State { Provider.value(value: widget.groupInfoModel), ], child: GestureDetector( - onTapDown: (args){hideKeyBoard();}, + onTap:hideKeyBoard, child: ExtendedTextSelectionPointerHandler( ///选择文字,消除弹窗 builder: (states) { diff --git a/lib/home/LoginPage.dart b/lib/home/LoginPage.dart index acdbb32..03a7497 100644 --- a/lib/home/LoginPage.dart +++ b/lib/home/LoginPage.dart @@ -36,7 +36,6 @@ class _LoginPageState extends State { if (keyHeight > 0) { UserData().setKeyboardHeight(keyHeight); } - Widget appBar = AppBar( backgroundColor: AppColors.NewAppbarBgColor, title: Text( diff --git a/lib/utils/HttpUtil.dart b/lib/utils/HttpUtil.dart index af2015e..89e4846 100644 --- a/lib/utils/HttpUtil.dart +++ b/lib/utils/HttpUtil.dart @@ -46,7 +46,7 @@ class HttpUtil { //static const String BaseUrl = 'http://192.168.0.207:9080/'; static const String BaseUrl = 'http://120.79.107.63:9080/'; //static const String BaseUrl = 'http://192.168.0.177:9016/'; - //static const String BaseUrl = 'https://datasm.chengyouhd.com/'; +// static const String BaseUrl = 'https://datasm.chengyouhd.com/'; static HttpUtil _getInstance() { if (_instance == null) { @@ -1125,7 +1125,7 @@ class HttpUtil { if (msgModel.translateContent != null && msgModel.translateContent.length > 0) { - data['mcontent'] = base64Encode(msgModel.enTranslateContent); + data['mcontent'] = base64Encode(msgModel.translateContent); } Response res = diff --git a/lib/utils/net_state_util.dart b/lib/utils/net_state_util.dart index b2902ae..a7f0c82 100644 --- a/lib/utils/net_state_util.dart +++ b/lib/utils/net_state_util.dart @@ -17,7 +17,7 @@ class NetStateBloc { } _updateConnectionStatus(ConnectivityResult result) async { - print('网络状态改变$result'); +// print('网络状态改变$result'); if (result == ConnectivityResult.none) { lastNet = result; _streamController.sink.add(ChatState.connecting.index);