Fix alert message for zero chatters (#90)
This commit is contained in:
parent
7d844675ce
commit
3cc72bafcb
1 changed files with 11 additions and 1 deletions
|
|
@ -142,7 +142,17 @@ class _ChattersListState extends State<ChattersList> {
|
|||
),
|
||||
),
|
||||
),
|
||||
if (chatDetailsStore.filteredUsers.expand((element) => element).isEmpty)
|
||||
if (chatDetailsStore.chatUsers?.chatterCount == 0)
|
||||
const SliverFillRemaining(
|
||||
hasScrollBody: false,
|
||||
child: Center(
|
||||
child: AlertMessage(
|
||||
message: 'No chatters found',
|
||||
icon: Icons.person_off,
|
||||
),
|
||||
),
|
||||
)
|
||||
else if (chatDetailsStore.filteredUsers.expand((element) => element).isEmpty)
|
||||
const SliverFillRemaining(
|
||||
hasScrollBody: false,
|
||||
child: Center(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue