소스 검색

修复bug

master
ZCM 5 년 전
부모
커밋
ee0af85334
5개의 변경된 파일47개의 추가작업 그리고 48개의 파일을 삭제
  1. +1
    -1
      lib/home/EditData.dart
  2. +5
    -5
      lib/home/MessagePushPage.dart
  3. +23
    -33
      lib/home/ProfilePage.dart
  4. +17
    -8
      lib/home/audio_chat_view.dart
  5. +1
    -1
      lib/utils/msgHandler.dart

+ 1
- 1
lib/home/EditData.dart 파일 보기

@@ -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)],
), ),
) )
], ],


+ 5
- 5
lib/home/MessagePushPage.dart 파일 보기

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


+ 23
- 33
lib/home/ProfilePage.dart 파일 보기

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


+ 17
- 8
lib/home/audio_chat_view.dart 파일 보기

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


+ 1
- 1
lib/utils/msgHandler.dart 파일 보기

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


불러오는 중...
취소
저장