added navigation and selection of workspaces
This commit is contained in:
@@ -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(),
|
||||
),
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user