修改缘分匹配城市无法显示
This commit is contained in:
parent
d8cc691814
commit
1d0438db92
@ -435,6 +435,7 @@ class _TIMConversationState extends TIMUIKitState<TIMConversation> {
|
|||||||
bool isSameCity = false;
|
bool isSameCity = false;
|
||||||
if (snapshot.connectionState ==
|
if (snapshot.connectionState ==
|
||||||
ConnectionState.done) {
|
ConnectionState.done) {
|
||||||
|
if ((snapshot.data ?? []).isNotEmpty) {
|
||||||
snapshot.data!.forEach((element) {
|
snapshot.data!.forEach((element) {
|
||||||
if (element.userID == conversationItem.userID) {
|
if (element.userID == conversationItem.userID) {
|
||||||
userFullInfo = element;
|
userFullInfo = element;
|
||||||
@ -472,6 +473,8 @@ class _TIMConversationState extends TIMUIKitState<TIMConversation> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
Widget conversationLineItem() {
|
Widget conversationLineItem() {
|
||||||
return Material(
|
return Material(
|
||||||
color: Colors.transparent,
|
color: Colors.transparent,
|
||||||
|
|||||||
@ -32,7 +32,11 @@ final TUIChatSeparateViewModel chatSeparateViewModel =
|
|||||||
TUIChatSeparateViewModel();
|
TUIChatSeparateViewModel();
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
|
FlutterError.onError = (FlutterErrorDetails details) {
|
||||||
|
FlutterError.dumpErrorToConsole(details);
|
||||||
|
// if (kReleaseMode)
|
||||||
|
// //处理线上错误,如统计上传
|
||||||
|
};
|
||||||
WidgetsBinding widgetsBinding = WidgetsFlutterBinding.ensureInitialized();
|
WidgetsBinding widgetsBinding = WidgetsFlutterBinding.ensureInitialized();
|
||||||
FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding);
|
FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding);
|
||||||
runApp(const MyApp());
|
runApp(const MyApp());
|
||||||
@ -94,6 +98,7 @@ createCustomMsg(String userId, String imId) async {
|
|||||||
Map<String, dynamic> info = {};
|
Map<String, dynamic> info = {};
|
||||||
if (data['data']['both_cities'] != null) {
|
if (data['data']['both_cities'] != null) {
|
||||||
List city = data['data']['both_cities'];
|
List city = data['data']['both_cities'];
|
||||||
|
print('城市'+city.toString());
|
||||||
if (city.isNotEmpty) {
|
if (city.isNotEmpty) {
|
||||||
desc = '你们都在$city留下过足迹';
|
desc = '你们都在$city留下过足迹';
|
||||||
}
|
}
|
||||||
@ -113,6 +118,9 @@ createCustomMsg(String userId, String imId) async {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (desc.isNotEmpty) {
|
if (desc.isNotEmpty) {
|
||||||
|
if (data['data']['both_cities'] != null) {
|
||||||
|
info['city'] = desc;
|
||||||
|
}
|
||||||
info['interests'] = data['data']['interests'] ?? [];
|
info['interests'] = data['data']['interests'] ?? [];
|
||||||
info['guide_text'] = data['data']['guide_text'] ?? '';
|
info['guide_text'] = data['data']['guide_text'] ?? '';
|
||||||
info['my'] = data['data']['my'] ?? '';
|
info['my'] = data['data']['my'] ?? '';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user