diff --git a/lib/home/EditData.dart b/lib/home/EditData.dart index 1f3a2af..8fd9d0f 100644 --- a/lib/home/EditData.dart +++ b/lib/home/EditData.dart @@ -1005,7 +1005,7 @@ class _EditPageState extends State { border: InputBorder.none, ), maxLines: 5, - inputFormatters: [LengthLimitingTextInputFormatter(100)], + inputFormatters: [LengthLimitingTextInputFormatter(50)], ), ) ], diff --git a/lib/home/MessagePushPage.dart b/lib/home/MessagePushPage.dart index f1f90dd..77cac8e 100644 --- a/lib/home/MessagePushPage.dart +++ b/lib/home/MessagePushPage.dart @@ -171,11 +171,11 @@ class _MessagePushPageState extends State { womenAgree = !womenAgree; }); }), - _buildHiddenButtom(I18n.of(context).applied_successfully, codeSucess, () { - setState(() { - codeSucess = !codeSucess; - }); - }), + // _buildHiddenButtom(I18n.of(context).applied_successfully, codeSucess, () { + // setState(() { + // codeSucess = !codeSucess; + // }); + // }), ]; List women = [ _buildHiddenButtom(I18n.of(context).private_chat2, privatyMsg, () { diff --git a/lib/home/ProfilePage.dart b/lib/home/ProfilePage.dart index f54a34c..8859233 100644 --- a/lib/home/ProfilePage.dart +++ b/lib/home/ProfilePage.dart @@ -1637,42 +1637,32 @@ class _ProfilePageState extends State highlightColor: Colors.transparent, radius: 0.0, onTap: callback, - child: Column( - children: [ - Container( - height: 53, - margin: EdgeInsets.only(left: 20, bottom: 0, right: 10), - child: Row( - children: [ - left, - right, - showIcon - ? Padding( - padding: EdgeInsets.only(right: 10), - child: Icon( - IconData(0xe63c, fontFamily: 'iconfont'), - size: 22.0, - color: Color(AppColors.TabIconNormal), - )) - : Container() - ], - ), - ), - showBorder ? _buildDivider() : Container(), - ], + child: Container( + decoration: showBorder + ? BoxDecoration(border: Border(bottom: Constants.GreyBorderSide)) + : null, + alignment: Alignment.center, + padding: EdgeInsets.only(top: 17,bottom: 17,), + margin: EdgeInsets.only(left: 20, bottom: 0, right: 10), + child: Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + left, + right, + showIcon + ? Padding( + padding: EdgeInsets.only(right: 10), + child: Icon( + IconData(0xe63c, fontFamily: 'iconfont'), + size: 22.0, + color: Color(AppColors.TabIconNormal), + )) + : Container() + ], + ), )); } - //下划线 - Widget _buildDivider() { - return new Container( - margin: EdgeInsets.symmetric(horizontal: 15), - height: 1, - decoration: - BoxDecoration(border: Border(bottom: Constants.GreyBorderSide)), - width: MediaQuery.of(context).size.width, - ); - } testChatPermission(callback) { becomeVip() { diff --git a/lib/home/audio_chat_view.dart b/lib/home/audio_chat_view.dart index 1586427..a56489a 100644 --- a/lib/home/audio_chat_view.dart +++ b/lib/home/audio_chat_view.dart @@ -282,7 +282,14 @@ class _AudioChatPageState extends State { Row( mainAxisAlignment: MainAxisAlignment.center, children: [ - fixedText(userName, fontSize: 20, color: Colors.white70), + Container( + width: Screen.width - 50, + child: Text( + userName, + style: TextStyle(fontSize: 20, color: Colors.white70), + textScaleFactor: 1.0, + textAlign: TextAlign.center, + )), fixedText('$age', fontSize: 20, color: Colors.white70) ], ), @@ -301,13 +308,15 @@ class _AudioChatPageState extends State { textAlign: TextAlign.center, ), SizedBox(height: 20), - Text( - connectTip, - maxLines: 1, - style: TextStyle(fontSize: 20, color: Colors.white70), - textScaleFactor: 1.0, - textAlign: TextAlign.center, - ), + Container( + width: Screen.width - 50, + child: Text( + connectTip, + //maxLines: 2, + style: TextStyle(fontSize: 20, color: Colors.white70), + textScaleFactor: 1.0, + textAlign: TextAlign.center, + )), ], ), ); diff --git a/lib/utils/msgHandler.dart b/lib/utils/msgHandler.dart index e518632..c13736a 100644 --- a/lib/utils/msgHandler.dart +++ b/lib/utils/msgHandler.dart @@ -460,7 +460,7 @@ class MsgHandler { chat.contentBuff, chat.sendTime.toInt(), chat.targetId, channelType: chat.channelType.value); - String content =utf8.decode(msgModel.msgContent); + // String content =utf8.decode(msgModel.msgContent); // print('当前收到消息条数$receivedCount $content'); if (chat.hasTencentTranslate()) {