mirror of
https://github.com/Iconica-Development/flutter_chat.git
synced 2025-05-19 02:43:50 +02:00
fix: remove unneccesary cast due to "," which throws an error
This commit is contained in:
parent
74823e4c1e
commit
b2f0e1318b
1 changed files with 10 additions and 12 deletions
|
@ -193,18 +193,16 @@ class _Body extends StatelessWidget {
|
||||||
);
|
);
|
||||||
|
|
||||||
var targetUser = user ??
|
var targetUser = user ??
|
||||||
(
|
(chat != null
|
||||||
chat != null
|
? UserModel(
|
||||||
? UserModel(
|
id: UniqueKey().toString(),
|
||||||
id: UniqueKey().toString(),
|
firstName: chat?.chatName,
|
||||||
firstName: chat?.chatName,
|
imageUrl: chat?.imageUrl,
|
||||||
imageUrl: chat?.imageUrl,
|
)
|
||||||
)
|
: UserModel(
|
||||||
: UserModel(
|
id: UniqueKey().toString(),
|
||||||
id: UniqueKey().toString(),
|
firstName: options.translations.groupNameEmpty,
|
||||||
firstName: options.translations.groupNameEmpty,
|
));
|
||||||
),
|
|
||||||
) as UserModel;
|
|
||||||
|
|
||||||
return Stack(
|
return Stack(
|
||||||
children: [
|
children: [
|
||||||
|
|
Loading…
Reference in a new issue