fix: add navigation links and account screen
- Fix empty onPressed handlers in login/home screens - Add todo/calendar toggle navigation in bottom dock - Fix message invite detail path (/messages/invites/:id) - Add account screen with logout/switch account dialogs - Add /settings/account route
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:lucide_icons/lucide_icons.dart';
|
||||
import '../../../../core/theme/design_tokens.dart';
|
||||
import 'home_sheet.dart';
|
||||
@@ -13,7 +14,7 @@ class HomeScreen extends StatelessWidget {
|
||||
body: SafeArea(
|
||||
child: Column(
|
||||
children: [
|
||||
_buildHeader(),
|
||||
_buildHeader(context),
|
||||
Expanded(child: _buildChatArea()),
|
||||
_buildInputContainer(context),
|
||||
],
|
||||
@@ -22,7 +23,7 @@ class HomeScreen extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildHeader() {
|
||||
Widget _buildHeader(BuildContext context) {
|
||||
return SizedBox(
|
||||
height: 60,
|
||||
child: Padding(
|
||||
@@ -36,7 +37,7 @@ class HomeScreen extends StatelessWidget {
|
||||
size: 24,
|
||||
color: AppColors.slate900,
|
||||
),
|
||||
onPressed: () {},
|
||||
onPressed: () => context.push('/settings'),
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
@@ -46,7 +47,7 @@ class HomeScreen extends StatelessWidget {
|
||||
size: 24,
|
||||
color: AppColors.slate900,
|
||||
),
|
||||
onPressed: () {},
|
||||
onPressed: () => context.push('/calendar/dayweek'),
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
IconButton(
|
||||
@@ -55,7 +56,7 @@ class HomeScreen extends StatelessWidget {
|
||||
size: 24,
|
||||
color: AppColors.slate900,
|
||||
),
|
||||
onPressed: () {},
|
||||
onPressed: () => context.push('/messages/invites'),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user