bugfix: fix overflow when user name it too long

This commit is contained in:
Stein Milder 2022-11-11 12:02:25 +01:00
parent f800216a9b
commit 942403d1a4
5 changed files with 19 additions and 15 deletions

View file

@ -179,7 +179,7 @@ packages:
description:
path: "packages/flutter_community_chat_interface"
ref: HEAD
resolved-ref: "82b9b0be80eb0d0c36b72432c7517a6d04cecb20"
resolved-ref: "3793e853721291dc50655ca4ee7999508fe9e2fe"
url: "https://github.com/Iconica-Development/flutter_community_chat.git"
source: git
version: "0.0.1"
@ -188,7 +188,7 @@ packages:
description:
path: "packages/flutter_community_chat_view"
ref: HEAD
resolved-ref: "82b9b0be80eb0d0c36b72432c7517a6d04cecb20"
resolved-ref: "3793e853721291dc50655ca4ee7999508fe9e2fe"
url: "https://github.com/Iconica-Development/flutter_community_chat.git"
source: git
version: "0.0.1"

View file

@ -228,7 +228,7 @@ packages:
description:
path: "packages/flutter_community_chat_interface"
ref: HEAD
resolved-ref: "82b9b0be80eb0d0c36b72432c7517a6d04cecb20"
resolved-ref: "3793e853721291dc50655ca4ee7999508fe9e2fe"
url: "https://github.com/Iconica-Development/flutter_community_chat.git"
source: git
version: "0.0.1"

View file

@ -186,7 +186,7 @@ packages:
description:
path: "packages/flutter_community_chat_interface"
ref: HEAD
resolved-ref: "82b9b0be80eb0d0c36b72432c7517a6d04cecb20"
resolved-ref: "3793e853721291dc50655ca4ee7999508fe9e2fe"
url: "https://github.com/Iconica-Development/flutter_community_chat.git"
source: git
version: "0.0.1"

View file

@ -39,11 +39,13 @@ class ChatDetailScreen extends StatelessWidget {
image: (chat as PersonalChatModel).user.imageUrl,
size: 36.0,
),
Padding(
padding: const EdgeInsets.only(left: 15.5),
child: Text(
(chat as PersonalChatModel).user.name ?? '',
style: const TextStyle(fontSize: 18),
Expanded(
child: Padding(
padding: const EdgeInsets.only(left: 15.5),
child: Text(
(chat as PersonalChatModel).user.name ?? '',
style: const TextStyle(fontSize: 18),
),
),
),
],
@ -52,11 +54,13 @@ class ChatDetailScreen extends StatelessWidget {
image: (chat as GroupChatModel).imageUrl,
size: 36.0,
),
Padding(
padding: const EdgeInsets.only(left: 15.5),
child: Text(
(chat as GroupChatModel).title,
style: const TextStyle(fontSize: 18),
Expanded(
child: Padding(
padding: const EdgeInsets.only(left: 15.5),
child: Text(
(chat as GroupChatModel).title,
style: const TextStyle(fontSize: 18),
),
),
),
],

View file

@ -179,7 +179,7 @@ packages:
description:
path: "packages/flutter_community_chat_interface"
ref: HEAD
resolved-ref: "82b9b0be80eb0d0c36b72432c7517a6d04cecb20"
resolved-ref: "3793e853721291dc50655ca4ee7999508fe9e2fe"
url: "https://github.com/Iconica-Development/flutter_community_chat.git"
source: git
version: "0.0.1"