Chat, chat local db, chat messaging retriving (no sync yet)

This commit is contained in:
2025-05-03 14:19:46 +08:00
parent b2c31bcf13
commit e2e6de965b
30 changed files with 258 additions and 206 deletions

View File

@ -39,6 +39,7 @@ class RealmListScreen extends HookConsumerWidget {
return AppScaffold(
appBar: AppBar(title: const Text('realms').tr()),
floatingActionButton: FloatingActionButton(
key: Key("realms-page-fab"),
child: const Icon(Symbols.add),
onPressed: () {
context.router.push(NewRealmRoute());
@ -58,7 +59,7 @@ class RealmListScreen extends HookConsumerWidget {
itemBuilder: (context, item) {
return ListTile(
leading: ProfilePictureWidget(
item: value[item].picture,
fileId: value[item].pictureId,
fallbackIcon: Symbols.group,
),
title: Text(value[item].name),
@ -98,7 +99,9 @@ class RealmListScreen extends HookConsumerWidget {
)
.then((value) {
if (value != null) {
ref.invalidate(realmsJoinedProvider);
ref.refresh(
realmsJoinedProvider.future,
);
}
});
},
@ -280,7 +283,7 @@ class EditRealmScreen extends HookConsumerWidget {
bottom: -32,
child: GestureDetector(
child: ProfilePictureWidget(
item: picture.value,
fileId: picture.value?.id,
radius: 40,
fallbackIcon: Symbols.group,
),