chore: Bring back navrail

This commit is contained in:
krille-chan 2024-07-15 21:14:49 +02:00
commit b05eb891a6
No known key found for this signature in database
11 changed files with 328 additions and 131 deletions

View file

@ -92,8 +92,12 @@ abstract class AppRoutes {
FluffyThemes.isColumnMode(context) &&
state.fullPath?.startsWith('/rooms/settings') == false
? TwoColumnLayout(
displayNavigationRail:
state.path?.startsWith('/rooms/settings') != true,
mainView: ChatList(
activeChat: state.pathParameters['roomid'],
displayNavigationRail:
state.path?.startsWith('/rooms/settings') != true,
),
sideView: child,
)
@ -171,6 +175,7 @@ abstract class AppRoutes {
? TwoColumnLayout(
mainView: const Settings(),
sideView: child,
displayNavigationRail: false,
)
: child,
),