feat: tela de apps com logos/menu de exclusao, correcao de tema nas mini apps e sidebar de navegacao
This commit is contained in:
@@ -15,11 +15,16 @@ import 'package:tatchat/pages/chat_list/tabs/murals_tab.dart';
|
||||
import 'package:tatchat/pages/chat_list/tabs/spaces_tab.dart';
|
||||
|
||||
import 'chat_list_body.dart';
|
||||
import 'sidebar.dart';
|
||||
|
||||
class ChatListView extends StatelessWidget {
|
||||
final ChatListController controller;
|
||||
|
||||
const ChatListView(this.controller, {super.key});
|
||||
/// Whether the navigation sidebar (drawer) is available, e.g. hidden inside
|
||||
/// the settings column.
|
||||
final bool sideMenuEnabled;
|
||||
|
||||
const ChatListView(this.controller, {super.key, this.sideMenuEnabled = true});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -45,9 +50,24 @@ class ChatListView extends StatelessWidget {
|
||||
ChatTopTabBar(
|
||||
currentTab: homeTab,
|
||||
onTabSelected: controller.setHomeTab,
|
||||
onMenuPressed: sideMenuEnabled
|
||||
? () => controller.scaffoldKey.currentState?.openDrawer()
|
||||
: null,
|
||||
),
|
||||
Expanded(
|
||||
child: Scaffold(
|
||||
key: controller.scaffoldKey,
|
||||
drawer: sideMenuEnabled
|
||||
? Drawer(
|
||||
width: FluffyThemes.sidebarWidth,
|
||||
child: Sidebar(controller),
|
||||
)
|
||||
: null,
|
||||
// Avoid accidentally opening the drawer when swiping at the
|
||||
// edge of the chat column.
|
||||
drawerEdgeDragWidth: isColumnMode || !sideMenuEnabled
|
||||
? 0
|
||||
: null,
|
||||
body: SafeArea(
|
||||
top: false,
|
||||
bottom: false,
|
||||
|
||||
Reference in New Issue
Block a user