mirror of
https://github.com/Iconica-Development/flutter_chat.git
synced 2025-05-19 02:43:50 +02:00
refactor: remove personal chat avatar from chat detail screen
This commit is contained in:
parent
19529deb4e
commit
6bafc86a2d
1 changed files with 10 additions and 13 deletions
|
@ -193,15 +193,12 @@ class _ChatDetailScreenState extends State<ChatDetailScreen> {
|
|||
chatModel.imageUrl,
|
||||
36.0,
|
||||
),
|
||||
] else if (chatModel is PersonalChatModel) ...[
|
||||
widget.options.userAvatarBuilder(
|
||||
chatModel.user,
|
||||
36.0,
|
||||
),
|
||||
] else
|
||||
...[],
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 15.5),
|
||||
padding: (chatModel is GroupChatModel)
|
||||
? const EdgeInsets.only(left: 15.5)
|
||||
: EdgeInsets.zero,
|
||||
child: widget.chatTitleBuilder != null
|
||||
? widget.chatTitleBuilder!.call(
|
||||
(chatModel is GroupChatModel)
|
||||
|
|
Loading…
Reference in a new issue