wrap chat page in a safearea
This commit is contained in:
parent
7992f0e815
commit
a9ac891ec4
1 changed files with 23 additions and 21 deletions
|
|
@ -20,30 +20,32 @@ class ChatPage extends ConsumerWidget {
|
||||||
final roomId = ref.watch(KeyController.provider(KeyController.roomKey));
|
final roomId = ref.watch(KeyController.provider(KeyController.roomKey));
|
||||||
ref.read(EmojiController.provider);
|
ref.read(EmojiController.provider);
|
||||||
|
|
||||||
return Scaffold(
|
return SafeArea(
|
||||||
appBar: initComplete ? null : Appbar(),
|
child: Scaffold(
|
||||||
body: initComplete
|
appBar: initComplete ? null : Appbar(),
|
||||||
? Row(
|
body: initComplete
|
||||||
children: [
|
? Row(
|
||||||
if (isDesktop) Sidebar(isDesktop: isDesktop),
|
children: [
|
||||||
Expanded(
|
if (isDesktop) Sidebar(isDesktop: isDesktop),
|
||||||
child: RoomChat(
|
Expanded(
|
||||||
roomId: roomId,
|
child: RoomChat(
|
||||||
isDesktop: isDesktop,
|
roomId: roomId,
|
||||||
showMembersByDefault: showMembersByDefault,
|
isDesktop: isDesktop,
|
||||||
|
showMembersByDefault: showMembersByDefault,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
|
],
|
||||||
|
)
|
||||||
|
: Center(
|
||||||
|
child: Column(
|
||||||
|
mainAxisSize: .min,
|
||||||
|
children: [Loading(), Text("Syncing...")],
|
||||||
),
|
),
|
||||||
],
|
|
||||||
)
|
|
||||||
: Center(
|
|
||||||
child: Column(
|
|
||||||
mainAxisSize: .min,
|
|
||||||
children: [Loading(), Text("Syncing...")],
|
|
||||||
),
|
),
|
||||||
),
|
drawer: isDesktop || !initComplete
|
||||||
drawer: isDesktop || !initComplete
|
? null
|
||||||
? null
|
: Sidebar(isDesktop: isDesktop),
|
||||||
: Sidebar(isDesktop: isDesktop),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue