# Conflicts: # lib/home/group_all_member.dart # lib/home/group_setting.dartmaster
@@ -1215,10 +1215,9 @@ | |||||
"translation_scenes_3": "KTV/酒吧", | "translation_scenes_3": "KTV/酒吧", | ||||
"translation_scenes_4": "其他", | "translation_scenes_4": "其他", | ||||
"file": "文件", | "file": "文件", | ||||
"max_file":"文件大于/s1M", | |||||
"translation_scenes_4": "其他", | |||||
"max_file": "文件大于/s1M", | |||||
"translation_input_limit": "还可以输入/s1字", | "translation_input_limit": "还可以输入/s1字", | ||||
"translation_more_desc": "更多描述" | |||||
"translation_more_desc": "更多描述", | |||||
"feedback_assistant": "反馈小助手", | |||||
"feedback_tips":"有什么问题都可以反馈给我哦" | |||||
} | } |
@@ -1215,8 +1215,9 @@ | |||||
"translation_scenes_3": "KTV/酒吧", | "translation_scenes_3": "KTV/酒吧", | ||||
"translation_scenes_4": "其他", | "translation_scenes_4": "其他", | ||||
"file": "文件", | "file": "文件", | ||||
"max_file":"文件大于/s1M", | |||||
"translation_scenes_4": "其他", | |||||
"max_file": "文件大于/s1M", | |||||
"translation_input_limit": "还可以输入/s1字", | "translation_input_limit": "还可以输入/s1字", | ||||
"translation_more_desc": "更多描述" | |||||
"translation_more_desc": "更多描述", | |||||
"feedback_assistant": "反馈小助手", | |||||
"feedback_tips":"有什么问题都可以反馈给我哦" | |||||
} | } |
@@ -1157,6 +1157,7 @@ | |||||
"select_notice_people": "选择提醒的人", | "select_notice_people": "选择提醒的人", | ||||
"search_phone": "查找手机号", | "search_phone": "查找手机号", | ||||
"not_have_user": "用户不存在", | "not_have_user": "用户不存在", | ||||
"not_add_Myself": "你不能添加自己", | |||||
"you_are_blaklisted": "对方已拉黑了你", | "you_are_blaklisted": "对方已拉黑了你", | ||||
"confrim_recovery": "确定恢复已被焚毁的照片吗?\n(已经看过的用户可以再看一次)", | "confrim_recovery": "确定恢复已被焚毁的照片吗?\n(已经看过的用户可以再看一次)", | ||||
"send_to": "發送到", | "send_to": "發送到", | ||||
@@ -1214,8 +1215,9 @@ | |||||
"translation_scenes_3": "KTV/酒吧", | "translation_scenes_3": "KTV/酒吧", | ||||
"translation_scenes_4": "其他", | "translation_scenes_4": "其他", | ||||
"file": "文件", | "file": "文件", | ||||
"max_file":"文件大于/s1M", | |||||
"translation_scenes_4": "其他", | |||||
"max_file": "文件大于/s1M", | |||||
"translation_input_limit": "还可以输入/s1字", | "translation_input_limit": "还可以输入/s1字", | ||||
"translation_more_desc": "更多描述" | |||||
"translation_more_desc": "更多描述", | |||||
"feedback_assistant": "反馈小助手", | |||||
"feedback_tips": "有什么问题都可以反馈给我哦" | |||||
} | } |
@@ -1153,16 +1153,16 @@ | |||||
"enter_num_qian": "Số lượng hối đổi (đơn vị K)", | "enter_num_qian": "Số lượng hối đổi (đơn vị K)", | ||||
"enter_num_qian1": "Số lượng tiền rút (đơn vị K)", | "enter_num_qian1": "Số lượng tiền rút (đơn vị K)", | ||||
"daily_translate_voucher": "翻译券", | "daily_translate_voucher": "翻译券", | ||||
"msg_notice":"通知消息", | |||||
"select_notice_people":"选择提醒的人", | |||||
"search_phone":"查找手机号", | |||||
"not_have_user":"用户不存在", | |||||
"not_add_Myself":"你不能添加自己", | |||||
"you_are_blaklisted":"对方已拉黑了你", | |||||
"confrim_recovery":"确定恢复已被焚毁的照片吗?\n(已经看过的用户可以再看一次)", | |||||
"msg_notice": "通知消息", | |||||
"select_notice_people": "选择提醒的人", | |||||
"search_phone": "查找手机号", | |||||
"not_have_user": "用户不存在", | |||||
"not_add_Myself": "你不能添加自己", | |||||
"you_are_blaklisted": "对方已拉黑了你", | |||||
"confrim_recovery": "确定恢复已被焚毁的照片吗?\n(已经看过的用户可以再看一次)", | |||||
"send_to": "發送到", | "send_to": "發送到", | ||||
"search_plach":"搜索位置", | |||||
"finding_place":"查找位置", | |||||
"search_plach": "搜索位置", | |||||
"finding_place": "查找位置", | |||||
"real_time_helper": "实时帮", | "real_time_helper": "实时帮", | ||||
"translation_butler": "翻译管家", | "translation_butler": "翻译管家", | ||||
"travel_butler": "出行管家", | "travel_butler": "出行管家", | ||||
@@ -1215,8 +1215,9 @@ | |||||
"translation_scenes_3": "KTV/酒吧", | "translation_scenes_3": "KTV/酒吧", | ||||
"translation_scenes_4": "其他", | "translation_scenes_4": "其他", | ||||
"file": "文件", | "file": "文件", | ||||
"max_file":"文件大于/s1M", | |||||
"translation_scenes_4": "其他", | |||||
"max_file": "文件大于/s1M", | |||||
"translation_input_limit": "还可以输入/s1字", | "translation_input_limit": "还可以输入/s1字", | ||||
"translation_more_desc": "更多描述" | |||||
"translation_more_desc": "更多描述", | |||||
"feedback_assistant": "反馈小助手", | |||||
"feedback_tips":"有什么问题都可以反馈给我哦" | |||||
} | } |
@@ -1214,9 +1214,10 @@ | |||||
"translation_scenes_2": "餐厅/酒店", | "translation_scenes_2": "餐厅/酒店", | ||||
"translation_scenes_3": "KTV/酒吧", | "translation_scenes_3": "KTV/酒吧", | ||||
"translation_scenes_4": "其他", | "translation_scenes_4": "其他", | ||||
"translation_input_limit": "还可以输入/s1字", | |||||
"translation_more_desc": "更多描述", | |||||
"translation_scenes_4": "其他", | |||||
"translation_input_limit": "还可以输入/s1字", | |||||
"translation_more_desc": "更多描述", | |||||
"file": "文件", | "file": "文件", | ||||
"max_file":"文件大于/s1M" | |||||
"max_file": "文件大于/s1M", | |||||
"feedback_assistant":"反馈小助手", | |||||
"feedback_tips":"有什么问题都可以反馈给我哦" | |||||
} | } |
@@ -1215,10 +1215,9 @@ | |||||
"translation_scenes_3": "KTV/酒吧", | "translation_scenes_3": "KTV/酒吧", | ||||
"translation_scenes_4": "其他", | "translation_scenes_4": "其他", | ||||
"file": "文件", | "file": "文件", | ||||
"max_file":"文件大於/s1M", | |||||
"translation_scenes_4": "其他", | |||||
"max_file": "文件大於/s1M", | |||||
"translation_input_limit": "还可以输入/s1字", | "translation_input_limit": "还可以输入/s1字", | ||||
"translation_more_desc": "更多描述" | |||||
"translation_more_desc": "更多描述", | |||||
"feedback_assistant": "反饋小助手", | |||||
"feedback_tips":"有什麼問題都可以反饋給我哦" | |||||
} | } |
@@ -46,7 +46,7 @@ class _CompanyServerPageState extends State<CompanyServerPage> { | |||||
UserInfo companyInfo = UserInfo( | UserInfo companyInfo = UserInfo( | ||||
userId: companyId, | userId: companyId, | ||||
headimgurl: R.assetsImagesServerIcon, | headimgurl: R.assetsImagesServerIcon, | ||||
nickName: '反馈小助手'); | |||||
nickName: I18n.of(Constants.getCurrentContext()).feedback_assistant); | |||||
@override | @override | ||||
void initState() { | void initState() { | ||||
@@ -278,7 +278,7 @@ class _CompanyServerPageState extends State<CompanyServerPage> { | |||||
? Padding( | ? Padding( | ||||
padding: EdgeInsets.all(8), | padding: EdgeInsets.all(8), | ||||
child: Text( | child: Text( | ||||
'有什么问题都可以反馈给我哦', | |||||
I18n.of(context).feedback_tips, | |||||
textAlign: TextAlign.center, | textAlign: TextAlign.center, | ||||
textScaleFactor: 1.0, | textScaleFactor: 1.0, | ||||
style: TextStyle(color: Colors.grey, fontSize: 12), | style: TextStyle(color: Colors.grey, fontSize: 12), | ||||
@@ -318,7 +318,7 @@ class _CompanyServerPageState extends State<CompanyServerPage> { | |||||
backgroundColor: const Color(0xFFE2E9F1), | backgroundColor: const Color(0xFFE2E9F1), | ||||
appBar: AppBar( | appBar: AppBar( | ||||
title: Text( | title: Text( | ||||
'反馈小助手', | |||||
I18n.of(context).feedback_assistant, | |||||
textScaleFactor: 1.0, | textScaleFactor: 1.0, | ||||
style: | style: | ||||
TextStyle(color: Constants.BlackTextColor, fontSize: 16.47), | TextStyle(color: Constants.BlackTextColor, fontSize: 16.47), | ||||
@@ -12,6 +12,7 @@ import 'package:chat/chat/upload_item.dart'; | |||||
import 'package:chat/chat/video_view.dart'; | import 'package:chat/chat/video_view.dart'; | ||||
import 'package:chat/data/UserData.dart'; | import 'package:chat/data/UserData.dart'; | ||||
import 'package:chat/data/constants.dart'; | import 'package:chat/data/constants.dart'; | ||||
import 'package:chat/utils/friend_list_mgr.dart'; | |||||
import 'package:chat/utils/wpop/w_popup_menu.dart'; | import 'package:chat/utils/wpop/w_popup_menu.dart'; | ||||
import 'package:flutter/services.dart'; | import 'package:flutter/services.dart'; | ||||
import 'package:chat/generated/i18n.dart'; | import 'package:chat/generated/i18n.dart'; | ||||
@@ -1299,7 +1300,9 @@ class _GroupChatPageItemState extends State<GroupChatPageItem> | |||||
child: Image.asset(R.assetsImagesDefaultNorAvatar))), | child: Image.asset(R.assetsImagesDefaultNorAvatar))), | ||||
onTap: () { | onTap: () { | ||||
AppNavigator.pushProfileInfoPage(context, memberModel.memberId, | AppNavigator.pushProfileInfoPage(context, memberModel.memberId, | ||||
fromWhere: 2, addMode: 1); | |||||
fromWhere: 2, | |||||
addMode: | |||||
FriendListMgr().isMyFriend(memberModel.memberId) ? 1 : 0); | |||||
}, | }, | ||||
onLongPress: () { | onLongPress: () { | ||||
print('long press user'); | print('long press user'); | ||||
@@ -33,7 +33,6 @@ import 'input_bar.dart'; | |||||
import 'package:chat/models/ref_name_provider.dart'; | import 'package:chat/models/ref_name_provider.dart'; | ||||
import 'package:fixnum/fixnum.dart'; | import 'package:fixnum/fixnum.dart'; | ||||
class GroupChatPage extends StatefulWidget { | class GroupChatPage extends StatefulWidget { | ||||
final GroupInfoModel groupInfoModel; | final GroupInfoModel groupInfoModel; | ||||
final int enterType; // 0默认 1图片 | final int enterType; // 0默认 1图片 | ||||
@@ -91,13 +90,11 @@ class _GroupChatPageState extends State<GroupChatPage> { | |||||
msgList = ChatDataMgr().getGroupRecord(); | msgList = ChatDataMgr().getGroupRecord(); | ||||
for(int k=0;k<msgList.length;k++){ | |||||
for (int k = 0; k < msgList.length; k++) { | |||||
MsgModel msg = msgList[k]; | MsgModel msg = msgList[k]; | ||||
print('msgList ${msg.msgType} ${msg.from}' ); | |||||
print('msgList ${msg.msgType} ${msg.from}'); | |||||
} | } | ||||
msgMgr.on('New Chat Message', receiveMsg); | msgMgr.on('New Chat Message', receiveMsg); | ||||
msgMgr.on('Keyboard Hide', dealWithKeyboardHide); | msgMgr.on('Keyboard Hide', dealWithKeyboardHide); | ||||
msgMgr.on('Update Group Info', updateGroupInfo); | msgMgr.on('Update Group Info', updateGroupInfo); | ||||
@@ -111,7 +108,8 @@ class _GroupChatPageState extends State<GroupChatPage> { | |||||
//转发消息 | //转发消息 | ||||
MsgModel originMsg = widget.enterContent; | MsgModel originMsg = widget.enterContent; | ||||
MsgModel msg = MsgHandler.createSendMsg( | MsgModel msg = MsgHandler.createSendMsg( | ||||
ChatType.valueOf(originMsg.msgType), originMsg.msgContent,channelType: ChatChannelType.Group); | |||||
ChatType.valueOf(originMsg.msgType), originMsg.msgContent, | |||||
channelType: ChatChannelType.Group); | |||||
msg.extraInfo = originMsg.extraInfo; | msg.extraInfo = originMsg.extraInfo; | ||||
msg.extraFile = originMsg.extraFile; | msg.extraFile = originMsg.extraFile; | ||||
msg.localFile = originMsg.localFile; | msg.localFile = originMsg.localFile; | ||||
@@ -124,8 +122,7 @@ class _GroupChatPageState extends State<GroupChatPage> { | |||||
}); | }); | ||||
} | } | ||||
void _sendFile( File file) async { | |||||
void _sendFile(File file) async { | |||||
// File file = await FilePicker.getFile(); | // File file = await FilePicker.getFile(); | ||||
int fileSize = file.lengthSync(); | int fileSize = file.lengthSync(); | ||||
print('选择的文件 ${file.path} 大小 $fileSize'); | print('选择的文件 ${file.path} 大小 $fileSize'); | ||||
@@ -135,7 +132,6 @@ class _GroupChatPageState extends State<GroupChatPage> { | |||||
return; | return; | ||||
} | } | ||||
var fileName = file.path.split('/').last; | var fileName = file.path.split('/').last; | ||||
print('fileName $fileName'); | print('fileName $fileName'); | ||||
@@ -151,17 +147,13 @@ class _GroupChatPageState extends State<GroupChatPage> { | |||||
fileMsg.size = fileSize; | fileMsg.size = fileSize; | ||||
fileMsg.name = fileName; | fileMsg.name = fileName; | ||||
var msg = MsgHandler.createSendMsg(ChatType.FileChatType, fileMsg.writeToBuffer(), | |||||
friendId: 0, | |||||
localFile: file.path, | |||||
channelType: | |||||
ChatChannelType.Group); | |||||
var msg = MsgHandler.createSendMsg( | |||||
ChatType.FileChatType, fileMsg.writeToBuffer(), | |||||
friendId: 0, localFile: file.path, channelType: ChatChannelType.Group); | |||||
sendMsg(msg); | sendMsg(msg); | ||||
} | } | ||||
updateGroupInfo(args) { | updateGroupInfo(args) { | ||||
print('更新群信息'); | print('更新群信息'); | ||||
if (mounted) { | if (mounted) { | ||||
@@ -384,7 +376,8 @@ class _GroupChatPageState extends State<GroupChatPage> { | |||||
textScaleFactor: 1.0, | textScaleFactor: 1.0, | ||||
style: TextStyle(color: Colors.grey), | style: TextStyle(color: Colors.grey), | ||||
)) | )) | ||||
: Scrollbar(child: ListView.builder( | |||||
: Scrollbar( | |||||
child: ListView.builder( | |||||
reverse: true, | reverse: true, | ||||
shrinkWrap: true, | shrinkWrap: true, | ||||
itemCount: msgList.length, | itemCount: msgList.length, | ||||
@@ -425,21 +418,18 @@ class _GroupChatPageState extends State<GroupChatPage> { | |||||
} | } | ||||
MsgModel msg; | MsgModel msg; | ||||
int count=0; | |||||
testBig(MsgModel msg)async{ | |||||
for(int k=0;k<100;k++){ | |||||
int count = 0; | |||||
testBig(MsgModel msg) async { | |||||
for (int k = 0; k < 100; k++) { | |||||
msg.msgContent = utf8.encode('测试$count'); | msg.msgContent = utf8.encode('测试$count'); | ||||
Int64 time = Int64((DateTime.now()).millisecondsSinceEpoch); | Int64 time = Int64((DateTime.now()).millisecondsSinceEpoch); | ||||
msg.time = time.toInt(); | msg.time = time.toInt(); | ||||
MsgHandler.insertMsgToDB(msg); | MsgHandler.insertMsgToDB(msg); | ||||
MsgHandler.sendChatMsg(msg); | MsgHandler.sendChatMsg(msg); | ||||
await Future.delayed(Duration(milliseconds: 300),(){}); | |||||
await Future.delayed(Duration(milliseconds: 300), () {}); | |||||
count++; | count++; | ||||
} | } | ||||
count=0; | |||||
count = 0; | |||||
print('攻击完毕'); | print('攻击完毕'); | ||||
showToast('攻击完毕'); | showToast('攻击完毕'); | ||||
} | } | ||||
@@ -512,6 +502,7 @@ class _GroupChatPageState extends State<GroupChatPage> { | |||||
padding: EdgeInsets.fromLTRB(15, 15, 15, 13), | padding: EdgeInsets.fromLTRB(15, 15, 15, 13), | ||||
child: Text( | child: Text( | ||||
I18n.of(context).quit_group_tips, | I18n.of(context).quit_group_tips, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(fontSize: 12, color: Color(0xff777777)), | style: TextStyle(fontSize: 12, color: Color(0xff777777)), | ||||
), | ), | ||||
), | ), | ||||
@@ -524,6 +515,7 @@ class _GroupChatPageState extends State<GroupChatPage> { | |||||
height: 60, | height: 60, | ||||
alignment: Alignment.center, | alignment: Alignment.center, | ||||
child: Text(I18n.of(context).determine, | child: Text(I18n.of(context).determine, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle( | style: TextStyle( | ||||
fontSize: 18, color: Constants.ConfrimButtonColor)), | fontSize: 18, color: Constants.ConfrimButtonColor)), | ||||
), | ), | ||||
@@ -540,6 +532,7 @@ class _GroupChatPageState extends State<GroupChatPage> { | |||||
height: 60, | height: 60, | ||||
alignment: Alignment.center, | alignment: Alignment.center, | ||||
child: Text(I18n.of(context).cancel, | child: Text(I18n.of(context).cancel, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(fontSize: 18, color: Color(0xff4B4B4B))), | style: TextStyle(fontSize: 18, color: Color(0xff4B4B4B))), | ||||
), | ), | ||||
) | ) | ||||
@@ -2471,6 +2471,10 @@ class I18n implements WidgetsLocalizations { | |||||
String get translation_input_limit => "还可以输入/s1字"; | String get translation_input_limit => "还可以输入/s1字"; | ||||
/// "更多描述" | /// "更多描述" | ||||
String get translation_more_desc => "更多描述"; | String get translation_more_desc => "更多描述"; | ||||
/// "反馈小助手" | |||||
String get feedback_assistant => "反馈小助手"; | |||||
/// "有什么问题都可以反馈给我哦" | |||||
String get feedback_tips => "有什么问题都可以反馈给我哦"; | |||||
} | } | ||||
class _I18n_en_US extends I18n { | class _I18n_en_US extends I18n { | ||||
@@ -6140,6 +6144,12 @@ class _I18n_vi_VN extends I18n { | |||||
/// "更多描述" | /// "更多描述" | ||||
@override | @override | ||||
String get translation_more_desc => "更多描述"; | String get translation_more_desc => "更多描述"; | ||||
/// "反馈小助手" | |||||
@override | |||||
String get feedback_assistant => "反馈小助手"; | |||||
/// "有什么问题都可以反馈给我哦" | |||||
@override | |||||
String get feedback_tips => "有什么问题都可以反馈给我哦"; | |||||
@override | @override | ||||
TextDirection get textDirection => TextDirection.ltr; | TextDirection get textDirection => TextDirection.ltr; | ||||
@@ -9805,6 +9815,12 @@ class _I18n_zh_HK extends I18n { | |||||
/// "更多描述" | /// "更多描述" | ||||
@override | @override | ||||
String get translation_more_desc => "更多描述"; | String get translation_more_desc => "更多描述"; | ||||
/// "反饋小助手" | |||||
@override | |||||
String get feedback_assistant => "反饋小助手"; | |||||
/// "有什麼問題都可以反饋給我哦" | |||||
@override | |||||
String get feedback_tips => "有什麼問題都可以反饋給我哦"; | |||||
@override | @override | ||||
TextDirection get textDirection => TextDirection.ltr; | TextDirection get textDirection => TextDirection.ltr; | ||||
@@ -13470,6 +13486,12 @@ class _I18n_zh_CN extends _I18n_zh_HK { | |||||
/// "更多描述" | /// "更多描述" | ||||
@override | @override | ||||
String get translation_more_desc => "更多描述"; | String get translation_more_desc => "更多描述"; | ||||
/// "反馈小助手" | |||||
@override | |||||
String get feedback_assistant => "反馈小助手"; | |||||
/// "有什么问题都可以反馈给我哦" | |||||
@override | |||||
String get feedback_tips => "有什么问题都可以反馈给我哦"; | |||||
@override | @override | ||||
TextDirection get textDirection => TextDirection.ltr; | TextDirection get textDirection => TextDirection.ltr; | ||||
@@ -16952,6 +16974,9 @@ class _I18n_ko_KR extends I18n { | |||||
/// "用户不存在" | /// "用户不存在" | ||||
@override | @override | ||||
String get not_have_user => "用户不存在"; | String get not_have_user => "用户不存在"; | ||||
/// "你不能添加自己" | |||||
@override | |||||
String get not_add_Myself => "你不能添加自己"; | |||||
/// "对方已拉黑了你" | /// "对方已拉黑了你" | ||||
@override | @override | ||||
String get you_are_blaklisted => "对方已拉黑了你"; | String get you_are_blaklisted => "对方已拉黑了你"; | ||||
@@ -17132,6 +17157,12 @@ class _I18n_ko_KR extends I18n { | |||||
/// "更多描述" | /// "更多描述" | ||||
@override | @override | ||||
String get translation_more_desc => "更多描述"; | String get translation_more_desc => "更多描述"; | ||||
/// "反馈小助手" | |||||
@override | |||||
String get feedback_assistant => "反馈小助手"; | |||||
/// "有什么问题都可以反馈给我哦" | |||||
@override | |||||
String get feedback_tips => "有什么问题都可以反馈给我哦"; | |||||
@override | @override | ||||
TextDirection get textDirection => TextDirection.ltr; | TextDirection get textDirection => TextDirection.ltr; | ||||
@@ -20797,6 +20828,12 @@ class _I18n_ja_JP extends I18n { | |||||
/// "更多描述" | /// "更多描述" | ||||
@override | @override | ||||
String get translation_more_desc => "更多描述"; | String get translation_more_desc => "更多描述"; | ||||
/// "反馈小助手" | |||||
@override | |||||
String get feedback_assistant => "反馈小助手"; | |||||
/// "有什么问题都可以反馈给我哦" | |||||
@override | |||||
String get feedback_tips => "有什么问题都可以反馈给我哦"; | |||||
@override | @override | ||||
TextDirection get textDirection => TextDirection.ltr; | TextDirection get textDirection => TextDirection.ltr; | ||||
@@ -636,11 +636,11 @@ import 'package:flutter/material.dart'; | |||||
import 'package:shared_preferences/shared_preferences.dart'; | import 'package:shared_preferences/shared_preferences.dart'; | ||||
import '../data/constants.dart' | import '../data/constants.dart' | ||||
show | show | ||||
AppColors, | |||||
AppStyles, | |||||
Constants, | |||||
GlobalSearchPageType, | |||||
GroupOperatingPageType; | |||||
AppColors, | |||||
AppStyles, | |||||
Constants, | |||||
GlobalSearchPageType, | |||||
GroupOperatingPageType; | |||||
import 'package:cached_network_image/cached_network_image.dart'; | import 'package:cached_network_image/cached_network_image.dart'; | ||||
import 'create_group_view.dart'; | import 'create_group_view.dart'; | ||||
@@ -650,11 +650,11 @@ import 'group_item_widget.dart'; | |||||
class _ConversationItem extends StatelessWidget { | class _ConversationItem extends StatelessWidget { | ||||
const _ConversationItem( | const _ConversationItem( | ||||
{Key key, | {Key key, | ||||
this.conversation, | |||||
this.callback, | |||||
this.icon, | |||||
this.bgColor, | |||||
this.iconSize = 20}) | |||||
this.conversation, | |||||
this.callback, | |||||
this.icon, | |||||
this.bgColor, | |||||
this.iconSize = 20}) | |||||
: assert(conversation != null), | : assert(conversation != null), | ||||
super(key: key); | super(key: key); | ||||
final icon; | final icon; | ||||
@@ -714,7 +714,7 @@ class _ConversationItem extends StatelessWidget { | |||||
alignment: Alignment.center, | alignment: Alignment.center, | ||||
decoration: BoxDecoration( | decoration: BoxDecoration( | ||||
borderRadius: | borderRadius: | ||||
BorderRadius.circular(Constants.UnReadMsgNotifyDotSize / 2.0), | |||||
BorderRadius.circular(Constants.UnReadMsgNotifyDotSize / 2.0), | |||||
color: Color(0xFFFF5454), | color: Color(0xFFFF5454), | ||||
), | ), | ||||
child: Text(countStr, | child: Text(countStr, | ||||
@@ -722,9 +722,9 @@ class _ConversationItem extends StatelessWidget { | |||||
); | ); | ||||
_rightArea.add(Expanded( | _rightArea.add(Expanded( | ||||
child: Align( | child: Align( | ||||
alignment: Alignment.bottomCenter, | |||||
child: unreadMsgCountText, | |||||
))); | |||||
alignment: Alignment.bottomCenter, | |||||
child: unreadMsgCountText, | |||||
))); | |||||
} | } | ||||
return InkWell( | return InkWell( | ||||
@@ -935,9 +935,9 @@ class _ConversActionPageState extends State<ConversActionPage> | |||||
child: Container( | child: Container( | ||||
padding: EdgeInsets.only(left: 2), | padding: EdgeInsets.only(left: 2), | ||||
decoration: BoxDecoration( | decoration: BoxDecoration( | ||||
//color: Constants.LightGreyBackgroundColor, | |||||
//color: Constants.LightGreyBackgroundColor, | |||||
border: | border: | ||||
Border(bottom: BorderSide(color: Color(0xffeaeaea)))), | |||||
Border(bottom: BorderSide(color: Color(0xffeaeaea)))), | |||||
alignment: Alignment.centerLeft, | alignment: Alignment.centerLeft, | ||||
child: TabBar( | child: TabBar( | ||||
isScrollable: true, | isScrollable: true, | ||||
@@ -970,8 +970,8 @@ class _ConversActionPageState extends State<ConversActionPage> | |||||
), | ), | ||||
body: SafeArea( | body: SafeArea( | ||||
child: TabBarView( | child: TabBarView( | ||||
children: <Widget>[ | |||||
LastChatPage(), | |||||
children: <Widget>[ | |||||
LastChatPage(), | |||||
// ListView.builder( | // ListView.builder( | ||||
//// controller: _scrollController, | //// controller: _scrollController, | ||||
// itemBuilder: (BuildContext context, int index) { | // itemBuilder: (BuildContext context, int index) { | ||||
@@ -984,155 +984,155 @@ class _ConversActionPageState extends State<ConversActionPage> | |||||
// }, | // }, | ||||
// itemCount: groupList.length + 1, | // itemCount: groupList.length + 1, | ||||
// ), | // ), | ||||
ListView( | |||||
children: <Widget>[ | |||||
SizedBox(height: 8.5), | |||||
_ConversationItem( | |||||
icon: 'assets/images/chat/icon1.png', | |||||
bgColor: Constants.RadioGradient, | |||||
conversation: Conversation( | |||||
avatar: 'assets/images/ic_tx_news.png', | |||||
title: I18n.of(context).radio_message, | |||||
desc: RichTitle.normalTitle( | |||||
systemInfo['castList'], context, InfoType.Radio), | |||||
updateAt: systemInfo['castList'] == null | |||||
? "" | |||||
: WebData().getLoginTime( | |||||
ListView( | |||||
children: <Widget>[ | |||||
SizedBox(height: 8.5), | |||||
_ConversationItem( | |||||
icon: 'assets/images/chat/icon1.png', | |||||
bgColor: Constants.RadioGradient, | |||||
conversation: Conversation( | |||||
avatar: 'assets/images/ic_tx_news.png', | |||||
title: I18n.of(context).radio_message, | |||||
desc: RichTitle.normalTitle( | |||||
systemInfo['castList'], context, InfoType.Radio), | |||||
updateAt: systemInfo['castList'] == null | |||||
? "" | |||||
: WebData().getLoginTime( | |||||
context, systemInfo['castList']['CreateTime']), | context, systemInfo['castList']['CreateTime']), | ||||
unreadMsgCount: systemInfo['castCount'], | |||||
unreadMsgCount: systemInfo['castCount'], | |||||
), | |||||
callback: () { | |||||
setResNum(Constants.CastCount); | |||||
Navigator.of(context).push( | |||||
new MaterialPageRoute( | |||||
builder: (context) { | |||||
return InfoListPage( | |||||
title: I18n.of(context).radio_message, | |||||
type: InfoType.Radio, | |||||
); | |||||
}, | |||||
), | ), | ||||
callback: () { | |||||
setResNum(Constants.CastCount); | |||||
Navigator.of(context).push( | |||||
new MaterialPageRoute( | |||||
builder: (context) { | |||||
return InfoListPage( | |||||
title: I18n.of(context).radio_message, | |||||
type: InfoType.Radio, | |||||
); | |||||
}, | |||||
), | |||||
); | |||||
}, | |||||
), | |||||
_ConversationItem( | |||||
icon: 'assets/images/chat/icon4.png', | |||||
bgColor: Constants.MoneyGradient, | |||||
conversation: Conversation( | |||||
avatar: 'assets/images/ic_tx_news.png', | |||||
title: I18n.of(context).wallet_reminder, | |||||
desc: RichTitle.normalTitle( | |||||
systemInfo['walletList'], context, InfoType.IncomeMoney), | |||||
updateAt: systemInfo['walletList'] == null | |||||
? "" | |||||
: WebData().getLoginTime( | |||||
); | |||||
}, | |||||
), | |||||
_ConversationItem( | |||||
icon: 'assets/images/chat/icon4.png', | |||||
bgColor: Constants.MoneyGradient, | |||||
conversation: Conversation( | |||||
avatar: 'assets/images/ic_tx_news.png', | |||||
title: I18n.of(context).wallet_reminder, | |||||
desc: RichTitle.normalTitle(systemInfo['walletList'], | |||||
context, InfoType.IncomeMoney), | |||||
updateAt: systemInfo['walletList'] == null | |||||
? "" | |||||
: WebData().getLoginTime( | |||||
context, systemInfo['walletList']['CreateTime']), | context, systemInfo['walletList']['CreateTime']), | ||||
unreadMsgCount: systemInfo['walletCount'], | |||||
unreadMsgCount: systemInfo['walletCount'], | |||||
), | |||||
callback: () { | |||||
setResNum(Constants.WalletCount); | |||||
Navigator.of(context).push( | |||||
new MaterialPageRoute( | |||||
builder: (context) { | |||||
return InfoListPage( | |||||
title: I18n.of(context).wallet_reminder, | |||||
type: InfoType.IncomeMoney, | |||||
); | |||||
}, | |||||
), | ), | ||||
callback: () { | |||||
setResNum(Constants.WalletCount); | |||||
Navigator.of(context).push( | |||||
new MaterialPageRoute( | |||||
builder: (context) { | |||||
return InfoListPage( | |||||
title: I18n.of(context).wallet_reminder, | |||||
type: InfoType.IncomeMoney, | |||||
); | |||||
}, | |||||
), | |||||
); | |||||
}, | |||||
), | |||||
_ConversationItem( | |||||
icon: 'assets/images/chat/icon3.png', | |||||
iconSize: 27, | |||||
bgColor: Constants.ApplyGradient, | |||||
conversation: Conversation( | |||||
avatar: 'assets/images/ic_tx_news.png', | |||||
title: I18n.of(context).application_notice, | |||||
desc: RichTitle.normalTitle( | |||||
systemInfo['applyList'], context, InfoType.Apply), | |||||
updateAt: systemInfo['applyList'] == null | |||||
? "" | |||||
: WebData().getLoginTime( | |||||
); | |||||
}, | |||||
), | |||||
_ConversationItem( | |||||
icon: 'assets/images/chat/icon3.png', | |||||
iconSize: 27, | |||||
bgColor: Constants.ApplyGradient, | |||||
conversation: Conversation( | |||||
avatar: 'assets/images/ic_tx_news.png', | |||||
title: I18n.of(context).application_notice, | |||||
desc: RichTitle.normalTitle( | |||||
systemInfo['applyList'], context, InfoType.Apply), | |||||
updateAt: systemInfo['applyList'] == null | |||||
? "" | |||||
: WebData().getLoginTime( | |||||
context, systemInfo['applyList']['CreatTime']), | context, systemInfo['applyList']['CreatTime']), | ||||
unreadMsgCount: systemInfo['applyCount'], | |||||
unreadMsgCount: systemInfo['applyCount'], | |||||
), | |||||
callback: () { | |||||
setResNum(Constants.ApplyCount); | |||||
Navigator.of(context).push( | |||||
new MaterialPageRoute( | |||||
builder: (context) { | |||||
return InfoListPage( | |||||
title: I18n.of(context).application_notice, | |||||
type: InfoType.Apply, | |||||
); | |||||
}, | |||||
), | ), | ||||
callback: () { | |||||
setResNum(Constants.ApplyCount); | |||||
Navigator.of(context).push( | |||||
new MaterialPageRoute( | |||||
builder: (context) { | |||||
return InfoListPage( | |||||
title: I18n.of(context).application_notice, | |||||
type: InfoType.Apply, | |||||
); | |||||
}, | |||||
), | |||||
); | |||||
}, | |||||
), | |||||
_ConversationItem( | |||||
icon: 'assets/images/chat/icon6.png', | |||||
bgColor: Constants.EvaGradient, | |||||
conversation: Conversation( | |||||
avatar: 'assets/images/ic_tx_news.png', | |||||
title: I18n.of(context).evaluation_notice, | |||||
desc: RichTitle.normalTitle(systemInfo['evaluateList'], | |||||
context, InfoType.Evaluation), | |||||
updateAt: systemInfo['evaluateList'] == null | |||||
? '' | |||||
: WebData().getLoginTime( | |||||
); | |||||
}, | |||||
), | |||||
_ConversationItem( | |||||
icon: 'assets/images/chat/icon6.png', | |||||
bgColor: Constants.EvaGradient, | |||||
conversation: Conversation( | |||||
avatar: 'assets/images/ic_tx_news.png', | |||||
title: I18n.of(context).evaluation_notice, | |||||
desc: RichTitle.normalTitle(systemInfo['evaluateList'], | |||||
context, InfoType.Evaluation), | |||||
updateAt: systemInfo['evaluateList'] == null | |||||
? '' | |||||
: WebData().getLoginTime( | |||||
context, systemInfo['evaluateList']['CreateTime']), | context, systemInfo['evaluateList']['CreateTime']), | ||||
unreadMsgCount: systemInfo['evaluateCount'], | |||||
unreadMsgCount: systemInfo['evaluateCount'], | |||||
), | |||||
callback: () { | |||||
setResNum(Constants.EvaluateCount); | |||||
Navigator.of(context).push( | |||||
new MaterialPageRoute( | |||||
builder: (context) { | |||||
return InfoListPage( | |||||
title: I18n.of(context).evaluation_notice, | |||||
type: 2, | |||||
); | |||||
}, | |||||
), | ), | ||||
callback: () { | |||||
setResNum(Constants.EvaluateCount); | |||||
Navigator.of(context).push( | |||||
new MaterialPageRoute( | |||||
builder: (context) { | |||||
return InfoListPage( | |||||
title: I18n.of(context).evaluation_notice, | |||||
type: 2, | |||||
); | |||||
}, | |||||
), | |||||
); | |||||
}, | |||||
), | |||||
_ConversationItem( | |||||
icon: 'assets/images/chat/icon5.png', | |||||
bgColor: Constants.ParkGradient, | |||||
conversation: Conversation( | |||||
avatar: 'assets/images/ic_tx_news.png', | |||||
title: I18n.of(context).appName, | |||||
desc: RichTitle.normalTitle( | |||||
systemInfo['parkList'], context, InfoType.System), | |||||
updateAt: systemInfo['parkList'] == null | |||||
? "" | |||||
: WebData().getLoginTime( | |||||
); | |||||
}, | |||||
), | |||||
_ConversationItem( | |||||
icon: 'assets/images/chat/icon5.png', | |||||
bgColor: Constants.ParkGradient, | |||||
conversation: Conversation( | |||||
avatar: 'assets/images/ic_tx_news.png', | |||||
title: I18n.of(context).appName, | |||||
desc: RichTitle.normalTitle( | |||||
systemInfo['parkList'], context, InfoType.System), | |||||
updateAt: systemInfo['parkList'] == null | |||||
? "" | |||||
: WebData().getLoginTime( | |||||
context, systemInfo['parkList']['CreateTime']), | context, systemInfo['parkList']['CreateTime']), | ||||
unreadMsgCount: systemInfo['parkCount'], | |||||
unreadMsgCount: systemInfo['parkCount'], | |||||
), | |||||
callback: () { | |||||
setResNum(Constants.ParkCount); | |||||
Navigator.of(context).push( | |||||
new MaterialPageRoute( | |||||
builder: (context) { | |||||
return InfoListPage( | |||||
title: I18n.of(context).appName, | |||||
type: InfoType.System, | |||||
); | |||||
}, | |||||
), | ), | ||||
callback: () { | |||||
setResNum(Constants.ParkCount); | |||||
Navigator.of(context).push( | |||||
new MaterialPageRoute( | |||||
builder: (context) { | |||||
return InfoListPage( | |||||
title: I18n.of(context).appName, | |||||
type: InfoType.System, | |||||
); | |||||
}, | |||||
), | |||||
); | |||||
}, | |||||
) | |||||
], | |||||
); | |||||
}, | |||||
) | ) | ||||
], | ], | ||||
controller: tabCtrl, | |||||
))); | |||||
) | |||||
], | |||||
controller: tabCtrl, | |||||
))); | |||||
} | } | ||||
Widget _buildCreateButton() { | Widget _buildCreateButton() { | ||||
@@ -1174,6 +1174,7 @@ class _ConversActionPageState extends State<ConversActionPage> | |||||
SizedBox(width: 14.0), | SizedBox(width: 14.0), | ||||
Text( | Text( | ||||
I18n.of(context).create_group_chat, | I18n.of(context).create_group_chat, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(fontSize: 15.5), | style: TextStyle(fontSize: 15.5), | ||||
), | ), | ||||
], | ], | ||||
@@ -1188,7 +1189,10 @@ class _ConversActionPageState extends State<ConversActionPage> | |||||
decoration: BoxDecoration( | decoration: BoxDecoration( | ||||
color: Colors.white, | color: Colors.white, | ||||
border: Border(bottom: Constants.GreyBorderSide)), | border: Border(bottom: Constants.GreyBorderSide)), | ||||
child: Text(I18n.of(context).group_chat + '(${groupList.length})'), | |||||
child: Text( | |||||
I18n.of(context).group_chat + '(${groupList.length})', | |||||
textScaleFactor: 1.0, | |||||
), | |||||
); | ); | ||||
return Column( | return Column( | ||||
@@ -153,11 +153,11 @@ class _EditPageState extends State<EditPage> { | |||||
heightStr = (UserData().basicInfo.height == 0.0 || | heightStr = (UserData().basicInfo.height == 0.0 || | ||||
UserData().basicInfo.height == null) | UserData().basicInfo.height == null) | ||||
? I18n.of(context).not_show | ? I18n.of(context).not_show | ||||
: '${UserData().basicInfo.height}M'; | |||||
: '${UserData().basicInfo.height.toInt()}CM'; | |||||
weightStr = (UserData().basicInfo.weight == 0.0 || | weightStr = (UserData().basicInfo.weight == 0.0 || | ||||
UserData().basicInfo.weight == null) | UserData().basicInfo.weight == null) | ||||
? I18n.of(context).not_show | ? I18n.of(context).not_show | ||||
: '${UserData().basicInfo.weight}KG'; | |||||
: '${UserData().basicInfo.weight.toInt()}KG'; | |||||
loadSuccess = true; | loadSuccess = true; | ||||
setState(() {}); | setState(() {}); | ||||
} | } | ||||
@@ -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)], | |||||
), | ), | ||||
) | ) | ||||
], | ], | ||||
@@ -189,6 +189,7 @@ class _IndexPageState extends State<IndexPage> { | |||||
Container( | Container( | ||||
child: Text( | child: Text( | ||||
I18n.of(context).net_error, | I18n.of(context).net_error, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: Color(0xFF8F8E8E), fontSize: 21.5), | style: TextStyle(color: Color(0xFF8F8E8E), fontSize: 21.5), | ||||
), | ), | ||||
), | ), | ||||
@@ -207,6 +208,7 @@ class _IndexPageState extends State<IndexPage> { | |||||
borderRadius: BorderRadius.circular(8)), | borderRadius: BorderRadius.circular(8)), | ||||
child: Text( | child: Text( | ||||
I18n.of(context).re_connect, | I18n.of(context).re_connect, | ||||
textScaleFactor: 1.0, | |||||
style: | style: | ||||
TextStyle(color: Color(0xFF3875E9), fontSize: 20.22), | TextStyle(color: Color(0xFF3875E9), fontSize: 20.22), | ||||
), | ), | ||||
@@ -614,6 +614,7 @@ class _InfoListPageState extends State<InfoListPage> | |||||
rightButton: userInfo['Status'] == 0 || userInfo['Status'] == 3 | rightButton: userInfo['Status'] == 0 || userInfo['Status'] == 3 | ||||
? botton | ? botton | ||||
: Text(userInfo['Status'] == 1 ? I18n.of(context).appealed : "", | : Text(userInfo['Status'] == 1 ? I18n.of(context).appealed : "", | ||||
textScaleFactor: 1.0, | |||||
style: | style: | ||||
TextStyle(fontSize: 11, color: Constants.LightGreyTextColor)), | TextStyle(fontSize: 11, color: Constants.LightGreyTextColor)), | ||||
title: | title: | ||||
@@ -684,7 +685,7 @@ class _InfoListPageState extends State<InfoListPage> | |||||
applyInfo: data['Type'] == 6 ? applyInfo : null, // applyInfo, | applyInfo: data['Type'] == 6 ? applyInfo : null, // applyInfo, | ||||
bgColor: Constants.ParkGradient, | bgColor: Constants.ParkGradient, | ||||
title: data['Type'] == 6 | title: data['Type'] == 6 | ||||
? Text(data['Theme']) | |||||
? Text(data['Theme'], textScaleFactor: 1.0) | |||||
: RichTitle.getRichTitleWidget(data, context, InfoType.System), | : RichTitle.getRichTitleWidget(data, context, InfoType.System), | ||||
callback: () { | callback: () { | ||||
if (data['Type'] == 4 && data['Status'] == 1) { | if (data['Type'] == 4 && data['Status'] == 1) { | ||||
@@ -783,6 +784,7 @@ class _InfoListPageState extends State<InfoListPage> | |||||
backgroundColor: AppColors.NewAppbarBgColor, | backgroundColor: AppColors.NewAppbarBgColor, | ||||
title: Text( | title: Text( | ||||
widget.title, | widget.title, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: AppColors.NewAppbarTextColor), | style: TextStyle(color: AppColors.NewAppbarTextColor), | ||||
), | ), | ||||
leading: CustomUI.buildCustomLeading(context), | leading: CustomUI.buildCustomLeading(context), | ||||
@@ -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, () { | ||||
@@ -183,6 +183,7 @@ class MoneyPageState extends State<MoneyPage> | |||||
margin: EdgeInsets.only(top: 20), | margin: EdgeInsets.only(top: 20), | ||||
child: Text( | child: Text( | ||||
I18n.of(context).withdrawal_application, | I18n.of(context).withdrawal_application, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: Constants.BlackTextColor, fontSize: 16), | style: TextStyle(color: Constants.BlackTextColor, fontSize: 16), | ||||
), | ), | ||||
), | ), | ||||
@@ -276,6 +277,7 @@ class MoneyPageState extends State<MoneyPage> | |||||
margin: EdgeInsets.only(top: 20), | margin: EdgeInsets.only(top: 20), | ||||
child: Text( | child: Text( | ||||
I18n.of(context).charge_h, | I18n.of(context).charge_h, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: Constants.BlackTextColor, fontSize: 16), | style: TextStyle(color: Constants.BlackTextColor, fontSize: 16), | ||||
), | ), | ||||
), | ), | ||||
@@ -438,6 +440,7 @@ class MoneyPageState extends State<MoneyPage> | |||||
width: 120, | width: 120, | ||||
child: Text( | child: Text( | ||||
I18n.of(context).recharge, | I18n.of(context).recharge, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: const Color(0xFFFF717D), fontSize: 14.8), | style: TextStyle(color: const Color(0xFFFF717D), fontSize: 14.8), | ||||
), | ), | ||||
)); | )); | ||||
@@ -461,6 +464,7 @@ class MoneyPageState extends State<MoneyPage> | |||||
width: 120, | width: 120, | ||||
child: Text( | child: Text( | ||||
I18n.of(context).joinvip, | I18n.of(context).joinvip, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: Colors.white, fontSize: 14.8), | style: TextStyle(color: Colors.white, fontSize: 14.8), | ||||
), | ), | ||||
)); | )); | ||||
@@ -503,6 +507,7 @@ class MoneyPageState extends State<MoneyPage> | |||||
Container( | Container( | ||||
child: Text( | child: Text( | ||||
I18n.of(context).my_money_info, | I18n.of(context).my_money_info, | ||||
textScaleFactor: 1.0, | |||||
style: | style: | ||||
TextStyle(color: Colors.white, fontSize: 12), | TextStyle(color: Colors.white, fontSize: 12), | ||||
), | ), | ||||
@@ -519,6 +524,7 @@ class MoneyPageState extends State<MoneyPage> | |||||
alignment: Alignment.center, | alignment: Alignment.center, | ||||
child: Text( | child: Text( | ||||
I18n.of(context).my_left_money, | I18n.of(context).my_left_money, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: Colors.white, fontSize: 15), | style: TextStyle(color: Colors.white, fontSize: 15), | ||||
), | ), | ||||
), | ), | ||||
@@ -528,6 +534,7 @@ class MoneyPageState extends State<MoneyPage> | |||||
child: Text( | child: Text( | ||||
'${Provider.of<MoneyChangeProvider>(context).money}' + | '${Provider.of<MoneyChangeProvider>(context).money}' + | ||||
I18n.of(context).mask_coin, | I18n.of(context).mask_coin, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: Colors.white, fontSize: 31.29), | style: TextStyle(color: Colors.white, fontSize: 31.29), | ||||
), | ), | ||||
), | ), | ||||
@@ -545,6 +552,7 @@ class MoneyPageState extends State<MoneyPage> | |||||
alignment: Alignment.centerLeft, | alignment: Alignment.centerLeft, | ||||
child: Text( | child: Text( | ||||
I18n.of(context).money_tips, | I18n.of(context).money_tips, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: Colors.white, fontSize: 11), | style: TextStyle(color: Colors.white, fontSize: 11), | ||||
), | ), | ||||
), | ), | ||||
@@ -595,6 +603,7 @@ class MoneyPageState extends State<MoneyPage> | |||||
Container( | Container( | ||||
child: Text( | child: Text( | ||||
I18n.of(context).get_money_detail, | I18n.of(context).get_money_detail, | ||||
textScaleFactor: 1.0, | |||||
style: | style: | ||||
TextStyle(color: Colors.white, fontSize: 12), | TextStyle(color: Colors.white, fontSize: 12), | ||||
), | ), | ||||
@@ -604,13 +613,14 @@ class MoneyPageState extends State<MoneyPage> | |||||
size: 16.0, | size: 16.0, | ||||
color: Colors.white, | color: Colors.white, | ||||
), | ), | ||||
SizedBox(width: 5) | |||||
SizedBox(width: 5) | |||||
], | ], | ||||
)), | )), | ||||
Container( | Container( | ||||
alignment: Alignment.center, | alignment: Alignment.center, | ||||
child: Text( | child: Text( | ||||
I18n.of(context).hibok_money, | I18n.of(context).hibok_money, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: Colors.white, fontSize: 15), | style: TextStyle(color: Colors.white, fontSize: 15), | ||||
), | ), | ||||
), | ), | ||||
@@ -624,11 +634,13 @@ class MoneyPageState extends State<MoneyPage> | |||||
(UserData().incomeMoney + UserData().frozenMoney) | (UserData().incomeMoney + UserData().frozenMoney) | ||||
.toString() + | .toString() + | ||||
'K', | 'K', | ||||
textScaleFactor: 1.0, | |||||
style: | style: | ||||
TextStyle(color: Colors.white, fontSize: 31.29), | TextStyle(color: Colors.white, fontSize: 31.29), | ||||
), | ), | ||||
Text( | Text( | ||||
"(${I18n.of(context).can_withdraw}${UserData().incomeMoney}K)", | "(${I18n.of(context).can_withdraw}${UserData().incomeMoney}K)", | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: Colors.white, fontSize: 18), | style: TextStyle(color: Colors.white, fontSize: 18), | ||||
), | ), | ||||
], | ], | ||||
@@ -647,6 +659,7 @@ class MoneyPageState extends State<MoneyPage> | |||||
width: 120, | width: 120, | ||||
child: Text( | child: Text( | ||||
I18n.of(context).exchange_cash, | I18n.of(context).exchange_cash, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle( | style: TextStyle( | ||||
color: const Color(0xFF4F8BFF), | color: const Color(0xFF4F8BFF), | ||||
fontSize: 14.8), | fontSize: 14.8), | ||||
@@ -663,6 +676,7 @@ class MoneyPageState extends State<MoneyPage> | |||||
width: 120, | width: 120, | ||||
child: Text( | child: Text( | ||||
I18n.of(context).charge_h, | I18n.of(context).charge_h, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle( | style: TextStyle( | ||||
color: Colors.white, fontSize: 14.8), | color: Colors.white, fontSize: 14.8), | ||||
), | ), | ||||
@@ -679,6 +693,7 @@ class MoneyPageState extends State<MoneyPage> | |||||
alignment: Alignment.centerLeft, | alignment: Alignment.centerLeft, | ||||
child: Text( | child: Text( | ||||
I18n.of(context).charge_tips, | I18n.of(context).charge_tips, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: Colors.white, fontSize: 11), | style: TextStyle(color: Colors.white, fontSize: 11), | ||||
), | ), | ||||
), | ), | ||||
@@ -134,6 +134,7 @@ class _ConversationItem extends StatelessWidget { | |||||
children: <Widget>[ | children: <Widget>[ | ||||
Text( | Text( | ||||
'${money > 0 ? '+' : ''}$money${I18n.of(context).mask_coin}', | '${money > 0 ? '+' : ''}$money${I18n.of(context).mask_coin}', | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle( | style: TextStyle( | ||||
fontSize: 14, | fontSize: 14, | ||||
fontWeight: FontWeight.w500, | fontWeight: FontWeight.w500, | ||||
@@ -145,6 +146,7 @@ class _ConversationItem extends StatelessWidget { | |||||
padding: EdgeInsets.only(top: 3), | padding: EdgeInsets.only(top: 3), | ||||
child: Text( | child: Text( | ||||
I18n.of(context).alreay_back, | I18n.of(context).alreay_back, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle( | style: TextStyle( | ||||
fontSize: 12, | fontSize: 12, | ||||
fontWeight: FontWeight.normal, | fontWeight: FontWeight.normal, | ||||
@@ -303,6 +305,7 @@ class MoneyPageOldState extends State<MoneyPageOld> | |||||
margin: EdgeInsets.only(top: 20), | margin: EdgeInsets.only(top: 20), | ||||
child: Text( | child: Text( | ||||
I18n.of(context).withdrawal_application, | I18n.of(context).withdrawal_application, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: Constants.BlackTextColor, fontSize: 16), | style: TextStyle(color: Constants.BlackTextColor, fontSize: 16), | ||||
), | ), | ||||
), | ), | ||||
@@ -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() { | ||||
@@ -107,6 +107,7 @@ class _SelectPageState extends State<SelectPage> { | |||||
child: new Text( | child: new Text( | ||||
value, | value, | ||||
textScaleFactor: 1.0, | textScaleFactor: 1.0, | ||||
textAlign: TextAlign.center, | |||||
style: isLeft | style: isLeft | ||||
? TextStyle( | ? TextStyle( | ||||
color: leftSelection == key | color: leftSelection == key | ||||
@@ -18,6 +18,7 @@ class _UserAgreementState extends State<UserAgreement> { | |||||
width: Screen.width, | width: Screen.width, | ||||
child: Text( | child: Text( | ||||
str, | str, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(fontSize: 15, fontWeight: FontWeight.w600), | style: TextStyle(fontSize: 15, fontWeight: FontWeight.w600), | ||||
), | ), | ||||
); | ); | ||||
@@ -30,6 +31,7 @@ class _UserAgreementState extends State<UserAgreement> { | |||||
width: Screen.width, | width: Screen.width, | ||||
child: Text( | child: Text( | ||||
str, | str, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600), | style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600), | ||||
), | ), | ||||
); | ); | ||||
@@ -42,6 +44,7 @@ class _UserAgreementState extends State<UserAgreement> { | |||||
width: Screen.width, | width: Screen.width, | ||||
child: Text( | child: Text( | ||||
str, | str, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600), | style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600), | ||||
), | ), | ||||
); | ); | ||||
@@ -53,6 +56,7 @@ class _UserAgreementState extends State<UserAgreement> { | |||||
width: Screen.width, | width: Screen.width, | ||||
child: Text( | child: Text( | ||||
' ' + str, | ' ' + str, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(fontSize: 14, height: 1.35), | style: TextStyle(fontSize: 14, height: 1.35), | ||||
), | ), | ||||
); | ); | ||||
@@ -156,7 +156,9 @@ class _WhiteAndBlackPageState extends State<WhiteAndBlackPage> { | |||||
Padding( | Padding( | ||||
padding: EdgeInsets.only(left: 10), | padding: EdgeInsets.only(left: 10), | ||||
child: Text( | child: Text( | ||||
WebData().subUserName(userInfo['NickName']), | |||||
WebData().subUserName(Provider.of<RefNameProvider>(context) | |||||
.getRefName( | |||||
userInfo['FollowUserId'], userInfo['NickName'])), | |||||
textScaleFactor: 1.0, | textScaleFactor: 1.0, | ||||
style: | style: | ||||
TextStyle(fontSize: 15, color: Constants.BlackTextColor), | TextStyle(fontSize: 15, color: Constants.BlackTextColor), | ||||
@@ -169,6 +171,9 @@ class _WhiteAndBlackPageState extends State<WhiteAndBlackPage> { | |||||
if (list[i]['FollowUserId'] == userInfo['FollowUserId']) { | if (list[i]['FollowUserId'] == userInfo['FollowUserId']) { | ||||
setState(() { | setState(() { | ||||
list.removeAt(i); | list.removeAt(i); | ||||
if (list.length == 0) { | |||||
_refreshController.refreshCompleted(); | |||||
} | |||||
}); | }); | ||||
break; | break; | ||||
} | } | ||||
@@ -70,7 +70,7 @@ class _ContactItem extends StatelessWidget { | |||||
children: <Widget>[ | children: <Widget>[ | ||||
_avatarIcon, | _avatarIcon, | ||||
SizedBox(width: 10.0), | SizedBox(width: 10.0), | ||||
Expanded(child: Text(title)), | |||||
Expanded(child: Text(title, textScaleFactor: 1.0)), | |||||
state == 1 | state == 1 | ||||
? InkWell( | ? InkWell( | ||||
child: Container( | child: Container( | ||||
@@ -71,7 +71,7 @@ class _MemberItem extends StatelessWidget { | |||||
children: <Widget>[ | children: <Widget>[ | ||||
_avatarIcon, | _avatarIcon, | ||||
SizedBox(width: 10.0), | SizedBox(width: 10.0), | ||||
Text(title), | |||||
Text(title, textScaleFactor: 1.0,), | |||||
], | ], | ||||
), | ), | ||||
); | ); | ||||
@@ -87,7 +87,7 @@ class _MemberItem extends StatelessWidget { | |||||
color: const Color(AppColors.ContactGroupTitleBgColor), | color: const Color(AppColors.ContactGroupTitleBgColor), | ||||
alignment: Alignment.centerLeft, | alignment: Alignment.centerLeft, | ||||
child: | child: | ||||
Text(this.groupTitle, style: AppStyles.GroupTitleItemTextStyle), | |||||
Text(this.groupTitle, textScaleFactor: 1.0,style: AppStyles.GroupTitleItemTextStyle), | |||||
), | ), | ||||
_button, | _button, | ||||
], | ], | ||||
@@ -219,8 +219,10 @@ class _AlterSelectPageState extends State<AlterSelectPage> { | |||||
width: 20, | width: 20, | ||||
child: Text( | child: Text( | ||||
word, | word, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle( | style: TextStyle( | ||||
fontSize: 10, | fontSize: 10, | ||||
color: | color: | ||||
_currentLetter == word ? Colors.white : Colors.black), | _currentLetter == word ? Colors.white : Colors.black), | ||||
))); | ))); | ||||
@@ -340,7 +342,7 @@ class _AlterSelectPageState extends State<AlterSelectPage> { | |||||
), | ), | ||||
child: Center( | child: Center( | ||||
child: | child: | ||||
Text(_currentLetter, style: AppStyles.IndexLetterBoxTextStyle), | |||||
Text(_currentLetter, textScaleFactor: 1.0, style: AppStyles.IndexLetterBoxTextStyle), | |||||
), | ), | ||||
), | ), | ||||
)); | )); | ||||
@@ -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, | |||||
)), | |||||
], | ], | ||||
), | ), | ||||
); | ); | ||||
@@ -359,6 +368,7 @@ class _AudioChatPageState extends State<AudioChatPage> { | |||||
_bottomToolBar() { | _bottomToolBar() { | ||||
List<Widget> showWidgets = [ | List<Widget> showWidgets = [ | ||||
Text(I18n.of(context).voicing, | Text(I18n.of(context).voicing, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(fontSize: 11, color: Colors.white24), | style: TextStyle(fontSize: 11, color: Colors.white24), | ||||
textAlign: TextAlign.center), | textAlign: TextAlign.center), | ||||
SizedBox(height: 10), | SizedBox(height: 10), | ||||
@@ -520,7 +530,7 @@ class _AudioChatPageState extends State<AudioChatPage> { | |||||
color: Colors.white, | color: Colors.white, | ||||
), | ), | ||||
child: giftList == null | child: giftList == null | ||||
? Center(child: Text(I18n.of(context).no_gift)) | |||||
? Center(child: Text(I18n.of(context).no_gift, textScaleFactor: 1.0,)) | |||||
: Column( | : Column( | ||||
children: <Widget>[ | children: <Widget>[ | ||||
Container( | Container( | ||||
@@ -104,6 +104,7 @@ class _FriendSelectItemState extends State<FriendSelectItem> { | |||||
child: Container( | child: Container( | ||||
child: Text( | child: Text( | ||||
widget.friendModel.getTitle(), | widget.friendModel.getTitle(), | ||||
textScaleFactor: 1.0, | |||||
overflow: TextOverflow.ellipsis, | overflow: TextOverflow.ellipsis, | ||||
)), | )), | ||||
) | ) | ||||
@@ -122,7 +123,7 @@ class _FriendSelectItemState extends State<FriendSelectItem> { | |||||
color: const Color(AppColors.ContactGroupTitleBgColor), | color: const Color(AppColors.ContactGroupTitleBgColor), | ||||
alignment: Alignment.centerLeft, | alignment: Alignment.centerLeft, | ||||
child: Text(widget.groupTitle, | child: Text(widget.groupTitle, | ||||
style: AppStyles.GroupTitleItemTextStyle), | |||||
textScaleFactor: 1.0, style: AppStyles.GroupTitleItemTextStyle), | |||||
), | ), | ||||
_button, | _button, | ||||
], | ], | ||||
@@ -482,8 +483,11 @@ class _CreateGroupPageState extends State<CreateGroupPage> { | |||||
Radius.circular(Constants.IndexLetterBoxRadius)), | Radius.circular(Constants.IndexLetterBoxRadius)), | ||||
), | ), | ||||
child: Center( | child: Center( | ||||
child: | |||||
Text(_currentLetter, style: AppStyles.IndexLetterBoxTextStyle), | |||||
child: Text( | |||||
_currentLetter, | |||||
style: AppStyles.IndexLetterBoxTextStyle, | |||||
textScaleFactor: 1.0, | |||||
), | |||||
), | ), | ||||
), | ), | ||||
)); | )); | ||||
@@ -430,6 +430,7 @@ class DailyBouusState extends State with SingleTickerProviderStateMixin { | |||||
padding: EdgeInsets.fromLTRB(18, 0, 18, 18), | padding: EdgeInsets.fromLTRB(18, 0, 18, 18), | ||||
child: Text( | child: Text( | ||||
rules, | rules, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle( | style: TextStyle( | ||||
color: Color(0xffFF0000), fontSize: 12), | color: Color(0xffFF0000), fontSize: 12), | ||||
), | ), | ||||
@@ -80,6 +80,7 @@ class _FindPageState extends State<FindPage> { | |||||
margin: EdgeInsets.only(left: 15), | margin: EdgeInsets.only(left: 15), | ||||
child: Text( | child: Text( | ||||
text, | text, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(fontSize: 16), | style: TextStyle(fontSize: 16), | ||||
), | ), | ||||
), | ), | ||||
@@ -146,11 +146,13 @@ class _FriendPageState extends State<FriendPage> { | |||||
child: Column( | child: Column( | ||||
crossAxisAlignment: CrossAxisAlignment.start, | crossAxisAlignment: CrossAxisAlignment.start, | ||||
children: <Widget>[ | children: <Widget>[ | ||||
Text(list[0]['ApplyName'], style: TextStyle(fontSize: 12.66)), | |||||
Text(list[0]['ApplyName'], | |||||
textScaleFactor: 1.0, style: TextStyle(fontSize: 12.66)), | |||||
SizedBox( | SizedBox( | ||||
height: 5, | height: 5, | ||||
), | ), | ||||
Text(I18n.of(context).apply_fro_friends, | Text(I18n.of(context).apply_fro_friends, | ||||
textScaleFactor: 1.0, | |||||
style: | style: | ||||
TextStyle(fontSize: 10, color: const Color(0xFF6A6A6A))), | TextStyle(fontSize: 10, color: const Color(0xFF6A6A6A))), | ||||
], | ], | ||||
@@ -401,6 +403,7 @@ class _FriendPageState extends State<FriendPage> { | |||||
width: 20, | width: 20, | ||||
child: Text( | child: Text( | ||||
word, | word, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle( | style: TextStyle( | ||||
fontSize: 10, | fontSize: 10, | ||||
color: | color: | ||||
@@ -509,7 +512,7 @@ class _FriendPageState extends State<FriendPage> { | |||||
), | ), | ||||
child: Center( | child: Center( | ||||
child: | child: | ||||
Text(_currentLetter, style: AppStyles.IndexLetterBoxTextStyle), | |||||
Text(_currentLetter, textScaleFactor: 1.0,style: AppStyles.IndexLetterBoxTextStyle), | |||||
), | ), | ||||
), | ), | ||||
)); | )); | ||||
@@ -84,6 +84,7 @@ class GoddessHotPageState extends State<GoddessHotPage> { | |||||
)), | )), | ||||
Text( | Text( | ||||
name, | name, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle( | style: TextStyle( | ||||
fontSize: 10, color: const Color(0xFF777777)), | fontSize: 10, color: const Color(0xFF777777)), | ||||
), | ), | ||||
@@ -106,6 +107,7 @@ class GoddessHotPageState extends State<GoddessHotPage> { | |||||
SizedBox(height: 9), | SizedBox(height: 9), | ||||
Text( | Text( | ||||
nums.toString() + I18n.of(context).one, | nums.toString() + I18n.of(context).one, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(fontSize: 12.5, color: const Color(0xFF515151)), | style: TextStyle(fontSize: 12.5, color: const Color(0xFF515151)), | ||||
), | ), | ||||
], | ], | ||||
@@ -151,11 +151,12 @@ class GroupAllMemberState extends State<GroupAllMember> { | |||||
SizedBox( | SizedBox( | ||||
height: 5, | height: 5, | ||||
), | ), | ||||
SizedBox( | |||||
Container( | |||||
width: size - 30, | width: size - 30, | ||||
alignment: Alignment.center, | |||||
child: Text( | child: Text( | ||||
refName, | refName, | ||||
textAlign: TextAlign.center, | |||||
textScaleFactor: 1.0, | |||||
style: TextStyle(fontSize: 11, color: Color(0xff818181)), | style: TextStyle(fontSize: 11, color: Color(0xff818181)), | ||||
maxLines: 1, | maxLines: 1, | ||||
overflow: TextOverflow.ellipsis, | overflow: TextOverflow.ellipsis, | ||||
@@ -68,6 +68,7 @@ class _GroupAnnouncementPageState extends State<GroupAnnouncementPage> { | |||||
borderRadius: BorderRadius.circular(4.5)), | borderRadius: BorderRadius.circular(4.5)), | ||||
child: Text( | child: Text( | ||||
I18n.of(context).determine, | I18n.of(context).determine, | ||||
textScaleFactor: 1.0, | |||||
overflow: TextOverflow.ellipsis, | overflow: TextOverflow.ellipsis, | ||||
style: TextStyle( | style: TextStyle( | ||||
color: Constants.ConfrimButtonColor, fontSize: 12.6), | color: Constants.ConfrimButtonColor, fontSize: 12.6), | ||||
@@ -129,6 +130,7 @@ class _GroupAnnouncementPageState extends State<GroupAnnouncementPage> { | |||||
), | ), | ||||
Text( | Text( | ||||
I18n.of(context).only_host, | I18n.of(context).only_host, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: Colors.grey[350]), | style: TextStyle(color: Colors.grey[350]), | ||||
), | ), | ||||
Expanded( | Expanded( | ||||
@@ -167,6 +169,7 @@ class _GroupAnnouncementPageState extends State<GroupAnnouncementPage> { | |||||
children: <Widget>[ | children: <Widget>[ | ||||
Text( | Text( | ||||
refName, | refName, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(fontSize: 16), | style: TextStyle(fontSize: 16), | ||||
), | ), | ||||
SizedBox(height: 6.5), | SizedBox(height: 6.5), | ||||
@@ -203,7 +206,10 @@ class _GroupAnnouncementPageState extends State<GroupAnnouncementPage> { | |||||
: Container( | : Container( | ||||
//color: Colors.white, | //color: Colors.white, | ||||
padding: EdgeInsets.only(right: 20, left: 20, top: 10, bottom: 10), | padding: EdgeInsets.only(right: 20, left: 20, top: 10, bottom: 10), | ||||
child: Text(widget.groupInfoModel.describe), | |||||
child: Text( | |||||
widget.groupInfoModel.describe, | |||||
textScaleFactor: 1.0, | |||||
), | |||||
); | ); | ||||
} | } | ||||
@@ -91,6 +91,7 @@ class _GroupChatListPageState extends State<GroupChatListPage> { | |||||
SizedBox(width: 14.0), | SizedBox(width: 14.0), | ||||
Text( | Text( | ||||
I18n.of(context).create_group_chat, | I18n.of(context).create_group_chat, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(fontSize: 15.5), | style: TextStyle(fontSize: 15.5), | ||||
), | ), | ||||
], | ], | ||||
@@ -105,7 +106,7 @@ class _GroupChatListPageState extends State<GroupChatListPage> { | |||||
decoration: BoxDecoration( | decoration: BoxDecoration( | ||||
color: Colors.white, | color: Colors.white, | ||||
border: Border(bottom: Constants.GreyBorderSide)), | border: Border(bottom: Constants.GreyBorderSide)), | ||||
child: Text(I18n.of(context).group_chat + '(${groupList.length})'), | |||||
child: Text(I18n.of(context).group_chat + '(${groupList.length})', textScaleFactor: 1.0,), | |||||
); | ); | ||||
return Column( | return Column( | ||||
@@ -21,19 +21,18 @@ const double LeftPadding = 15; | |||||
const double ItemHeight = 83.5; | const double ItemHeight = 83.5; | ||||
class GroupItem extends StatefulWidget { | class GroupItem extends StatefulWidget { | ||||
GroupItem( | |||||
Key key, { | |||||
@required this.groupInfoModel, | |||||
this.onPressed, | |||||
this.isShowDivder: true, | |||||
this.enterType=0,this.enterContent | |||||
}) : super(key: key); | |||||
GroupItem(Key key, | |||||
{@required this.groupInfoModel, | |||||
this.onPressed, | |||||
this.isShowDivder: true, | |||||
this.enterType = 0, | |||||
this.enterContent}) | |||||
: super(key: key); | |||||
final GroupInfoModel groupInfoModel; | final GroupInfoModel groupInfoModel; | ||||
final VoidCallback onPressed; | final VoidCallback onPressed; | ||||
final bool isShowDivder; | final bool isShowDivder; | ||||
final int enterType; // 0默认 1图片 | |||||
final int enterType; // 0默认 1图片 | |||||
final dynamic enterContent; | final dynamic enterContent; | ||||
@override | @override | ||||
_GroupItemState createState() => _GroupItemState(); | _GroupItemState createState() => _GroupItemState(); | ||||
@@ -86,7 +85,7 @@ class _GroupItemState extends State<GroupItem> { | |||||
)) | )) | ||||
]; | ]; | ||||
Map refMap = Provider.of<RefNameProvider>(context).refMap; | |||||
Map refMap = Provider.of<RefNameProvider>(context).refMap; | |||||
return InkWell( | return InkWell( | ||||
child: Container( | child: Container( | ||||
padding: const EdgeInsets.only( | padding: const EdgeInsets.only( | ||||
@@ -160,6 +159,7 @@ class _GroupItemState extends State<GroupItem> { | |||||
0 | 0 | ||||
? '[${ChatDataMgr().groupUnreadProvider.getUnreadCount(widget.groupInfoModel.lastMsg.sessionId)}${I18n.of(context).article}] ' | ? '[${ChatDataMgr().groupUnreadProvider.getUnreadCount(widget.groupInfoModel.lastMsg.sessionId)}${I18n.of(context).article}] ' | ||||
: "", | : "", | ||||
textScaleFactor: 1.0, | |||||
style: AppStyles.DescStyle), | style: AppStyles.DescStyle), | ||||
Container( | Container( | ||||
constraints: BoxConstraints( | constraints: BoxConstraints( | ||||
@@ -189,7 +189,8 @@ class _GroupItemState extends State<GroupItem> { | |||||
), | ), | ||||
), | ), | ||||
onTap: () { | onTap: () { | ||||
AppNavigator.pushGroupChatPage(context, widget.groupInfoModel,enterType: widget.enterType,enterContent: widget.enterContent); | |||||
AppNavigator.pushGroupChatPage(context, widget.groupInfoModel, | |||||
enterType: widget.enterType, enterContent: widget.enterContent); | |||||
}, | }, | ||||
); | ); | ||||
} | } | ||||
@@ -124,6 +124,7 @@ class _GroupManagePageState extends State<GroupManagePage> { | |||||
margin: EdgeInsets.only(top: 10, bottom: 10, left: 15, right: 15), | margin: EdgeInsets.only(top: 10, bottom: 10, left: 15, right: 15), | ||||
child: Text( | child: Text( | ||||
I18n.of(context).group_setting_tips, | I18n.of(context).group_setting_tips, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(fontSize: 10.5, color: Constants.GreyTextColor), | style: TextStyle(fontSize: 10.5, color: Constants.GreyTextColor), | ||||
), | ), | ||||
); | ); | ||||
@@ -52,6 +52,7 @@ class GroupQrPage extends StatelessWidget { | |||||
padding: EdgeInsets.all(20), | padding: EdgeInsets.all(20), | ||||
child: Text( | child: Text( | ||||
dayTips, | dayTips, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(fontSize: 9), | style: TextStyle(fontSize: 9), | ||||
), | ), | ||||
) | ) | ||||
@@ -88,6 +89,7 @@ class GroupQrPage extends StatelessWidget { | |||||
color: Color(0xf7FFFFFF), | color: Color(0xf7FFFFFF), | ||||
child: Text( | child: Text( | ||||
I18n.of(context).group_open_verification, | I18n.of(context).group_open_verification, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: Color(0xff696969), fontSize: 20), | style: TextStyle(color: Color(0xff696969), fontSize: 20), | ||||
), | ), | ||||
)) | )) | ||||
@@ -373,6 +373,7 @@ class GroupSettingState extends State<GroupSetting> { | |||||
padding: EdgeInsets.fromLTRB(15, 15, 15, 13), | padding: EdgeInsets.fromLTRB(15, 15, 15, 13), | ||||
child: Text( | child: Text( | ||||
dialogTips, | dialogTips, | ||||
textScaleFactor: 1.0, | |||||
style: | style: | ||||
TextStyle(fontSize: 12, color: Color(0xff777777)), | TextStyle(fontSize: 12, color: Color(0xff777777)), | ||||
), | ), | ||||
@@ -386,6 +387,7 @@ class GroupSettingState extends State<GroupSetting> { | |||||
height: 60, | height: 60, | ||||
alignment: Alignment.center, | alignment: Alignment.center, | ||||
child: Text(I18n.of(context).determine, | child: Text(I18n.of(context).determine, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle( | style: TextStyle( | ||||
fontSize: 18, | fontSize: 18, | ||||
color: Constants.ConfrimButtonColor)), | color: Constants.ConfrimButtonColor)), | ||||
@@ -403,6 +405,7 @@ class GroupSettingState extends State<GroupSetting> { | |||||
height: 60, | height: 60, | ||||
alignment: Alignment.center, | alignment: Alignment.center, | ||||
child: Text(I18n.of(context).cancel, | child: Text(I18n.of(context).cancel, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle( | style: TextStyle( | ||||
fontSize: 18, color: Color(0xff4B4B4B))), | fontSize: 18, color: Color(0xff4B4B4B))), | ||||
), | ), | ||||
@@ -419,6 +422,7 @@ class GroupSettingState extends State<GroupSetting> { | |||||
alignment: Alignment.center, | alignment: Alignment.center, | ||||
child: Text( | child: Text( | ||||
title, | title, | ||||
textScaleFactor: 1.0, | |||||
style: | style: | ||||
TextStyle(color: Constants.ConfrimButtonColor, fontSize: 15), | TextStyle(color: Constants.ConfrimButtonColor, fontSize: 15), | ||||
), | ), | ||||
@@ -461,6 +465,7 @@ class GroupSettingState extends State<GroupSetting> { | |||||
padding: EdgeInsets.only(top: 0, left: 4), | padding: EdgeInsets.only(top: 0, left: 4), | ||||
child: Text( | child: Text( | ||||
I18n.of(context).group_announcement, | I18n.of(context).group_announcement, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle( | style: TextStyle( | ||||
color: Colors.black, fontSize: 14), | color: Colors.black, fontSize: 14), | ||||
), | ), | ||||
@@ -473,6 +478,7 @@ class GroupSettingState extends State<GroupSetting> { | |||||
padding: EdgeInsets.only(top: 3, left: 4), | padding: EdgeInsets.only(top: 3, left: 4), | ||||
child: Text( | child: Text( | ||||
widget.groupInfoModel.describe, | widget.groupInfoModel.describe, | ||||
textScaleFactor: 1.0, | |||||
maxLines: 1, | maxLines: 1, | ||||
overflow: TextOverflow.ellipsis, | overflow: TextOverflow.ellipsis, | ||||
style: TextStyle( | style: TextStyle( | ||||
@@ -559,6 +565,7 @@ class GroupSettingState extends State<GroupSetting> { | |||||
alignment: Alignment.center, | alignment: Alignment.center, | ||||
child: Text( | child: Text( | ||||
refName, | refName, | ||||
textScaleFactor: 1.0, | |||||
textAlign: TextAlign.center, | textAlign: TextAlign.center, | ||||
style: TextStyle(fontSize: 11, color: Color(0xff818181)), | style: TextStyle(fontSize: 11, color: Color(0xff818181)), | ||||
maxLines: 1, | maxLines: 1, | ||||
@@ -400,6 +400,7 @@ class _HomeMainState extends State<HomeMain> { | |||||
NavigationIconView( | NavigationIconView( | ||||
title: _titles[3], | title: _titles[3], | ||||
isShowdot: true, | |||||
icon: IconData( | icon: IconData( | ||||
0xe66e, | 0xe66e, | ||||
fontFamily: 'iconfont', | fontFamily: 'iconfont', | ||||
@@ -32,7 +32,7 @@ class _InviteDetailPageState extends State<InviteDetailPage> { | |||||
I18n.of(context).invite_detail, | I18n.of(context).invite_detail, | ||||
textScaleFactor: 1.0, | textScaleFactor: 1.0, | ||||
), | ), | ||||
leading: CustomUI.buildCustomLeading(context), | |||||
leading: CustomUI.buildCustomLeading(context), | |||||
centerTitle: true, | centerTitle: true, | ||||
); | ); | ||||
@@ -59,6 +59,7 @@ class _InviteDetailPageState extends State<InviteDetailPage> { | |||||
width: Screen.width, | width: Screen.width, | ||||
child: Text( | child: Text( | ||||
widget.opt.nickName, | widget.opt.nickName, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(fontSize: 15), | style: TextStyle(fontSize: 15), | ||||
), | ), | ||||
); | ); | ||||
@@ -71,6 +72,7 @@ class _InviteDetailPageState extends State<InviteDetailPage> { | |||||
I18n.of(context) | I18n.of(context) | ||||
.invite_members | .invite_members | ||||
.replaceFirst('/s1', widget.originalList.length.toString()), | .replaceFirst('/s1', widget.originalList.length.toString()), | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(fontSize: 15.5), | style: TextStyle(fontSize: 15.5), | ||||
), | ), | ||||
); | ); | ||||
@@ -117,6 +119,7 @@ class _InviteDetailPageState extends State<InviteDetailPage> { | |||||
borderRadius: BorderRadius.all(Radius.circular(6))), | borderRadius: BorderRadius.all(Radius.circular(6))), | ||||
child: Text( | child: Text( | ||||
I18n.of(context).determine, | I18n.of(context).determine, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: Colors.white, fontSize: 16), | style: TextStyle(color: Colors.white, fontSize: 16), | ||||
), | ), | ||||
), | ), | ||||
@@ -160,6 +163,7 @@ class _InviteDetailPageState extends State<InviteDetailPage> { | |||||
margin: EdgeInsets.only(top: 8.5), | margin: EdgeInsets.only(top: 8.5), | ||||
child: Text( | child: Text( | ||||
username, | username, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(fontSize: 10.3, color: Constants.GreyTextColor), | style: TextStyle(fontSize: 10.3, color: Constants.GreyTextColor), | ||||
), | ), | ||||
) | ) | ||||
@@ -63,6 +63,7 @@ class _JoinGroupConfirmPageState extends State<JoinGroupConfirmPage> { | |||||
width: Screen.width - 40, | width: Screen.width - 40, | ||||
child: Text( | child: Text( | ||||
widget.groupInfoModel.getGroupName(refMap), | widget.groupInfoModel.getGroupName(refMap), | ||||
textScaleFactor: 1.0, | |||||
maxLines: 2, | maxLines: 2, | ||||
overflow: TextOverflow.ellipsis, | overflow: TextOverflow.ellipsis, | ||||
style: TextStyle(fontSize: 15), | style: TextStyle(fontSize: 15), | ||||
@@ -76,6 +77,7 @@ class _JoinGroupConfirmPageState extends State<JoinGroupConfirmPage> { | |||||
child: Text( | child: Text( | ||||
I18n.of(context).total_members.replaceFirst( | I18n.of(context).total_members.replaceFirst( | ||||
'/s1', widget.groupInfoModel.getMembersInGroup().length.toString()), | '/s1', widget.groupInfoModel.getMembersInGroup().length.toString()), | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(fontSize: 15.5, color: const Color(0xFF6F6F6F)), | style: TextStyle(fontSize: 15.5, color: const Color(0xFF6F6F6F)), | ||||
), | ), | ||||
); | ); | ||||
@@ -120,6 +122,7 @@ class _JoinGroupConfirmPageState extends State<JoinGroupConfirmPage> { | |||||
isInGroup | isInGroup | ||||
? I18n.of(context).joined | ? I18n.of(context).joined | ||||
: I18n.of(context).join_now, | : I18n.of(context).join_now, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: Colors.white, fontSize: 16), | style: TextStyle(color: Colors.white, fontSize: 16), | ||||
), | ), | ||||
), | ), | ||||
@@ -173,11 +173,11 @@ class _LastChatPageState extends State<LastChatPage> { | |||||
Column( | Column( | ||||
crossAxisAlignment: CrossAxisAlignment.start, | crossAxisAlignment: CrossAxisAlignment.start, | ||||
children: <Widget>[ | children: <Widget>[ | ||||
fixedText('反馈助手', | |||||
fixedText(I18n.of(context).feedback_assistant, | |||||
fontSize: 15, fontWeight: FontWeight.w500), | fontSize: 15, fontWeight: FontWeight.w500), | ||||
SizedBox(height: 5), | SizedBox(height: 5), | ||||
Text( | Text( | ||||
'你好,使用过程中遇到任何问题都可以告诉我哦!', | |||||
I18n.of(context).feedback_tips, | |||||
textScaleFactor: 1.0, | textScaleFactor: 1.0, | ||||
style: AppStyles.DescStyle, | style: AppStyles.DescStyle, | ||||
), | ), | ||||
@@ -82,8 +82,8 @@ class _ConversationItem extends StatelessWidget { | |||||
return InkWell( | return InkWell( | ||||
child: Container( | child: Container( | ||||
padding: | |||||
const EdgeInsets.only(left: 21, top: 12.5, bottom: 12.5, right: 24.5), | |||||
padding: const EdgeInsets.only( | |||||
left: 21, top: 12.5, bottom: 12.5, right: 24.5), | |||||
decoration: BoxDecoration( | decoration: BoxDecoration( | ||||
color: Color(AppColors.ConversationItemBgColor), | color: Color(AppColors.ConversationItemBgColor), | ||||
border: Border( | border: Border( | ||||
@@ -128,6 +128,7 @@ class _ConversationItem extends StatelessWidget { | |||||
children: <Widget>[ | children: <Widget>[ | ||||
Text( | Text( | ||||
'${money > 0 ? '+' : ''}${this.isInCome ? money * 1000 : (money.toString() + I18n.of(context).mask_coin)}', | '${money > 0 ? '+' : ''}${this.isInCome ? money * 1000 : (money.toString() + I18n.of(context).mask_coin)}', | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle( | style: TextStyle( | ||||
fontSize: 14, | fontSize: 14, | ||||
fontWeight: FontWeight.w500, | fontWeight: FontWeight.w500, | ||||
@@ -139,6 +140,7 @@ class _ConversationItem extends StatelessWidget { | |||||
padding: EdgeInsets.only(top: 3), | padding: EdgeInsets.only(top: 3), | ||||
child: Text( | child: Text( | ||||
I18n.of(context).alreay_back, | I18n.of(context).alreay_back, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle( | style: TextStyle( | ||||
fontSize: 12, | fontSize: 12, | ||||
fontWeight: FontWeight.normal, | fontWeight: FontWeight.normal, | ||||
@@ -31,6 +31,7 @@ class MyQr extends StatelessWidget { | |||||
padding: EdgeInsets.all(20), | padding: EdgeInsets.all(20), | ||||
child: Text( | child: Text( | ||||
I18n.of(context).scan_and_add, | I18n.of(context).scan_and_add, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(fontSize: 12.5), | style: TextStyle(fontSize: 12.5), | ||||
), | ), | ||||
) | ) | ||||
@@ -89,7 +90,7 @@ class MyQr extends StatelessWidget { | |||||
children: <Widget>[ | children: <Widget>[ | ||||
Row( | Row( | ||||
children: <Widget>[ | children: <Widget>[ | ||||
Container( | |||||
Container( | |||||
constraints: BoxConstraints(maxWidth: 170), | constraints: BoxConstraints(maxWidth: 170), | ||||
child: Text(name, | child: Text(name, | ||||
textScaleFactor: 1.0, | textScaleFactor: 1.0, | ||||
@@ -77,12 +77,17 @@ class _ContactItem extends StatelessWidget { | |||||
children: <Widget>[ | children: <Widget>[ | ||||
_avatarIcon, | _avatarIcon, | ||||
SizedBox(width: 10.0), | SizedBox(width: 10.0), | ||||
Expanded(child: Text(title)), | |||||
Expanded( | |||||
child: Text( | |||||
title, | |||||
textScaleFactor: 1.0, | |||||
)), | |||||
state == 1 | state == 1 | ||||
? Container( | ? Container( | ||||
padding: EdgeInsets.symmetric(horizontal: 21, vertical: 7), | padding: EdgeInsets.symmetric(horizontal: 21, vertical: 7), | ||||
child: Text( | child: Text( | ||||
I18n.of(context).added, | I18n.of(context).added, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: const Color(0xFF8A8B8B)), | style: TextStyle(color: const Color(0xFF8A8B8B)), | ||||
), | ), | ||||
) | ) | ||||
@@ -92,6 +97,7 @@ class _ContactItem extends StatelessWidget { | |||||
EdgeInsets.symmetric(horizontal: 21, vertical: 7), | EdgeInsets.symmetric(horizontal: 21, vertical: 7), | ||||
child: Text( | child: Text( | ||||
I18n.of(context).check, | I18n.of(context).check, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: Constants.BlueTextColor), | style: TextStyle(color: Constants.BlueTextColor), | ||||
), | ), | ||||
) | ) | ||||
@@ -100,6 +106,7 @@ class _ContactItem extends StatelessWidget { | |||||
EdgeInsets.symmetric(horizontal: 21, vertical: 7), | EdgeInsets.symmetric(horizontal: 21, vertical: 7), | ||||
child: Text( | child: Text( | ||||
I18n.of(context).rejected, | I18n.of(context).rejected, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: const Color(0xFF8A8B8B)), | style: TextStyle(color: const Color(0xFF8A8B8B)), | ||||
), | ), | ||||
)), | )), | ||||
@@ -117,8 +124,11 @@ class _ContactItem extends StatelessWidget { | |||||
padding: EdgeInsets.only(left: 16.0, right: 16.0), | padding: EdgeInsets.only(left: 16.0, right: 16.0), | ||||
color: const Color(AppColors.ContactGroupTitleBgColor), | color: const Color(AppColors.ContactGroupTitleBgColor), | ||||
alignment: Alignment.centerLeft, | alignment: Alignment.centerLeft, | ||||
child: | |||||
Text(this.groupTitle, style: AppStyles.GroupTitleItemTextStyle), | |||||
child: Text( | |||||
this.groupTitle, | |||||
style: AppStyles.GroupTitleItemTextStyle, | |||||
textScaleFactor: 1.0, | |||||
), | |||||
), | ), | ||||
_button, | _button, | ||||
], | ], | ||||
@@ -292,8 +302,11 @@ class _NewFriendsPageState extends State<NewFriendsPage> { | |||||
Radius.circular(Constants.IndexLetterBoxRadius)), | Radius.circular(Constants.IndexLetterBoxRadius)), | ||||
), | ), | ||||
child: Center( | child: Center( | ||||
child: | |||||
Text(_currentLetter, style: AppStyles.IndexLetterBoxTextStyle), | |||||
child: Text( | |||||
_currentLetter, | |||||
style: AppStyles.IndexLetterBoxTextStyle, | |||||
textScaleFactor: 1.0, | |||||
), | |||||
), | ), | ||||
), | ), | ||||
)); | )); | ||||
@@ -335,6 +348,14 @@ class _NewFriendsPageState extends State<NewFriendsPage> { | |||||
decoration: InputDecoration( | decoration: InputDecoration( | ||||
hintText: I18n.of(context).search, | hintText: I18n.of(context).search, | ||||
hintStyle: TextStyle(fontSize: 14.5), | hintStyle: TextStyle(fontSize: 14.5), | ||||
contentPadding: EdgeInsets.only( | |||||
left: 20, | |||||
top: (UserData().language == LanguageType.English || | |||||
UserData().language == | |||||
LanguageType.Vietnamese) | |||||
? 3 | |||||
: 10.5, | |||||
bottom: 10.5), | |||||
prefixIcon: Icon( | prefixIcon: Icon( | ||||
IconData( | IconData( | ||||
0xe664, | 0xe664, | ||||
@@ -83,8 +83,8 @@ class _QrScannerPageState extends State<QrScannerPage> | |||||
}, | }, | ||||
), | ), | ||||
backgroundColor: Colors.black, | backgroundColor: Colors.black, | ||||
title: | |||||
Text(I18n.of(context).scan, style: TextStyle(color: Colors.white)), | |||||
title: Text(I18n.of(context).scan, | |||||
textScaleFactor: 1.0, style: TextStyle(color: Colors.white)), | |||||
centerTitle: true, | centerTitle: true, | ||||
), | ), | ||||
backgroundColor: Colors.black.withOpacity(_animation.value), | backgroundColor: Colors.black.withOpacity(_animation.value), | ||||
@@ -254,6 +254,7 @@ class _QrScannerPageState extends State<QrScannerPage> | |||||
SizedBox(height: 5), | SizedBox(height: 5), | ||||
Text( | Text( | ||||
iconName, | iconName, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: Colors.white), | style: TextStyle(color: Colors.white), | ||||
) | ) | ||||
]))); | ]))); | ||||
@@ -33,17 +33,25 @@ class SplashPageState extends State<SplashPage> { | |||||
void initState() { | void initState() { | ||||
super.initState(); | super.initState(); | ||||
list.add(SplashBean('assets/images/img_splash_1.png',I18n.of( Constants.getCurrentContext()).splash_tips1 , I18n.of( Constants.getCurrentContext()).splash_tips_content1, | |||||
list.add(SplashBean( | |||||
'assets/images/img_splash_1.png', | |||||
I18n.of(Constants.getCurrentContext()).splash_tips1, | |||||
I18n.of(Constants.getCurrentContext()).splash_tips_content1, | |||||
Color(0xffEC527D))); | Color(0xffEC527D))); | ||||
list.add(SplashBean('assets/images/img_splash_2.png', I18n.of( Constants.getCurrentContext()).splash_tips2, I18n.of( Constants.getCurrentContext()).splash_tips_content2, | |||||
list.add(SplashBean( | |||||
'assets/images/img_splash_2.png', | |||||
I18n.of(Constants.getCurrentContext()).splash_tips2, | |||||
I18n.of(Constants.getCurrentContext()).splash_tips_content2, | |||||
Color(0xffB439EB))); | Color(0xffB439EB))); | ||||
list.add(SplashBean('assets/images/img_splash_3.png', I18n.of( Constants.getCurrentContext()).splash_tips3, I18n.of( Constants.getCurrentContext()).splash_tips_content3, | |||||
list.add(SplashBean( | |||||
'assets/images/img_splash_3.png', | |||||
I18n.of(Constants.getCurrentContext()).splash_tips3, | |||||
I18n.of(Constants.getCurrentContext()).splash_tips_content3, | |||||
Color(0xff2B79F7))); | Color(0xff2B79F7))); | ||||
pageController = PageController( | pageController = PageController( | ||||
initialPage: 0, | initialPage: 0, | ||||
); | ); | ||||
} | } | ||||
@override | @override | ||||
@@ -72,24 +80,34 @@ class SplashPageState extends State<SplashPage> { | |||||
Expanded(child: Container()), | Expanded(child: Container()), | ||||
currentIndex != 2 ? getIndicator() : Container(), | currentIndex != 2 ? getIndicator() : Container(), | ||||
currentIndex == 2 | currentIndex == 2 | ||||
? InkWell(onTap: ()async{ | |||||
await SPUtils.saveBool(Constants.Splash_OPENED, true); | |||||
Navigator.of(context).push( | |||||
MaterialPageRoute( | |||||
builder: (_) => IndexPage(), | |||||
), | |||||
); | |||||
},child: Padding( | |||||
padding: EdgeInsets.only(bottom: 40), | |||||
child: Container( | |||||
padding: EdgeInsets.only(left: 16,right: 16,top: 5,bottom: 5), | |||||
decoration: BoxDecoration( | |||||
border: Border.all( | |||||
color: Color(0xff2B79F7), width: 1),borderRadius: BorderRadius.circular(16)), | |||||
child: Text(I18n.of(context).splash_go,style: TextStyle(fontSize: 18,color: Color(0xff2B79F7)),), | |||||
), | |||||
),) | |||||
? InkWell( | |||||
onTap: () async { | |||||
await SPUtils.saveBool( | |||||
Constants.Splash_OPENED, true); | |||||
Navigator.of(context).push( | |||||
MaterialPageRoute( | |||||
builder: (_) => IndexPage(), | |||||
), | |||||
); | |||||
}, | |||||
child: Padding( | |||||
padding: EdgeInsets.only(bottom: 40), | |||||
child: Container( | |||||
padding: EdgeInsets.only( | |||||
left: 16, right: 16, top: 5, bottom: 5), | |||||
decoration: BoxDecoration( | |||||
border: Border.all( | |||||
color: Color(0xff2B79F7), width: 1), | |||||
borderRadius: BorderRadius.circular(16)), | |||||
child: Text( | |||||
I18n.of(context).splash_go, | |||||
textScaleFactor: 1.0, | |||||
style: TextStyle( | |||||
fontSize: 18, color: Color(0xff2B79F7)), | |||||
), | |||||
), | |||||
), | |||||
) | |||||
: Container(), | : Container(), | ||||
], | ], | ||||
), | ), | ||||
@@ -142,10 +160,14 @@ class SplashPageState extends State<SplashPage> { | |||||
), | ), | ||||
Text( | Text( | ||||
data.title, | data.title, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: data.titleColor, fontSize: 30), | style: TextStyle(color: data.titleColor, fontSize: 30), | ||||
), | ), | ||||
SizedBox(height: 6,), | |||||
SizedBox( | |||||
height: 6, | |||||
), | |||||
Text(data.content, | Text(data.content, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: Color(0xff999999), fontSize: 15)), | style: TextStyle(color: Color(0xff999999), fontSize: 15)), | ||||
], | ], | ||||
), | ), | ||||
@@ -115,6 +115,7 @@ void setCustomErrorPage(BuildContext context) { | |||||
margin: EdgeInsets.only(top: ScreenUtil().setHeight(50)), | margin: EdgeInsets.only(top: ScreenUtil().setHeight(50)), | ||||
child: Text( | child: Text( | ||||
I18n.of(Constants.getCurrentContext()).server_error_tips, | I18n.of(Constants.getCurrentContext()).server_error_tips, | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle(color: Color(0xFF8F8E8E), fontSize: 18), | style: TextStyle(color: Color(0xFF8F8E8E), fontSize: 18), | ||||
), | ), | ||||
), | ), | ||||
@@ -139,6 +139,7 @@ class LocationPickerState extends State<LocationPicker> { | |||||
Expanded( | Expanded( | ||||
child: Text( | child: Text( | ||||
"${I18n.of(context).finding_place}...", | "${I18n.of(context).finding_place}...", | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle( | style: TextStyle( | ||||
fontSize: 16, | fontSize: 16, | ||||
), | ), | ||||
@@ -168,6 +168,7 @@ class MapPickerState extends State<MapPicker> { | |||||
children: [ | children: [ | ||||
Text( | Text( | ||||
address ?? 'Unnamed place', | address ?? 'Unnamed place', | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle( | style: TextStyle( | ||||
fontSize: 18, | fontSize: 18, | ||||
), | ), | ||||
@@ -98,7 +98,6 @@ class MapViewState extends State<MapView> { | |||||
} | } | ||||
Future reverseGeocodeLatLng(LatLng latLng) async { | Future reverseGeocodeLatLng(LatLng latLng) async { | ||||
/* | /* | ||||
var placeMarks = await Geolocator() | var placeMarks = await Geolocator() | ||||
.placemarkFromCoordinates(latLng.latitude, latLng.longitude); | .placemarkFromCoordinates(latLng.latitude, latLng.longitude); | ||||
@@ -114,7 +113,6 @@ class MapViewState extends State<MapView> { | |||||
}); | }); | ||||
*/ | */ | ||||
var response = await http.get( | var response = await http.get( | ||||
"https://maps.googleapis.com/maps/api/geocode/json?latlng=${latLng.latitude},${latLng.longitude}" | "https://maps.googleapis.com/maps/api/geocode/json?latlng=${latLng.latitude},${latLng.longitude}" | ||||
"&key=$googleMapApiKey"); | "&key=$googleMapApiKey"); | ||||
@@ -123,10 +121,9 @@ class MapViewState extends State<MapView> { | |||||
Map<String, dynamic> responseJson = jsonDecode(response.body); | Map<String, dynamic> responseJson = jsonDecode(response.body); | ||||
setState(() { | setState(() { | ||||
address = responseJson['results'][0]['formatted_address']; | |||||
address = responseJson['results'][0]['formatted_address']; | |||||
}); | }); | ||||
} | } | ||||
} | } | ||||
Set<Marker> _createMarker() { | Set<Marker> _createMarker() { | ||||
@@ -175,6 +172,7 @@ class MapViewState extends State<MapView> { | |||||
children: [ | children: [ | ||||
Text( | Text( | ||||
address ?? '', | address ?? '', | ||||
textScaleFactor: 1.0, | |||||
style: TextStyle( | style: TextStyle( | ||||
fontSize: 18, | fontSize: 18, | ||||
), | ), | ||||
@@ -237,7 +235,7 @@ class MapViewState extends State<MapView> { | |||||
width: double.infinity, | width: double.infinity, | ||||
color: Colors.white, | color: Colors.white, | ||||
child: FlatButton( | child: FlatButton( | ||||
child: Text(getMapName(mapList[i])), | |||||
child: Text(getMapName(mapList[i]), textScaleFactor: 1.0,), | |||||
onPressed: () { | onPressed: () { | ||||
print('跳转到其他地图'); | print('跳转到其他地图'); | ||||
ScreenShot.openMapForOth( | ScreenShot.openMapForOth( | ||||
@@ -85,6 +85,7 @@ class FriendsInfo extends StatelessWidget { | |||||
child: Container( | child: Container( | ||||
child: Text( | child: Text( | ||||
title, | title, | ||||
textScaleFactor: 1.0, | |||||
overflow: TextOverflow.ellipsis, | overflow: TextOverflow.ellipsis, | ||||
))) | ))) | ||||
], | ], | ||||
@@ -166,8 +167,8 @@ class FriendsInfo extends StatelessWidget { | |||||
padding: EdgeInsets.only(left: 16.0, right: 16.0), | padding: EdgeInsets.only(left: 16.0, right: 16.0), | ||||
color: const Color(AppColors.ContactGroupTitleBgColor), | color: const Color(AppColors.ContactGroupTitleBgColor), | ||||
alignment: Alignment.centerLeft, | alignment: Alignment.centerLeft, | ||||
child: | |||||
Text(this.groupTitle, style: AppStyles.GroupTitleItemTextStyle), | |||||
child: Text(this.groupTitle, | |||||
textScaleFactor: 1.0, style: AppStyles.GroupTitleItemTextStyle), | |||||
), | ), | ||||
_button, | _button, | ||||
], | ], | ||||
@@ -256,7 +256,7 @@ class CustomUI { | |||||
style: TextStyle( | style: TextStyle( | ||||
fontSize: 14, color: Constants.BlackTextColor, height: 1.30), | fontSize: 14, color: Constants.BlackTextColor, height: 1.30), | ||||
//textAlign: TextAlign.center, | |||||
textAlign: TextAlign.center, | |||||
)); | )); | ||||
} | } | ||||