Pretty JSON and extended Webuntis Error Handling
This commit is contained in:
@ -90,6 +90,7 @@ class _AppState extends State<App> {
|
||||
const Icon(Icons.chat),
|
||||
Consumer<ChatListProps>(
|
||||
builder: (context, value, child) {
|
||||
if(value.primaryLoading()) return const SizedBox.shrink();
|
||||
int messages = value.getRoomsResponse.data.map((e) => e.unreadMessages).reduce((a, b) => a+b);
|
||||
return Visibility(
|
||||
visible: messages > 0,
|
||||
|
Reference in New Issue
Block a user