forked from Henry-Hiles/nexus
working login
This commit is contained in:
parent
7c6ddab6a3
commit
e447540062
7 changed files with 162 additions and 32 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import "package:flutter/material.dart";
|
||||
import "package:nexus/widgets/chat_page/room_chat.dart";
|
||||
import "package:nexus/widgets/chat_page/sidebar.dart";
|
||||
// import "package:nexus/widgets/chat_page/room_chat.dart";
|
||||
// import "package:nexus/widgets/chat_page/sidebar.dart";
|
||||
|
||||
class ChatPage extends StatelessWidget {
|
||||
const ChatPage({super.key});
|
||||
|
|
@ -10,23 +10,23 @@ class ChatPage extends StatelessWidget {
|
|||
builder: (context, constraints) {
|
||||
final isDesktop = constraints.maxWidth > 650;
|
||||
final showMembersByDefault = constraints.maxWidth > 1000;
|
||||
|
||||
return Scaffold(
|
||||
body: Builder(
|
||||
builder: (context) => Row(
|
||||
children: [
|
||||
if (isDesktop) Sidebar(),
|
||||
Expanded(
|
||||
child: RoomChat(
|
||||
isDesktop: isDesktop,
|
||||
showMembersByDefault: showMembersByDefault,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
drawer: isDesktop ? null : Sidebar(),
|
||||
);
|
||||
return Placeholder();
|
||||
// return Scaffold(
|
||||
// body: Builder(
|
||||
// builder: (context) => Row(
|
||||
// children: [
|
||||
// if (isDesktop) Sidebar(),
|
||||
// Expanded(
|
||||
// child: RoomChat(
|
||||
// isDesktop: isDesktop,
|
||||
// showMembersByDefault: showMembersByDefault,
|
||||
// ),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
// drawer: isDesktop ? null : Sidebar(),
|
||||
// );
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue