Отображение чатов

This commit is contained in:
Халимов Рустам
2026-05-14 22:56:42 +03:00
parent ccffc5a53c
commit 0b013def2e
29 changed files with 6365 additions and 842 deletions
@@ -1,21 +0,0 @@
import 'package:flutter/material.dart';
class ChatsPage extends StatelessWidget {
const ChatsPage({super.key});
@override
Widget build(BuildContext context) {
return const Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(Icons.chat_bubble_outline, size: 64, color: Colors.grey),
SizedBox(height: 16),
Text('Чаты', style: TextStyle(fontSize: 18)),
SizedBox(height: 8),
Text('Функция в разработке', style: TextStyle(color: Colors.grey)),
],
),
);
}
}
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import '../../features/settings/presentation/pages/settings_page.dart';
import '../router/chats_placeholder.dart';
import '../../features/chat/presentation/pages/chats_page.dart';
import '../../l10n/app_localizations.dart';
class MainScreen extends StatefulWidget {
static const String routeName = '/main';
@@ -16,6 +17,7 @@ class _MainScreenState extends State<MainScreen> {
@override
Widget build(BuildContext context) {
final l10n = AppLocalizations.of(context)!;
return Scaffold(
body: IndexedStack(
index: _currentIndex,
@@ -29,21 +31,21 @@ class _MainScreenState extends State<MainScreen> {
currentIndex: _currentIndex,
onTap: (index) => setState(() => _currentIndex = index),
type: BottomNavigationBarType.fixed,
items: const [
items: [
BottomNavigationBarItem(
icon: Icon(Icons.chat_bubble_outline),
activeIcon: Icon(Icons.chat_bubble),
label: 'Чаты',
icon: const Icon(Icons.chat_bubble_outline),
activeIcon: const Icon(Icons.chat_bubble),
label: l10n.chats,
),
BottomNavigationBarItem(
icon: Icon(Icons.contacts_outlined),
activeIcon: Icon(Icons.contacts),
label: 'Контакты',
icon: const Icon(Icons.contacts_outlined),
activeIcon: const Icon(Icons.contacts),
label: l10n.contacts,
),
BottomNavigationBarItem(
icon: Icon(Icons.settings_outlined),
activeIcon: Icon(Icons.settings),
label: 'Настройки',
icon: const Icon(Icons.settings_outlined),
activeIcon: const Icon(Icons.settings),
label: l10n.settings,
),
],
),