|
|
|
@ -285,7 +285,8 @@ class _SpaceViewState extends State<SpaceView> {
|
|
|
|
|
)
|
|
|
|
|
.toList();
|
|
|
|
|
|
|
|
|
|
return CustomScrollView(
|
|
|
|
|
return SafeArea(
|
|
|
|
|
child: CustomScrollView(
|
|
|
|
|
controller: widget.scrollController,
|
|
|
|
|
slivers: [
|
|
|
|
|
ChatListHeader(controller: widget.controller),
|
|
|
|
@ -309,10 +310,12 @@ class _SpaceViewState extends State<SpaceView> {
|
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
|
),
|
|
|
|
|
subtitle: Text(
|
|
|
|
|
L10n.of(context)!
|
|
|
|
|
.numChats(rootSpace.spaceChildren.length.toString()),
|
|
|
|
|
L10n.of(context)!.numChats(
|
|
|
|
|
rootSpace.spaceChildren.length.toString(),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
onTap: () => widget.controller.setActiveSpace(rootSpace.id),
|
|
|
|
|
onTap: () =>
|
|
|
|
|
widget.controller.setActiveSpace(rootSpace.id),
|
|
|
|
|
onLongPress: () =>
|
|
|
|
|
_onSpaceChildContextMenu(null, rootSpace),
|
|
|
|
|
trailing: const Icon(Icons.chevron_right_outlined),
|
|
|
|
@ -323,6 +326,7 @@ class _SpaceViewState extends State<SpaceView> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -338,6 +342,7 @@ class _SpaceViewState extends State<SpaceView> {
|
|
|
|
|
widget.controller.setActiveSpace(parentSpace.id);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
child: SafeArea(
|
|
|
|
|
child: CustomScrollView(
|
|
|
|
|
controller: widget.scrollController,
|
|
|
|
|
slivers: [
|
|
|
|
@ -439,8 +444,9 @@ class _SpaceViewState extends State<SpaceView> {
|
|
|
|
|
spaceChild.canonicalAlias ??
|
|
|
|
|
'Space',
|
|
|
|
|
icon: Padding(
|
|
|
|
|
padding:
|
|
|
|
|
const EdgeInsets.symmetric(horizontal: 10.0),
|
|
|
|
|
padding: const EdgeInsets.symmetric(
|
|
|
|
|
horizontal: 10.0,
|
|
|
|
|
),
|
|
|
|
|
child: Avatar(
|
|
|
|
|
size: 24,
|
|
|
|
|
mxContent: spaceChild.avatarUrl,
|
|
|
|
@ -544,6 +550,7 @@ class _SpaceViewState extends State<SpaceView> {
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|