ZCM il y a 5 ans
Parent
révision
03e50194ab
9 fichiers modifiés avec 13 ajouts et 14 suppressions
  1. +3
    -3
      android/app/build.gradle
  2. +1
    -1
      lib/chat/ChatPage.dart
  3. +1
    -1
      lib/chat/ChatPageItem.dart
  4. +2
    -3
      lib/chat/group_chat_view.dart
  5. +1
    -1
      lib/chat/input_bar.dart
  6. +0
    -1
      lib/home/LoginPage.dart
  7. +3
    -2
      lib/home/add_friend.dart
  8. +1
    -1
      lib/utils/HttpUtil.dart
  9. +1
    -1
      lib/utils/net_state_util.dart

+ 3
- 3
android/app/build.gradle Voir le fichier

@@ -56,9 +56,9 @@ android {
// manifestPlaceholders = [ // manifestPlaceholders = [
// AMAP_KEY : "1fd4e93e3b4b13747da41f484c955fe2", /// 高德地图key // AMAP_KEY : "1fd4e93e3b4b13747da41f484c955fe2", /// 高德地图key
// ] // ]
// ndk {
// abiFilters 'armeabi-v7a'
// }
// ndk {
// abiFilters 'armeabi-v7a'
// }
multiDexEnabled true multiDexEnabled true
manifestPlaceholders = [ manifestPlaceholders = [
JPUSH_PKGNAME : 'com.cyhd.henhoandroid', JPUSH_PKGNAME : 'com.cyhd.henhoandroid',


+ 1
- 1
lib/chat/ChatPage.dart Voir le fichier

@@ -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(
///选择文字,消除弹窗 ///选择文字,消除弹窗


+ 1
- 1
lib/chat/ChatPageItem.dart Voir le fichier

@@ -716,7 +716,7 @@ class _ChatPageItemState extends State<ChatPageItem>
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,
children: <Widget>[ children: <Widget>[
MsgStateWidget(widget.msg), MsgStateWidget(widget.msg),
SizedBox(width: 3),
SizedBox(width: 1),
_msgLayout(context, widget.msg), _msgLayout(context, widget.msg),
SizedBox(width: 10), SizedBox(width: 10),
Column( Column(


+ 2
- 3
lib/chat/group_chat_view.dart Voir le fichier

@@ -306,9 +306,8 @@ class _GroupChatPageState extends State<GroupChatPage> {
Provider<bool>.value(value: true), Provider<bool>.value(value: true),
Provider<GroupInfoModel>.value(value: widget.groupInfoModel), Provider<GroupInfoModel>.value(value: widget.groupInfoModel),
], ],
child: GestureDetector(onTapDown: (args) {
hideKeyBoard();
}, child: ExtendedTextSelectionPointerHandler(
child: GestureDetector(
onTap:hideKeyBoard, child: ExtendedTextSelectionPointerHandler(
///选择文字,消除弹窗 ///选择文字,消除弹窗
builder: (states) { builder: (states) {
return Listener( return Listener(


+ 1
- 1
lib/chat/input_bar.dart Voir le fichier

@@ -400,7 +400,7 @@ class InputBarState extends State<InputBar>
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
Container( Container(
padding: EdgeInsets.symmetric(horizontal: 7, vertical: 7),
padding: EdgeInsets.symmetric(horizontal: 7, vertical: 3),
alignment: Alignment.topCenter, alignment: Alignment.topCenter,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,


+ 0
- 1
lib/home/LoginPage.dart Voir le fichier

@@ -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(


+ 3
- 2
lib/home/add_friend.dart Voir le fichier

@@ -1,3 +1,4 @@
import 'package:chat/data/UserData.dart';
import 'package:chat/data/constants.dart'; import 'package:chat/data/constants.dart';
import 'package:chat/generated/i18n.dart'; import 'package:chat/generated/i18n.dart';
import 'package:chat/models/ref_name_provider.dart'; import 'package:chat/models/ref_name_provider.dart';
@@ -70,7 +71,7 @@ class _AddFriendPageState extends State<AddFriendPage> {
onTap: () { onTap: () {
var content = _txtCtrl.text; var content = _txtCtrl.text;
if (_txtCtrl.text.length == 0) { if (_txtCtrl.text.length == 0) {
content = widget.originalName;
content = UserData().basicInfo.nickName;
} }
switch (widget.pageType) { switch (widget.pageType) {
case SendMessagePageType.AddFriends: case SendMessagePageType.AddFriends:
@@ -146,7 +147,7 @@ class _AddFriendPageState extends State<AddFriendPage> {
decoration: InputDecoration( decoration: InputDecoration(
contentPadding: contentPadding:
EdgeInsets.only(right: 10, left: 15, top: 10, bottom: 10), EdgeInsets.only(right: 10, left: 15, top: 10, bottom: 10),
hintText: widget.originalName,
hintText: UserData().basicInfo.nickName,
hintStyle: TextStyle(fontSize: 16, color: Colors.grey), hintStyle: TextStyle(fontSize: 16, color: Colors.grey),
border: InputBorder.none, border: InputBorder.none,
suffixIcon: Padding( suffixIcon: Padding(


+ 1
- 1
lib/utils/HttpUtil.dart Voir le fichier

@@ -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) {


+ 1
- 1
lib/utils/net_state_util.dart Voir le fichier

@@ -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);


Chargement…
Annuler
Enregistrer