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

@@ -5,16 +5,19 @@
import 'package:material_ui/material_ui.dart';
import 'package:tatchat/config/themes.dart';
import 'package:tatchat/l10n/l10n.dart';
import 'package:tatchat/pages/chat_list/tabs/home_tab.dart';
class ChatTopTabBar extends StatelessWidget {
final HomeTab currentTab;
final ValueChanged<HomeTab> onTabSelected;
final VoidCallback? onMenuPressed;
const ChatTopTabBar({
super.key,
required this.currentTab,
required this.onTabSelected,
this.onMenuPressed,
});
@override
@@ -29,6 +32,12 @@ class ChatTopTabBar extends StatelessWidget {
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
if (onMenuPressed != null)
IconButton(
tooltip: L10n.of(context).menu,
icon: const Icon(Icons.menu),
onPressed: onMenuPressed,
),
for (final tab in HomeTab.values)
Expanded(
child: InkWell(
@@ -43,9 +52,7 @@ class ChatTopTabBar extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
children: [
Icon(
tab == currentTab
? tab.selectedIcon
: tab.icon,
tab == currentTab ? tab.selectedIcon : tab.icon,
size: 20,
color: tab == currentTab
? theme.colorScheme.primary
@@ -112,4 +119,4 @@ class ChatBottomTabBar extends StatelessWidget {
],
);
}
}
}

View File

@@ -4,6 +4,7 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import 'package:material_ui/material_ui.dart';
import 'package:tatchat/config/themes.dart';
import 'package:tatchat/l10n/l10n.dart';
import 'package:tatchat/pages/chat_list/chat_list.dart';
import 'package:tatchat/pages/chat_list/client_chooser_button.dart';
@@ -72,6 +73,12 @@ class ChatTabHeader extends StatelessWidget {
height: 56,
child: Row(
children: [
if (!FluffyThemes.isColumnMode(context))
IconButton(
tooltip: l10n.menu,
icon: const Icon(Icons.menu),
onPressed: () => Scaffold.of(context).openDrawer(),
),
const SizedBox(width: 12),
Icon(tab.icon, size: 22, color: theme.colorScheme.primary),
const SizedBox(width: 8),
@@ -136,4 +143,4 @@ class ChatTabScaffold extends StatelessWidget {
],
);
}
}
}