فهرست منبع

[fix]无名字联系人,增加对应文本

云天逵 11 ماه پیش
والد
کامیت
c4dd70dffa
3فایلهای تغییر یافته به همراه9 افزوده شده و 3 حذف شده
  1. 3 1
      lib/module/contact/all/all_view.dart
  2. 3 1
      lib/module/contact/duplicate/view.dart
  3. 3 1
      lib/module/contact/incomplete/view.dart

+ 3 - 1
lib/module/contact/all/all_view.dart

@@ -206,7 +206,9 @@ class AllPage extends BasePage<AllController> {
                                           CrossAxisAlignment.start,
                                           children: [
                                             Text(
-                                              contact.displayName ?? '未命名',
+                                              contact.displayName.isEmpty
+                                                  ? 'No contact name'
+                                                  : contact.displayName,
                                               style: TextStyle(
                                                 color: Colors.white,
                                                 fontSize: 14.sp,

+ 3 - 1
lib/module/contact/duplicate/view.dart

@@ -292,7 +292,9 @@ class ContactDuplicatePage extends BasePage<ContactDuplicateController> {
                                         CrossAxisAlignment.start,
                                     children: [
                                       Text(
-                                        contact.displayName ?? '未命名',
+                                        contact.displayName.isEmpty
+                                            ? 'No contact name'
+                                            : contact.displayName,
                                         style: TextStyle(
                                           color: Colors.white,
                                           fontSize: 14.sp,

+ 3 - 1
lib/module/contact/incomplete/view.dart

@@ -210,7 +210,9 @@ class ContactIncompletePage extends BasePage<ContactInCompleteController> {
                                               CrossAxisAlignment.start,
                                           children: [
                                             Text(
-                                              contact.displayName ?? '未命名',
+                                              contact.displayName.isEmpty
+                                                  ? 'No contact name'
+                                                  : contact.displayName,
                                               style: TextStyle(
                                                 color: Colors.white,
                                                 fontSize: 14.sp,