added navigation and selection of workspaces

This commit is contained in:
2026-06-23 00:22:30 +02:00
parent ae2705363a
commit e89c711d00
11 changed files with 118 additions and 107 deletions

View File

@@ -123,7 +123,7 @@ class _HomeScreenState extends State<HomeScreen> with TickerProviderStateMixin {
if (prefs.getString("token") != null) {
setState(() {
_isLoggedIn = true;
initials = prefs.getString("initials")!;
initials = prefs.getString("workspaceInitials")!;
});
}
@@ -347,24 +347,28 @@ class _HomeScreenState extends State<HomeScreen> with TickerProviderStateMixin {
end: Alignment.bottomLeft,
),
),
child: Center(
child: Text(
initials,
style: TextStyle(
fontSize: 12,
fontWeight: FontWeight.bold,
color: isDark ? Colors.white : Colors.black87,
child: InkWell(
child: Center(
child: Text(
initials,
style: TextStyle(
fontSize: 12,
fontWeight: FontWeight.bold,
color: isDark ? Colors.white : Colors.black87,
),
),
),
onTap: () => context.go('/workspace'),
),
),
SizedBox(width: 5),
IconButton(
icon: Icon(
Icons.logout_rounded,
Icons.logout,
color: isDark ? Colors.white54 : Colors.black54,
size: 20,
),
onPressed: _showLogoutDialog,
onPressed: () => _showLogoutDialog(),
),
],
];