chore: Add missing safearea to spaceview
This commit is contained in:
parent
4214785b00
commit
5bf87eae24
1 changed files with 235 additions and 228 deletions
|
|
@ -285,7 +285,8 @@ class _SpaceViewState extends State<SpaceView> {
|
||||||
)
|
)
|
||||||
.toList();
|
.toList();
|
||||||
|
|
||||||
return CustomScrollView(
|
return SafeArea(
|
||||||
|
child: CustomScrollView(
|
||||||
controller: widget.scrollController,
|
controller: widget.scrollController,
|
||||||
slivers: [
|
slivers: [
|
||||||
ChatListHeader(controller: widget.controller),
|
ChatListHeader(controller: widget.controller),
|
||||||
|
|
@ -309,10 +310,12 @@ class _SpaceViewState extends State<SpaceView> {
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
subtitle: Text(
|
subtitle: Text(
|
||||||
L10n.of(context)!
|
L10n.of(context)!.numChats(
|
||||||
.numChats(rootSpace.spaceChildren.length.toString()),
|
rootSpace.spaceChildren.length.toString(),
|
||||||
),
|
),
|
||||||
onTap: () => widget.controller.setActiveSpace(rootSpace.id),
|
),
|
||||||
|
onTap: () =>
|
||||||
|
widget.controller.setActiveSpace(rootSpace.id),
|
||||||
onLongPress: () =>
|
onLongPress: () =>
|
||||||
_onSpaceChildContextMenu(null, rootSpace),
|
_onSpaceChildContextMenu(null, rootSpace),
|
||||||
trailing: const Icon(Icons.chevron_right_outlined),
|
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);
|
widget.controller.setActiveSpace(parentSpace.id);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
child: SafeArea(
|
||||||
child: CustomScrollView(
|
child: CustomScrollView(
|
||||||
controller: widget.scrollController,
|
controller: widget.scrollController,
|
||||||
slivers: [
|
slivers: [
|
||||||
|
|
@ -439,8 +444,9 @@ class _SpaceViewState extends State<SpaceView> {
|
||||||
spaceChild.canonicalAlias ??
|
spaceChild.canonicalAlias ??
|
||||||
'Space',
|
'Space',
|
||||||
icon: Padding(
|
icon: Padding(
|
||||||
padding:
|
padding: const EdgeInsets.symmetric(
|
||||||
const EdgeInsets.symmetric(horizontal: 10.0),
|
horizontal: 10.0,
|
||||||
|
),
|
||||||
child: Avatar(
|
child: Avatar(
|
||||||
size: 24,
|
size: 24,
|
||||||
mxContent: spaceChild.avatarUrl,
|
mxContent: spaceChild.avatarUrl,
|
||||||
|
|
@ -544,6 +550,7 @@ class _SpaceViewState extends State<SpaceView> {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue