mirror of
https://github.com/Iconica-Development/flutter_chat.git
synced 2025-05-19 02:43:50 +02:00
bugfix: fix overflow when user name it too long
This commit is contained in:
parent
f800216a9b
commit
942403d1a4
5 changed files with 19 additions and 15 deletions
|
@ -179,7 +179,7 @@ packages:
|
||||||
description:
|
description:
|
||||||
path: "packages/flutter_community_chat_interface"
|
path: "packages/flutter_community_chat_interface"
|
||||||
ref: HEAD
|
ref: HEAD
|
||||||
resolved-ref: "82b9b0be80eb0d0c36b72432c7517a6d04cecb20"
|
resolved-ref: "3793e853721291dc50655ca4ee7999508fe9e2fe"
|
||||||
url: "https://github.com/Iconica-Development/flutter_community_chat.git"
|
url: "https://github.com/Iconica-Development/flutter_community_chat.git"
|
||||||
source: git
|
source: git
|
||||||
version: "0.0.1"
|
version: "0.0.1"
|
||||||
|
@ -188,7 +188,7 @@ packages:
|
||||||
description:
|
description:
|
||||||
path: "packages/flutter_community_chat_view"
|
path: "packages/flutter_community_chat_view"
|
||||||
ref: HEAD
|
ref: HEAD
|
||||||
resolved-ref: "82b9b0be80eb0d0c36b72432c7517a6d04cecb20"
|
resolved-ref: "3793e853721291dc50655ca4ee7999508fe9e2fe"
|
||||||
url: "https://github.com/Iconica-Development/flutter_community_chat.git"
|
url: "https://github.com/Iconica-Development/flutter_community_chat.git"
|
||||||
source: git
|
source: git
|
||||||
version: "0.0.1"
|
version: "0.0.1"
|
||||||
|
|
|
@ -228,7 +228,7 @@ packages:
|
||||||
description:
|
description:
|
||||||
path: "packages/flutter_community_chat_interface"
|
path: "packages/flutter_community_chat_interface"
|
||||||
ref: HEAD
|
ref: HEAD
|
||||||
resolved-ref: "82b9b0be80eb0d0c36b72432c7517a6d04cecb20"
|
resolved-ref: "3793e853721291dc50655ca4ee7999508fe9e2fe"
|
||||||
url: "https://github.com/Iconica-Development/flutter_community_chat.git"
|
url: "https://github.com/Iconica-Development/flutter_community_chat.git"
|
||||||
source: git
|
source: git
|
||||||
version: "0.0.1"
|
version: "0.0.1"
|
||||||
|
|
|
@ -186,7 +186,7 @@ packages:
|
||||||
description:
|
description:
|
||||||
path: "packages/flutter_community_chat_interface"
|
path: "packages/flutter_community_chat_interface"
|
||||||
ref: HEAD
|
ref: HEAD
|
||||||
resolved-ref: "82b9b0be80eb0d0c36b72432c7517a6d04cecb20"
|
resolved-ref: "3793e853721291dc50655ca4ee7999508fe9e2fe"
|
||||||
url: "https://github.com/Iconica-Development/flutter_community_chat.git"
|
url: "https://github.com/Iconica-Development/flutter_community_chat.git"
|
||||||
source: git
|
source: git
|
||||||
version: "0.0.1"
|
version: "0.0.1"
|
||||||
|
|
|
@ -39,26 +39,30 @@ class ChatDetailScreen extends StatelessWidget {
|
||||||
image: (chat as PersonalChatModel).user.imageUrl,
|
image: (chat as PersonalChatModel).user.imageUrl,
|
||||||
size: 36.0,
|
size: 36.0,
|
||||||
),
|
),
|
||||||
Padding(
|
Expanded(
|
||||||
|
child: Padding(
|
||||||
padding: const EdgeInsets.only(left: 15.5),
|
padding: const EdgeInsets.only(left: 15.5),
|
||||||
child: Text(
|
child: Text(
|
||||||
(chat as PersonalChatModel).user.name ?? '',
|
(chat as PersonalChatModel).user.name ?? '',
|
||||||
style: const TextStyle(fontSize: 18),
|
style: const TextStyle(fontSize: 18),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
if (chat is GroupChatModel) ...[
|
if (chat is GroupChatModel) ...[
|
||||||
ChatImage(
|
ChatImage(
|
||||||
image: (chat as GroupChatModel).imageUrl,
|
image: (chat as GroupChatModel).imageUrl,
|
||||||
size: 36.0,
|
size: 36.0,
|
||||||
),
|
),
|
||||||
Padding(
|
Expanded(
|
||||||
|
child: Padding(
|
||||||
padding: const EdgeInsets.only(left: 15.5),
|
padding: const EdgeInsets.only(left: 15.5),
|
||||||
child: Text(
|
child: Text(
|
||||||
(chat as GroupChatModel).title,
|
(chat as GroupChatModel).title,
|
||||||
style: const TextStyle(fontSize: 18),
|
style: const TextStyle(fontSize: 18),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
@ -179,7 +179,7 @@ packages:
|
||||||
description:
|
description:
|
||||||
path: "packages/flutter_community_chat_interface"
|
path: "packages/flutter_community_chat_interface"
|
||||||
ref: HEAD
|
ref: HEAD
|
||||||
resolved-ref: "82b9b0be80eb0d0c36b72432c7517a6d04cecb20"
|
resolved-ref: "3793e853721291dc50655ca4ee7999508fe9e2fe"
|
||||||
url: "https://github.com/Iconica-Development/flutter_community_chat.git"
|
url: "https://github.com/Iconica-Development/flutter_community_chat.git"
|
||||||
source: git
|
source: git
|
||||||
version: "0.0.1"
|
version: "0.0.1"
|
||||||
|
|
Loading…
Reference in a new issue