mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-08-03 11:49:04 -04:00
local messages
This commit is contained in:
parent
13ddb4f22c
commit
c59828df90
12 changed files with 375 additions and 201 deletions
|
@ -1,9 +1,10 @@
|
|||
import 'package:awesome_extensions/awesome_extensions.dart';
|
||||
import 'package:fast_immutable_collections/fast_immutable_collections.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_translate/flutter_translate.dart';
|
||||
|
||||
import '../../components/chat_list_widget.dart';
|
||||
import '../../components/chat_single_contact_list_widget.dart';
|
||||
import '../../components/empty_chat_list_widget.dart';
|
||||
import '../../entities/local_account.dart';
|
||||
import '../../entities/proto.dart' as proto;
|
||||
|
@ -52,14 +53,10 @@ class ChatsPageState extends ConsumerState<ChatsPage> {
|
|||
|
||||
return Column(children: <Widget>[
|
||||
if (chatList.isNotEmpty)
|
||||
ExpansionTile(
|
||||
title: Text(translate('chat_page.conversations')),
|
||||
initiallyExpanded: true,
|
||||
children: [
|
||||
ChatListWidget(contactList: contactList, chatList: chatList)
|
||||
],
|
||||
),
|
||||
if (chatList.isEmpty) const EmptyChatListWidget(),
|
||||
ChatSingleContactListWidget(
|
||||
contactList: contactList, chatList: chatList)
|
||||
.expanded(),
|
||||
if (chatList.isEmpty) const EmptyChatListWidget().expanded(),
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue