@@ -1005,7 +1005,7 @@ class _EditPageState extends State<EditPage> { | |||||
border: InputBorder.none, | border: InputBorder.none, | ||||
), | ), | ||||
maxLines: 5, | maxLines: 5, | ||||
inputFormatters: [LengthLimitingTextInputFormatter(100)], | |||||
inputFormatters: [LengthLimitingTextInputFormatter(50)], | |||||
), | ), | ||||
) | ) | ||||
], | ], | ||||
@@ -171,11 +171,11 @@ class _MessagePushPageState extends State<MessagePushPage> { | |||||
womenAgree = !womenAgree; | womenAgree = !womenAgree; | ||||
}); | }); | ||||
}), | }), | ||||
_buildHiddenButtom(I18n.of(context).applied_successfully, codeSucess, () { | |||||
setState(() { | |||||
codeSucess = !codeSucess; | |||||
}); | |||||
}), | |||||
// _buildHiddenButtom(I18n.of(context).applied_successfully, codeSucess, () { | |||||
// setState(() { | |||||
// codeSucess = !codeSucess; | |||||
// }); | |||||
// }), | |||||
]; | ]; | ||||
List<Widget> women = [ | List<Widget> women = [ | ||||
_buildHiddenButtom(I18n.of(context).private_chat2, privatyMsg, () { | _buildHiddenButtom(I18n.of(context).private_chat2, privatyMsg, () { | ||||
@@ -1637,42 +1637,32 @@ class _ProfilePageState extends State<ProfilePage> | |||||
highlightColor: Colors.transparent, | highlightColor: Colors.transparent, | ||||
radius: 0.0, | radius: 0.0, | ||||
onTap: callback, | onTap: callback, | ||||
child: Column( | |||||
children: <Widget>[ | |||||
Container( | |||||
height: 53, | |||||
margin: EdgeInsets.only(left: 20, bottom: 0, right: 10), | |||||
child: Row( | |||||
children: <Widget>[ | |||||
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: <Widget>[ | |||||
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) { | testChatPermission(callback) { | ||||
becomeVip() { | becomeVip() { | ||||
@@ -282,7 +282,14 @@ class _AudioChatPageState extends State<AudioChatPage> { | |||||
Row( | Row( | ||||
mainAxisAlignment: MainAxisAlignment.center, | mainAxisAlignment: MainAxisAlignment.center, | ||||
children: <Widget>[ | children: <Widget>[ | ||||
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) | fixedText('$age', fontSize: 20, color: Colors.white70) | ||||
], | ], | ||||
), | ), | ||||
@@ -301,13 +308,15 @@ class _AudioChatPageState extends State<AudioChatPage> { | |||||
textAlign: TextAlign.center, | textAlign: TextAlign.center, | ||||
), | ), | ||||
SizedBox(height: 20), | 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, | |||||
)), | |||||
], | ], | ||||
), | ), | ||||
); | ); | ||||
@@ -460,7 +460,7 @@ class MsgHandler { | |||||
chat.contentBuff, chat.sendTime.toInt(), chat.targetId, | chat.contentBuff, chat.sendTime.toInt(), chat.targetId, | ||||
channelType: chat.channelType.value); | channelType: chat.channelType.value); | ||||
String content =utf8.decode(msgModel.msgContent); | |||||
// String content =utf8.decode(msgModel.msgContent); | |||||
// print('当前收到消息条数$receivedCount $content'); | // print('当前收到消息条数$receivedCount $content'); | ||||
if (chat.hasTencentTranslate()) { | if (chat.hasTencentTranslate()) { | ||||