feat: tela de apps com logos/menu de exclusao, correcao de tema nas mini apps e sidebar de navegacao
Some checks failed
Main Deploy Workflow / deploy_web (push) Has been cancelled
Main Deploy Workflow / deploy_playstore_internal (push) Has been cancelled
Close stale issues and PRs / stale (push) Has been cancelled

This commit is contained in:
2026-09-19 00:08:35 -03:00
parent 1f692b1e4e
commit 6c689d1f34
23 changed files with 1039 additions and 114 deletions

View File

@@ -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,