@@ -451,7 +451,7 @@ class _ChatPageState extends State<ChatPage> { | |||||
Provider<int>.value(value: widget.friendId), | Provider<int>.value(value: widget.friendId), | ||||
], | ], | ||||
child: GestureDetector( | child: GestureDetector( | ||||
onTapDown: (args){hideKeyBoard();}, | |||||
onTap: hideKeyBoard, | |||||
child: ExtendedTextSelectionPointerHandler( | child: ExtendedTextSelectionPointerHandler( | ||||
///选择文字,消除弹窗 | ///选择文字,消除弹窗 | ||||
@@ -290,7 +290,7 @@ class _GroupChatPageState extends State<GroupChatPage> { | |||||
Provider<GroupInfoModel>.value(value: widget.groupInfoModel), | Provider<GroupInfoModel>.value(value: widget.groupInfoModel), | ||||
], | ], | ||||
child: GestureDetector( | child: GestureDetector( | ||||
onTapDown: (args){hideKeyBoard();}, | |||||
onTap:hideKeyBoard, | |||||
child: ExtendedTextSelectionPointerHandler( | child: ExtendedTextSelectionPointerHandler( | ||||
///选择文字,消除弹窗 | ///选择文字,消除弹窗 | ||||
builder: (states) { | builder: (states) { | ||||
@@ -36,7 +36,6 @@ class _LoginPageState extends State<LoginPage> { | |||||
if (keyHeight > 0) { | if (keyHeight > 0) { | ||||
UserData().setKeyboardHeight(keyHeight); | UserData().setKeyboardHeight(keyHeight); | ||||
} | } | ||||
Widget appBar = AppBar( | Widget appBar = AppBar( | ||||
backgroundColor: AppColors.NewAppbarBgColor, | backgroundColor: AppColors.NewAppbarBgColor, | ||||
title: Text( | title: Text( | ||||
@@ -46,7 +46,7 @@ class HttpUtil { | |||||
//static const String BaseUrl = 'http://192.168.0.207:9080/'; | //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://120.79.107.63:9080/'; | ||||
//static const String BaseUrl = 'http://192.168.0.177:9016/'; | //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() { | static HttpUtil _getInstance() { | ||||
if (_instance == null) { | if (_instance == null) { | ||||
@@ -1125,7 +1125,7 @@ class HttpUtil { | |||||
if (msgModel.translateContent != null && | if (msgModel.translateContent != null && | ||||
msgModel.translateContent.length > 0) { | msgModel.translateContent.length > 0) { | ||||
data['mcontent'] = base64Encode(msgModel.enTranslateContent); | |||||
data['mcontent'] = base64Encode(msgModel.translateContent); | |||||
} | } | ||||
Response res = | Response res = | ||||
@@ -17,7 +17,7 @@ class NetStateBloc { | |||||
} | } | ||||
_updateConnectionStatus(ConnectivityResult result) async { | _updateConnectionStatus(ConnectivityResult result) async { | ||||
print('网络状态改变$result'); | |||||
// print('网络状态改变$result'); | |||||
if (result == ConnectivityResult.none) { | if (result == ConnectivityResult.none) { | ||||
lastNet = result; | lastNet = result; | ||||
_streamController.sink.add(ChatState.connecting.index); | _streamController.sink.add(ChatState.connecting.index); | ||||