make sidebar auto collapse when selecting a room on the mobile layout
This commit is contained in:
parent
840f2fe464
commit
b387f0755a
2 changed files with 10 additions and 6 deletions
|
|
@ -16,7 +16,7 @@ class ChatPage extends ConsumerWidget {
|
|||
body: Builder(
|
||||
builder: (context) => Row(
|
||||
children: [
|
||||
if (isDesktop) Sidebar(),
|
||||
if (isDesktop) Sidebar(isDesktop: isDesktop),
|
||||
Expanded(
|
||||
child: RoomChat(
|
||||
isDesktop: isDesktop,
|
||||
|
|
@ -26,7 +26,7 @@ class ChatPage extends ConsumerWidget {
|
|||
],
|
||||
),
|
||||
),
|
||||
drawer: isDesktop ? null : Sidebar(),
|
||||
drawer: isDesktop ? null : Sidebar(isDesktop: isDesktop),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue