mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 13:05:11 +00:00
chore: Add missing safearea to spaceview
This commit is contained in:
parent
4214785b00
commit
5bf87eae24
1 changed files with 236 additions and 229 deletions
|
@ -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> {
|
|||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue