|
|
@ -109,12 +109,7 @@ class _ConversationTabState extends State<ConversationTab> |
|
|
decoration: BoxDecoration( |
|
|
decoration: BoxDecoration( |
|
|
borderRadius: BorderRadius.circular(28), |
|
|
borderRadius: BorderRadius.circular(28), |
|
|
image: DecorationImage( |
|
|
image: DecorationImage( |
|
|
image: (userInfo?.avatarUrl?.isNotEmpty ?? false) |
|
|
|
|
|
? NetworkImage(userInfo!.avatarUrl!) |
|
|
|
|
|
: const AssetImage( |
|
|
|
|
|
Assets.imagesAvatarsExample, |
|
|
|
|
|
) |
|
|
|
|
|
as ImageProvider, |
|
|
|
|
|
|
|
|
image: NetworkImage(userInfo!.avatarUrl!), |
|
|
fit: BoxFit.cover, |
|
|
fit: BoxFit.cover, |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
@ -131,9 +126,7 @@ class _ConversationTabState extends State<ConversationTab> |
|
|
children: [ |
|
|
children: [ |
|
|
Expanded( |
|
|
Expanded( |
|
|
child: Text( |
|
|
child: Text( |
|
|
(userInfo?.nickName?.isNotEmpty ?? false) |
|
|
|
|
|
? userInfo!.nickName! |
|
|
|
|
|
: conversation.id, // 如果没有昵称,显示用户ID |
|
|
|
|
|
|
|
|
userInfo.nickName ?? '', // 如果没有昵称,显示用户ID |
|
|
style: const TextStyle( |
|
|
style: const TextStyle( |
|
|
fontSize: 16, |
|
|
fontSize: 16, |
|
|
fontWeight: FontWeight.w500, |
|
|
fontWeight: FontWeight.w500, |
|
|
|